Examples of IExtensionPoint


Examples of org.eclipse.core.runtime.IExtensionPoint

     * @param targetID the target id
     * @return the instantiated extension object, or <code>null</code> if not found
     */
    private Object createExtension(String extensionPointId, String elementName,
            String targetID) {
        IExtensionPoint extensionPoint = Platform.getExtensionRegistry()
                .getExtensionPoint(PI_WORKBENCH, extensionPointId);
        if (extensionPoint == null) {
            WorkbenchPlugin
                    .log("Unable to find extension. Extension point: " + extensionPointId + " not found"); //$NON-NLS-1$ //$NON-NLS-2$
            return null;
        }

        // Loop through the config elements.
        IConfigurationElement targetElement = null;
        IConfigurationElement[] elements = extensionPoint
                .getConfigurationElements();
        for (int j = 0; j < elements.length; j++) {
            IConfigurationElement element = elements[j];
            if (elementName == null || elementName.equals(element.getName())) {
                String strID = element.getAttribute("id"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    }
    //check the delta to see if there are any viewer contribution changes.  if so, null our builder to cause reparsing on the next menu show
    IExtensionDelta [] deltas = event.getExtensionDeltas();
    for (int i = 0; i < deltas.length; i++) {
      IExtensionDelta delta = deltas[i];
      IExtensionPoint extensionPoint = delta.getExtensionPoint();
      if (extensionPoint.getNamespace().equals(
          WorkbenchPlugin.PI_WORKBENCH)
          && extensionPoint.getSimpleIdentifier().equals(
              IWorkbenchRegistryConstants.PL_POPUP_MENU)) {

        boolean clearPopups = false;
        IConfigurationElement [] elements = delta.getExtension().getConfigurationElements();
        for (int j = 0; j < elements.length; j++) {
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

       *
       * @see java.lang.Runnable#run()
       */
      public void run() {
        // get the help UI extension from the registry
        IExtensionPoint point = Platform.getExtensionRegistry()
            .getExtensionPoint(HELP_SYSTEM_EXTENSION_ID);
        if (point == null) {
          // our extension point is missing (!) - act like there was
          // no help UI
          return;
        }
        IExtension[] extensions = point.getExtensions();
        if (extensions.length == 0) {
          // no help UI present
          return;
        }

View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

     * Loads the registered JUnit launch configurations
     */
    private void loadLaunchConfigTypeIDs()
    {
        fJUnitLaunchConfigTypeIDs = new ArrayList();
        IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(ID_EXTENSION_POINT_JUNIT_LAUNCHCONFIGS);
        if (extensionPoint == null)
        {
            return;
        }
        IConfigurationElement[] configs = extensionPoint.getConfigurationElements();

        for (int i = 0; i < configs.length; i++)
        {
            String configTypeID = configs[i].getAttribute("configTypeID"); //$NON-NLS-1$
            fJUnitLaunchConfigTypeIDs.add(configTypeID);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    private void initEntryEditorExtensions()
    {
        entryEditorExtensions = new HashMap<String, EntryEditorExtension>();

        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint( BrowserUIConstants.ENTRY_EDITOR_EXTENSION_POINT );
        IConfigurationElement[] members = extensionPoint.getConfigurationElements();

        // For each extension:
        for ( int m = 0; m < members.length; m++ )
        {
            EntryEditorExtension bean = new EntryEditorExtension();
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    public static Collection<ValueEditorExtension> getValueEditorExtensions()
    {
        Collection<ValueEditorExtension> valueEditorExtensions = new ArrayList<ValueEditorExtension>();

        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint( EXTENSION_POINT );
        IConfigurationElement[] members = extensionPoint.getConfigurationElements();

        // For each extension:
        for ( int m = 0; m < members.length; m++ )
        {
            ValueEditorExtension proxy = new ValueEditorExtension();
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

        if ( jndiLoggers == null )
        {
            jndiLoggers = new ArrayList<IJndiLogger>();

            IExtensionRegistry registry = Platform.getExtensionRegistry();
            IExtensionPoint extensionPoint = registry.getExtensionPoint( getPluginProperties().getString(
                "ExtensionPoint_JndiLogger_id" ) ); //$NON-NLS-1$
            IConfigurationElement[] members = extensionPoint.getConfigurationElements();
            for ( IConfigurationElement member : members )
            {
                try
                {
                    IJndiLogger logger = ( IJndiLogger ) member.createExecutableExtension( "class" ); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

        if ( connectionListeners == null )
        {
            connectionListeners = new ArrayList<IConnectionListener>();

            IExtensionRegistry registry = Platform.getExtensionRegistry();
            IExtensionPoint extensionPoint = registry.getExtensionPoint( getPluginProperties().getString(
                "ExtensionPoint_ConnectionListener_id" ) ); //$NON-NLS-1$
            IConfigurationElement[] members = extensionPoint.getConfigurationElements();
            for ( IConfigurationElement member : members )
            {
                try
                {
                    IConnectionListener listener = ( IConnectionListener ) member.createExecutableExtension( "class" ); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

     *
     * @return true if this plugin runs in IDE environment
     */
    public static boolean isIDEEnvironment()
    {
        IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
            "org.eclipse.ui.perspectives" ); //$NON-NLS-1$
        if ( extensionPoint != null )
        {
            IExtension[] extensions = extensionPoint.getExtensions();
            if ( extensions != null )
            {
                for ( int i = 0; i < extensions.length; i++ )
                {
                    IExtension extension = extensions[i];
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

     *
     * @return true if this plugin runs in IDE environment
     */
    public static boolean isIDEEnvironment()
    {
        IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
            "org.eclipse.ui.perspectives" ); //$NON-NLS-1$
        if ( extensionPoint != null )
        {
            IExtension[] extensions = extensionPoint.getExtensions();
            if ( extensions != null )
            {
                for ( int i = 0; i < extensions.length; i++ )
                {
                    IExtension extension = extensions[i];
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.