Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkingSetManager


    monitor.beginTask("Add '"+project.getName()+"' to working sets", 1);
    try {
      if (workingSets==null || workingSets.length==0) {
        return;
      }
      IWorkingSetManager wsm = PlatformUI.getWorkbench().getWorkingSetManager();
      wsm.addToWorkingSets(project, workingSets);
    } finally {
      monitor.done();
    }
  }
View Full Code Here


      }

      String[] wsIds = settings.getArray("workingSets");
      IWorkingSet[] workingSets = null;
      if (wsIds != null && wsIds.length > 0) {
        IWorkingSetManager workingSetManager = PlatformUI
            .getWorkbench().getWorkingSetManager();
        workingSets = new IWorkingSet[wsIds.length];
        for (int i = 0; workingSets != null && i < wsIds.length; i++) {
          workingSets[i] = workingSetManager.getWorkingSet(wsIds[i]);
          if (workingSets[i] == null) {
            workingSets = null;
          }
        }
      }
View Full Code Here

      }

      String[] wsIds = settings.getArray("workingSets");
      IWorkingSet[] workingSets = null;
      if (wsIds != null && wsIds.length > 0) {
        IWorkingSetManager workingSetManager = PlatformUI
            .getWorkbench().getWorkingSetManager();
        workingSets = new IWorkingSet[wsIds.length];
        for (int i = 0; workingSets != null && i < wsIds.length; i++) {
          workingSets[i] = workingSetManager.getWorkingSet(wsIds[i]);
          if (workingSets[i] == null) {
            workingSets = null;
          }
        }
      }
View Full Code Here

  public void finish() {
    List<IAdaptable> resources = new ArrayList<IAdaptable>(10);
    findCheckedResources(resources, tree.getCheckedElements());
    if (workingSet == null) {
      IWorkingSetManager workingSetManager = PlatformUI.getWorkbench()
          .getWorkingSetManager();
      workingSet = workingSetManager.createWorkingSet(
          getWorkingSetName(), (IAdaptable[]) resources
              .toArray(new IAdaptable[resources.size()]));
    }
    else {
      workingSet.setName(getWorkingSetName());
View Full Code Here

          .setShowTopLevelWorkingSets(showWorkingSets);

      if (viewer != null) {
        String lastWorkingSetName = aMemento
            .getString(TAG_CURRENT_WORKING_SET_NAME);
        IWorkingSetManager workingSetManager = PlatformUI
            .getWorkbench().getWorkingSetManager();
        IWorkingSet lastWorkingSet = workingSetManager
            .getWorkingSet(lastWorkingSetName);
        viewer.setInput(lastWorkingSet);
        workingSetFilter.setWorkingSet(lastWorkingSet);
        workingSetActionGroup.setWorkingSet(lastWorkingSet);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkingSetManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.