Package org.eclipse.core.internal.runtime

Examples of org.eclipse.core.internal.runtime.ReferenceHashSet.toArray()


      ReferenceHashSet associatedObjects = (ReferenceHashSet) extensionToObjects.remove(delta.getExtension());
      if (associatedObjects == null)
        return;
      //Copy the objects early so we don't hold the lock too long
      removedObjects = associatedObjects.toArray();
    }
    notify(delta, removedObjects);
  }

  protected void applyRemove(IExtensionChangeHandler handler, IExtension removedExtension, Object[] removedObjects) {
View Full Code Here


        return EMPTY_ARRAY;
      ReferenceHashSet objectSet = (ReferenceHashSet) extensionToObjects.get(element);
      if (objectSet == null)
        return EMPTY_ARRAY;

      return objectSet.toArray();
    }
  }

  /* (non-Javadoc)
   * @see IExtensionTracker@close()
View Full Code Here

      if (closed)
        return EMPTY_ARRAY;
      ReferenceHashSet associatedObjects = (ReferenceHashSet) extensionToObjects.remove(extension);
      if (associatedObjects == null)
        return EMPTY_ARRAY;
      return associatedObjects.toArray();
    }
  }

  /**
   * Return an instance of filter matching all changes for the given extension point.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.