Java Code Examples for org.eclipse.ui.IWorkingSet#getName()

The following examples show how to use org.eclipse.ui.IWorkingSet#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BugContentProvider.java    From spotbugs with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public void dispose() {
    if (DEBUG) {
        System.out.println("Disposing content provider!");
    }
    refreshJob.dispose();
    rootElement.dispose();
    clearFilters();

    IPreferenceStore store = FindbugsPlugin.getDefault().getPreferenceStore();
    store.setValue(FindBugsConstants.LAST_USED_GROUPING, getGrouping().toString());
    IWorkingSet workingSet = getCurrentWorkingSet();
    String name = workingSet != null ? workingSet.getName() : "";
    store.setValue(FindBugsConstants.LAST_USED_WORKING_SET, name);
}
 
Example 2
Source File: PythonBaseModelProvider.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
private TreeNode<LabelAndImage> createErrorWorkingSetWithoutChildren(IWorkingSet parentElement) {
    IImageHandle img = SharedUiPlugin.getImageCache().get(UIConstants.WARNING);
    TreeNode<LabelAndImage> root = new TreeNode<LabelAndImage>(parentElement,
            new LabelAndImage("Warning: working set: " + parentElement.getName() + " does not have any contents.",
                    img));
    new TreeNode<>(root, new LabelAndImage(
            "Access the menu (Ctrl+F10) to edit the working set.", null));
    new TreeNode<>(root, new LabelAndImage(
            "Or select the working set in the tree and use Alt+Enter.", null));
    return root;
}
 
Example 3
Source File: WorkingSetContentUpdater.java    From eclipse-extras with Eclipse Public License 1.0 4 votes vote down vote up
WorkingSetContentUpdater( IWorkingSet workingSet, ProjectsProvider projectsProvider ) {
  this.workingSet = workingSet;
  this.projectsProvider = projectsProvider;
  this.projectPatternMatcher = new ProjectPatternMatcher( workingSet.getName() );
}