Package org.eclipse.ui.internal.registry

Examples of org.eclipse.ui.internal.registry.EditorRegistry.findEditor()


    IFileEditorMapping[] mappings = registry.getFileEditorMappings();
    for (IFileEditorMapping mapping : mappings) {
      if (mapping.getExtension().equals("java")) {
        if (mapping instanceof FileEditorMapping) {
          IEditorDescriptor desc = registry.findEditor(AspectJEditor.ASPECTJ_EDITOR_ID);
          ((FileEditorMapping) mapping).setDefaultEditor((EditorDescriptor) desc);
        }
      }
    }
    registry.setFileEditorMappings((FileEditorMapping[]) mappings);
View Full Code Here


        else if (mapping.getExtension().equals("class"))
        {
          classPlain = mapping;
        }
      }
      IEditorDescriptor jdtClassViewer = registry.findEditor(JDT_EDITOR_ID);

      // * If there is a "class without source" type - handle this and revert
      // "class" to the default handler.
      // * Else register as the default handler for "class"

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.