Class EditorUtils

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EXTENSION  
    • Constructor Summary

      Constructors 
      Constructor Description
      EditorUtils()
      Creates an instance (public constructor required by OSGI-DS).
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void activate​(org.osgi.service.component.ComponentContext context)
      Private method to activate plugin.
      ModelEditorConfigurer.IHeader createHeader​(org.eclipse.swt.widgets.Composite parent, Configuration config, java.io.File base, ModelInfo<?> info)
      Creates the actual header.
      protected void deactivate​(org.osgi.service.component.ComponentContext context)
      Private method to to de-activate plugin.
      IEmbeddedEditor embedEditor​(java.net.URI resourceURI, org.eclipse.swt.widgets.Composite composite)
      Embeds an editor handling the given resourceURI.
      static IEmbeddedEditor embedVilEditor​(java.net.URI file, org.eclipse.swt.widgets.Composite parent)
      Embeds an VIL editor for the given resource into the given parent.
      java.lang.String getEditorTitle​(boolean editable)
      Returns the editor title.
      java.lang.String getExtension()
      Returns the file extension to configure fore.
      AbstractModelChangeListener getModelChangeListener()
      Returns the model change listener, e.g., to rebuild the related model on save.
      int getOrdinal()
      Returns an ordinal for sorting model configurers for displying them.
      java.lang.String getPageTitle​(boolean editable)
      Returns the page title.
      boolean hasHeader()
      Returns whether the described editor shall have a header.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait