Class WoofEditor

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

    public class WoofEditor
    extends net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
    Web on OfficeFloor (WoOF) Editor.
    Author:
    Daniel Sagenschneider
    • Nested Class Summary

      • Nested classes/interfaces inherited from class net.officefloor.eclipse.ide.editor.AbstractIdeEditor

        net.officefloor.eclipse.ide.editor.AbstractIdeEditor.OutsideWorkbenchLauncher
    • Field Summary

      • Fields inherited from interface org.eclipse.ui.IEditorPart

        PROP_DIRTY, PROP_INPUT
      • Fields inherited from interface org.eclipse.ui.IWorkbenchPart

        PROP_TITLE
    • Constructor Summary

      Constructors 
      Constructor Description
      WoofEditor()
      Instantiate.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String editorStyle()  
      java.lang.String fileName()  
      static <M extends net.officefloor.model.Model,E extends java.lang.Enum<E>,I>
      void
      launchConfigurer​(net.officefloor.eclipse.ide.editor.AbstractConfigurableItem<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges,M,E,I> configurableItem, java.util.function.Consumer<M> prototypeDecorator)
      Convenience method to launch AbstractConfigurableItem outside IWorkbench.
      protected void loadParents​(java.util.List<net.officefloor.eclipse.ide.editor.AbstractConfigurableItem<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges,?,?,?>> parents)  
      protected net.officefloor.woof.model.woof.WoofModel loadRootModel​(net.officefloor.configuration.ConfigurationItem configurationItem)  
      static void main​(java.lang.String[] args)
      Test editor.
      java.lang.String paletteIndicatorStyle()  
      java.lang.String paletteStyle()  
      net.officefloor.woof.model.woof.WoofModel prototype()  
      void saveRootModel​(net.officefloor.woof.model.woof.WoofModel model, net.officefloor.configuration.WritableConfigurationItem configurationItem)  
      • Methods inherited from class org.eclipse.gef.mvc.fx.ui.parts.AbstractFXEditor

        createActions, createPartControl, deactivate, disposeActions, getAdapter, getDomain, init, isDirty, markNonDirty, setFocus, unhookViewers
      • Methods inherited from class net.officefloor.eclipse.ide.editor.AbstractIdeEditor

        activate, createOperations, dispose, doSave, doSaveAs, getCanvas, getContentViewer, getEditorStyleId, getOsgiBridge, getPaletteIndicatorStyleId, getPaletteStyleId, getParents, hookViewers, init, isSaveAsAllowed, launch, launch, launchOutsideWorkbench, setInput, setSelectOnly, setSite, translateStyle
      • Methods inherited from class org.eclipse.ui.part.EditorPart

        checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInputWithNotify, setPartName
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from interface org.eclipse.ui.IWorkbenchPart

        addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class org.eclipse.ui.part.WorkbenchPart

        addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setTitle, setTitleImage, setTitleToolTip, showBusy
    • Constructor Detail

      • WoofEditor

        public WoofEditor()
        Instantiate.
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Test editor.
        Parameters:
        args - Command line arguments.
        Throws:
        java.lang.Exception - If fails to run.
      • launchConfigurer

        public static <M extends net.officefloor.model.Model,E extends java.lang.Enum<E>,I> void launchConfigurer​(net.officefloor.eclipse.ide.editor.AbstractConfigurableItem<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges,M,E,I> configurableItem,
                                                                                                                  java.util.function.Consumer<M> prototypeDecorator)
        Convenience method to launch AbstractConfigurableItem outside IWorkbench.
        Type Parameters:
        M - Model type.
        E - Model event type.
        I - Item type.
        Parameters:
        configurableItem - AbstractConfigurableItem.
        prototypeDecorator - Optional prototype decorator.
      • fileName

        public java.lang.String fileName()
        Specified by:
        fileName in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
      • prototype

        public net.officefloor.woof.model.woof.WoofModel prototype()
        Specified by:
        prototype in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
      • paletteStyle

        public java.lang.String paletteStyle()
        Overrides:
        paletteStyle in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
      • paletteIndicatorStyle

        public java.lang.String paletteIndicatorStyle()
        Overrides:
        paletteIndicatorStyle in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
      • editorStyle

        public java.lang.String editorStyle()
        Overrides:
        editorStyle in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
      • loadParents

        protected void loadParents​(java.util.List<net.officefloor.eclipse.ide.editor.AbstractConfigurableItem<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges,?,?,?>> parents)
        Specified by:
        loadParents in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
      • loadRootModel

        protected net.officefloor.woof.model.woof.WoofModel loadRootModel​(net.officefloor.configuration.ConfigurationItem configurationItem)
                                                                   throws java.lang.Exception
        Specified by:
        loadRootModel in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
        Throws:
        java.lang.Exception
      • saveRootModel

        public void saveRootModel​(net.officefloor.woof.model.woof.WoofModel model,
                                  net.officefloor.configuration.WritableConfigurationItem configurationItem)
                           throws java.lang.Exception
        Specified by:
        saveRootModel in class net.officefloor.eclipse.ide.editor.AbstractIdeEditor<net.officefloor.woof.model.woof.WoofModel,net.officefloor.woof.model.woof.WoofModel.WoofEvent,net.officefloor.woof.model.woof.WoofChanges>
        Throws:
        java.lang.Exception