Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionPoint


        if ( connectionStore.exists() )
        {
            return; // connections are stored from a previous sessions - don't call initializers
        }

        IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
            ConnectionCorePlugin.getDefault().getPluginProperties().getString(
                "ExtensionPoint_ConnectionInitializer_id" ) ); //$NON-NLS-1$

        IConfigurationElement[] configurationElements = extensionPoint.getConfigurationElements();
        for ( IConfigurationElement configurationElement : configurationElements )
        {
            if ( "connection".equals( configurationElement.getName() ) ) //$NON-NLS-1$
            {
                addInitialConnection( configurationElement );
View Full Code Here


     */
    public static List<SchemaConnector> getSchemaConnectors()
    {
        List<SchemaConnector> schemaConnectors = new ArrayList<SchemaConnector>();

        IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(
            Activator.getDefault().getPluginProperties().getString( "ExtensionPoint_SchemaConnectors_id" ) );
        IConfigurationElement[] members = extensionPoint.getConfigurationElements();

        if ( members != null )
        {
            // Creating each SchemaConnector
            for ( IConfigurationElement member : members )
View Full Code Here

     * @return the connection parameter pages
     */
    public static ConnectionParameterPage[] getConnectionParameterPages()
    {
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint( ConnectionUIPlugin.getDefault()
            .getPluginProperties().getString( "ExtensionPoint_ConnectionParameterPages_id" ) ); //$NON-NLS-1$
        IConfigurationElement[] members = extensionPoint.getConfigurationElements();
        final Map<String, ConnectionParameterPage> pageMap = new HashMap<String, ConnectionParameterPage>();

        // For each extension: instantiate the page
        for ( int m = 0; m < members.length; m++ )
        {
View Full Code Here

  // load all of the external editor xml data
  //   (but don't load the actual editors, yet)
  private void getExternalEditorConfigurations () {
    // Get extension point from Registry
    IExtensionPoint point = Platform.getExtensionRegistry()
                .getExtensionPoint(TAEConfiguratorPlugin.pluginId, EXTENSION_POINT_ID);
   
    externalEditorConfigurations = new ArrayList<IConfigurationElement>();
   
    // check: Any <extension> tags for our extension-point?
    if (point != null) {
      for (IExtension extension : point.getExtensions()) {
        Bundle b = Platform.getBundle(extension.getContributor().getName());
        if (b == null) {
          Utility.popMessage(
              "Problem with Editor Extension",
              "Editor '" + extension.getContributor().getName() + "' is present, but can't be loaded, probably because of unsatisfied dependencies\n",
View Full Code Here

    public List<AdapterFactory> getAdapterFactories() {
        if (adapterFactories == null) {
            adapterFactories = new ArrayList<AdapterFactory>();

            IExtensionRegistry registry = Platform.getExtensionRegistry();
            IExtensionPoint extensionPoint = registry.getExtensionPoint(ADAPTER_FACTORIES_ID);
            IExtension[] extensions = extensionPoint.getExtensions();

            for( int i = 0; i < extensions.length; i++ ) {
                IConfigurationElement[] elements = extensions[i].getConfigurationElements();

                for( int j = 0; j < elements.length; j++ ) {
View Full Code Here

    public synchronized static List<ExpressionViewerFactory> factoryList() {
        if (factoryList == null) {
            ArrayList<ExpressionViewerFactory> list = new ArrayList<ExpressionViewerFactory>();

            IExtensionRegistry registery = Platform.getExtensionRegistry();
            IExtensionPoint extensionPoint = registery.getExtensionPoint(FILTER_VIEWER_EXTENSION);

            IConfigurationElement[] configurationElements = extensionPoint
                    .getConfigurationElements();
            for (IConfigurationElement configuration : configurationElements) {
                if ("expressionViewer".equals(configuration.getName())) {
                    try {
                        ExpressionViewerFactory factory;
View Full Code Here

*/
public class PlatformExample {
    void processingExtensionPointByHand() {
        String xpid = "org.locationtech.udig.project.ui.tool";
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint(xpid);
        if (extensionPoint == null) {
            throw new NullPointerException("Could not find extensionPoint:" + xpid);
        }
        for( IExtension extension : extensionPoint.getExtensions() ) {
            for( IConfigurationElement element : extension.getConfigurationElements() ) {
                String name = element.getName();
                System.out.println(name);
                if ("modalTool".equals(name)) {
                    try {
View Full Code Here

    private synchronized static List<FilterViewerFactory> filterViewerFactoryList() {
        if (filterViewerFactoryList == null) {
            ArrayList<FilterViewerFactory> list = new ArrayList<FilterViewerFactory>();
           
            IExtensionRegistry registery = Platform.getExtensionRegistry();
            IExtensionPoint extensionPoint = registery.getExtensionPoint(FILTER_VIEWER_EXTENSION);
           
            IConfigurationElement[] configurationElements = extensionPoint.getConfigurationElements();
            for (IConfigurationElement configuration : configurationElements) {
                if ("filterViewer".equals(configuration.getName())) {
                    try {
                        FilterViewerFactory factory;
                        factory = (FilterViewerFactory) configuration.createExecutableExtension("class");
View Full Code Here

    /**
     * See who is plugged into the extension point.
     */
    private void initializeScopes() {
        IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(StyleEditor.ID);
        if (point == null)
            return;
        IExtension[] extensions = point.getExtensions();
        for (int i = 0; i < extensions.length; i++) {
            IConfigurationElement[] elements = extensions[i].getConfigurationElements();
            for (int j = 0; j < elements.length; j++)
                if (ELEMENT_SCOPE.equalsIgnoreCase(elements[j].getName()))
                    scopeAdded(elements[j]);
View Full Code Here

  private static ClasspathContainerInitializer computeClasspathContainerInitializer(String containerID) {
    Plugin jdtCorePlugin = JavaCore.getPlugin();
    if (jdtCorePlugin == null) return null;

    IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPCONTAINER_INITIALIZER_EXTPOINT_ID);
    if (extension != null) {
      IExtension[] extensions =  extension.getExtensions();
      for(int i = 0; i < extensions.length; i++){
        IConfigurationElement [] configElements = extensions[i].getConfigurationElements();
        for(int j = 0; j < configElements.length; j++){
          IConfigurationElement configurationElement = configElements[j];
          String initializerID = configurationElement.getAttribute("id"); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.IExtensionPoint

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.