Package org.eclipse.ui.internal.registry

Examples of org.eclipse.ui.internal.registry.WorkingSetDescriptor


        if (supportedWorkingSetIds == null) {
            return registry.getNewPageWorkingSetDescriptors();
        }
        List result = new ArrayList(supportedWorkingSetIds.length);
        for (int i = 0; i < supportedWorkingSetIds.length; i++) {
            WorkingSetDescriptor desc = registry
                    .getWorkingSetDescriptor(supportedWorkingSetIds[i]);
            if (desc != null && desc.isEditable()) {
                result.add(desc);
            }
        }
        return (WorkingSetDescriptor[]) result
                .toArray(new WorkingSetDescriptor[result.size()]);
View Full Code Here


      WorkingSetDescriptor[] descriptors = WorkbenchPlugin.getDefault()
          .getWorkingSetRegistry().getUpdaterDescriptorsForNamespace(
              event.getBundle().getSymbolicName());
      synchronized (updaters) {
        for (int i = 0; i < descriptors.length; i++) {
          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();) {
View Full Code Here

    }
      return result;
  }
 
    private void addToUpdater(IWorkingSet workingSet) {
      WorkingSetDescriptor descriptor= WorkbenchPlugin.getDefault()
      .getWorkingSetRegistry().getWorkingSetDescriptor(workingSet.getId());
      if (descriptor == null || !descriptor.isUpdaterClassLoaded()) {
      return;
    }
    synchronized(updaters) {
        IWorkingSetUpdater updater= getUpdater(descriptor);
        if (!updater.contains(workingSet)) {
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public boolean isEditable() {
    WorkingSetDescriptor descriptor = getDescriptor(null);
    return descriptor != null && descriptor.isEditable();
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.ui.IWorkingSet#getImageDescriptor()
   */
  public ImageDescriptor getImageDescriptor() {
    WorkingSetDescriptor descriptor = getDescriptor(DEFAULT_ID);
    if (descriptor == null) {
      return null;
    }
    return descriptor.getIcon();
  }
View Full Code Here

  public boolean isVisible() {
    return true;
  }

  public boolean isSelfUpdating() {
    WorkingSetDescriptor descriptor = getDescriptor(null);
    return descriptor != null && descriptor.getUpdaterClassName() != null;
  }
View Full Code Here

   * @see org.eclipse.ui.IWorkingSet#adaptElements(org.eclipse.core.runtime.IAdaptable[])
   */
  public IAdaptable[] adaptElements(IAdaptable[] objects) {
    IWorkingSetManager manager = getManager();
    if (manager instanceof WorkingSetManager) {
      WorkingSetDescriptor descriptor = getDescriptor(null);
      if (descriptor == null || !descriptor.isElementAdapterClassLoaded())
        return objects;
      return ((WorkingSetManager) manager).getElementAdapter(
            descriptor).adaptElements(this, objects);
    }
    return objects;
View Full Code Here

        ISelection selection = typesListViewer.getSelection();
        boolean hasSelection = selection != null
                && selection.isEmpty() == false;

        if (hasSelection && selection instanceof IStructuredSelection) {
            WorkingSetDescriptor workingSetDescriptor = (WorkingSetDescriptor) ((IStructuredSelection) selection)
                    .getFirstElement();
            return workingSetDescriptor.getId();
        }
        return null;
    }
View Full Code Here

    org.eclipse.ui.IWorkingSet ws = null;
    IWorkingSetManager manager = WorkbenchPlugin.getDefault()
        .getWorkingSetManager();
    WorkingSetRegistry registry = WorkbenchPlugin.getDefault()
        .getWorkingSetRegistry();
    WorkingSetDescriptor descriptor = null;
    registry.addWorkingSetDescriptor(descriptor);
   
    ImportProjectSetMainPage ip;
   
    PsfUrlStore.getInstance();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.registry.WorkingSetDescriptor

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.