Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkingSet


    extensionStateModel.removePropertyChangeListener(rootModeListener);
  }

  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
    if (newInput instanceof IWorkingSet) {
      IWorkingSet rootSet = (IWorkingSet) newInput;
      helper = new WorkingSetHelper(rootSet);
    }

  }
View Full Code Here


      return EMPTY_WORKING_SET_ARRAY;

    PackageExplorerPart explorerPart = (PackageExplorerPart) activePart;
    if (explorerPart.getRootMode() == PackageExplorerPart.PROJECTS_AS_ROOTS) {
      // Get active filter
      IWorkingSet filterWorkingSet = explorerPart.getFilterWorkingSet();
      if (filterWorkingSet == null)
        return EMPTY_WORKING_SET_ARRAY;

      if (!isValidWorkingSet(filterWorkingSet))
        return EMPTY_WORKING_SET_ARRAY;

      return new IWorkingSet[] { filterWorkingSet };
    }
    else {
      // If we have been gone into a working set return the working set
      Object input = explorerPart.getViewPartInput();
      if (!(input instanceof IWorkingSet))
        return EMPTY_WORKING_SET_ARRAY;

      IWorkingSet workingSet = (IWorkingSet) input;
      if (!isValidWorkingSet(workingSet))
        return EMPTY_WORKING_SET_ARRAY;

      return new IWorkingSet[] { workingSet };
    }
View Full Code Here

      Object candidate = path.getSegment(0);
      if (!(candidate instanceof IWorkingSet))
        return EMPTY_WORKING_SET_ARRAY;

      IWorkingSet workingSetCandidate = (IWorkingSet) candidate;
      if (isValidWorkingSet(workingSetCandidate))
        return new IWorkingSet[] { workingSetCandidate };

      return EMPTY_WORKING_SET_ARRAY;
    }
View Full Code Here

  }

  public static PointcutMatcherScope newSearchScope(IWorkingSet[] workingSets) {
    StringBuffer text = new StringBuffer();
    for (int i = 0; i < workingSets.length; i++) {
      IWorkingSet ws = workingSets[i];
      text.append("'");
      text.append(ws.getName());
      text.append("'");
      if (i < (workingSets.length - 1)) {
        text.append(", ");
      }
    }
View Full Code Here

   * @param workingSets the working sets to be contained
   */
  public static BeansSearchScope newSearchScope(IWorkingSet[] workingSets) {
    StringBuffer text = new StringBuffer();
    for (int i = 0; i < workingSets.length; i++) {
      IWorkingSet ws = workingSets[i];
      text.append("'");
      text.append(ws.getName());
      text.append("'");
      if (i < (workingSets.length - 1)) {
        text.append(", ");
      }
    }
View Full Code Here

      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

          showWorkingSets);

      if (viewer != null) {
        Object input = viewer.getInput();
        if (input instanceof IWorkingSet) {
          IWorkingSet workingSet = (IWorkingSet) input;
          aMemento.putString(TAG_CURRENT_WORKING_SET_NAME, workingSet
              .getName());
        }
      }
    }
View Full Code Here

    public void propertyChange(PropertyChangeEvent event) {

      Object input = viewer.getInput();
      if (input instanceof IWorkingSet) {
        IWorkingSet workingSet = (IWorkingSet) input;

        String property = event.getProperty();
        Object newValue = event.getNewValue();
        Object oldValue = event.getOldValue();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkingSet

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.