Class PluginXmlUtil


  • public final class PluginXmlUtil
    extends java.lang.Object
    This class is a utility class internally used for modifying plugin.xml files.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addEditorExtensionPoint​(org.eclipse.core.resources.IFile file, java.lang.String editorClass, boolean defaultEditor, java.lang.String extensions, java.lang.String icon, java.lang.String id, java.lang.String name)
      Adds an editor extension point to the given IFile.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addEditorExtensionPoint

        public static void addEditorExtensionPoint​(org.eclipse.core.resources.IFile file,
                                                   java.lang.String editorClass,
                                                   boolean defaultEditor,
                                                   java.lang.String extensions,
                                                   java.lang.String icon,
                                                   java.lang.String id,
                                                   java.lang.String name)
        Adds an editor extension point to the given IFile.
        Parameters:
        file - the file to modify
        editorClass - the editor class to register
        defaultEditor - whether to register it as a default editor
        extensions - the extensions to register for (comma-separated)
        icon - the icon the register
        id - the ID of the extension contribution
        name - the user-readable name of the editor