Created
July 23, 2013 08:18
-
-
Save suxiaogang/6060734 to your computer and use it in GitHub Desktop.
workspace.isTreeLocked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Workspace workspace = (Workspace) ResourcesPlugin.getWorkspace(); | |
if (workspace.isTreeLocked()) { | |
workspace.setTreeLocked(false); | |
} | |
final IResourceDelta delta2 = delta; | |
final IProject project2 = project; | |
Job saveTarget = new Job(ICommonConstants.EMPTY_STRING) { | |
@Override | |
protected IStatus run(IProgressMonitor monitor) { | |
try { | |
} catch (Exception e) { | |
} | |
return Status.OK_STATUS; | |
} | |
}; | |
saveTarget.setPriority(Job.LONG); | |
saveTarget.schedule(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment