Class Editor

  • All Implemented Interfaces:
    java.util.Observer, IProductLineProjectListener, IEASyPageListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.dialogs.IPageChangeProvider, org.eclipse.ui.IEditorPart, org.eclipse.ui.IPropertyListener, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

    public class Editor
    extends org.eclipse.ui.part.MultiPageEditorPart
    implements java.util.Observer, org.eclipse.ui.IPropertyListener, IEASyPageListener, IProductLineProjectListener
    Multipage editor for editing and configuring one product line project.
    Author:
    El-Sharkawy
    • Constructor Summary

      Constructors 
      Constructor Description
      Editor()
      Sole constructor for this class.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void addConditionalPage​(AbstractEASyEditorPage page)
      Adds an editor page.
      void buildScriptChanged()
      This method is called, if the PLPInfo.getBuildScript() was changed.
      void configurationPulled()
      This method is called, if the configuration is pulled.
      protected void createPages()  
      void dispose()  
      void doSave​(org.eclipse.core.runtime.IProgressMonitor monitor)  
      void doSaveAs()  
      void init​(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput)  
      boolean isDirty()  
      boolean isSaveAsAllowed()  
      void pageBecomesDirty​(AbstractEASyEditorPage page)
      Informs the listener that the page becomes dirty.
      void projectClosed()
      This method is called, if the related PLPInfo is closed.
      void propertyChanged​(java.lang.Object source, int propId)  
      static void registerNewPage​(IEASyEditorPageCreator pageCreator)
      Registers a IEASyEditorPageCreator from an extension plug-in to this class.
      void update​(java.util.Observable obs, java.lang.Object arg)  
      • Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart

        activateSite, addPage, addPage, addPage, addPage, addPageChangedListener, createContainer, createItem, createPageContainer, createPartControl, createSite, deactivateSite, findEditors, getActiveEditor, getActivePage, getAdapter, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageSite, getPageText, getSelectedPage, handlePropertyChange, initializePageSwitching, pageChange, removePage, removePageChangedListener, setActiveEditor, setActivePage, setControl, setFocus, setPageImage, setPageText
      • Methods inherited from class org.eclipse.ui.part.EditorPart

        checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
      • 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, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.ui.IWorkbenchPart

        addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
    • Constructor Detail

      • Editor

        public Editor()
        Sole constructor for this class.
    • Method Detail

      • init

        public void init​(org.eclipse.ui.IEditorSite site,
                         org.eclipse.ui.IEditorInput editorInput)
                  throws org.eclipse.ui.PartInitException
        Specified by:
        init in interface org.eclipse.ui.IEditorPart
        Overrides:
        init in class org.eclipse.ui.part.MultiPageEditorPart
        Throws:
        org.eclipse.ui.PartInitException
      • addConditionalPage

        private void addConditionalPage​(AbstractEASyEditorPage page)
        Adds an editor page.
        Parameters:
        page - the editor page (ignored if null)
      • createPages

        protected void createPages()
        Specified by:
        createPages in class org.eclipse.ui.part.MultiPageEditorPart
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.ui.IWorkbenchPart
        Overrides:
        dispose in class org.eclipse.ui.part.MultiPageEditorPart
      • doSave

        public void doSave​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        doSave in interface org.eclipse.ui.ISaveablePart
        Specified by:
        doSave in class org.eclipse.ui.part.EditorPart
      • doSaveAs

        public void doSaveAs()
        Specified by:
        doSaveAs in interface org.eclipse.ui.ISaveablePart
        Specified by:
        doSaveAs in class org.eclipse.ui.part.EditorPart
      • isSaveAsAllowed

        public boolean isSaveAsAllowed()
        Specified by:
        isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart
        Specified by:
        isSaveAsAllowed in class org.eclipse.ui.part.EditorPart
      • update

        public void update​(java.util.Observable obs,
                           java.lang.Object arg)
        Specified by:
        update in interface java.util.Observer
      • isDirty

        public boolean isDirty()
        Specified by:
        isDirty in interface org.eclipse.ui.ISaveablePart
        Overrides:
        isDirty in class org.eclipse.ui.part.MultiPageEditorPart
      • propertyChanged

        public void propertyChanged​(java.lang.Object source,
                                    int propId)
        Specified by:
        propertyChanged in interface org.eclipse.ui.IPropertyListener