Пример #1
0
 /*
  * (non-Javadoc)
  *
  * @see org.eclipse.ui.IWorkingSet#getImageDescriptor()
  */
 public ImageDescriptor getImageDescriptor() {
   WorkingSetDescriptor descriptor = getDescriptor(DEFAULT_ID);
   if (descriptor == null) {
     return null;
   }
   return descriptor.getIcon();
 }
Пример #2
0
 /*
  * (non-Javadoc)
  *
  * @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;
 }
Пример #3
0
 /** {@inheritDoc} */
 public boolean isEditable() {
   WorkingSetDescriptor descriptor = getDescriptor(null);
   return descriptor != null && descriptor.isEditable();
 }
Пример #4
0
 public boolean isSelfUpdating() {
   WorkingSetDescriptor descriptor = getDescriptor(null);
   return descriptor != null && descriptor.getUpdaterClassName() != null;
 }