Package org.eclipse.ui

Examples of org.eclipse.ui.IWorkingSetUpdater


          WorkingSetDescriptor descriptor = descriptors[i];
          List workingSets = getWorkingSetsForId(descriptor.getId());
          if (workingSets.size() == 0) {
            continue;
          }
          IWorkingSetUpdater updater = getUpdater(descriptor);
          for (Iterator iter = workingSets.iterator(); iter.hasNext();) {
            IWorkingSet workingSet = (IWorkingSet) iter.next();
            if (!updater.contains(workingSet)) {
              updater.add(workingSet);
            }
          }
        }
      }
    }
View Full Code Here


      .getWorkingSetRegistry().getWorkingSetDescriptor(workingSet.getId());
      if (descriptor == null || !descriptor.isUpdaterClassLoaded()) {
      return;
    }
    synchronized(updaters) {
        IWorkingSetUpdater updater= getUpdater(descriptor);
        if (!updater.contains(workingSet)) {
        updater.add(workingSet);
      }
    }
    }
View Full Code Here

      }
    }
    }
   
    private IWorkingSetUpdater getUpdater(WorkingSetDescriptor descriptor) {
    IWorkingSetUpdater updater= (IWorkingSetUpdater)updaters.get(descriptor.getId());
      if (updater == null) {
        updater= descriptor.createWorkingSetUpdater();
        if (updater == null) {
          updater= NULL_UPDATER;
        } else {
View Full Code Here

    return elementAdapter;
  }

  private void removeFromUpdater(IWorkingSet workingSet) {
    synchronized (updaters) {
      IWorkingSetUpdater updater = (IWorkingSetUpdater) updaters
          .get(workingSet.getId());
      if (updater != null) {
        updater.remove(workingSet);
      }
    }
    } 
View Full Code Here

   */
    public IWorkingSetUpdater createWorkingSetUpdater() {
      if (updaterClassName == null) {
      return null;
    }
      IWorkingSetUpdater result = null;
        try {
            result = (IWorkingSetUpdater)WorkbenchPlugin.createExtension(configElement, ATT_UPDATER_CLASS);
        } catch (CoreException exception) {
            WorkbenchPlugin.log("Unable to create working set updater: " + //$NON-NLS-1$
              updaterClassName, exception.getStatus());
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IWorkingSetUpdater

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.