org.fosstrak.llrp.commander.editors.graphical
Class GraphicalEditorPage

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.EditorPart
              extended by org.eclipse.ui.forms.editor.FormPage
                  extended by org.fosstrak.llrp.commander.editors.graphical.GraphicalEditorPage
All Implemented Interfaces:
java.util.Observer, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.forms.editor.IFormPage, 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 GraphicalEditorPage
extends org.eclipse.ui.forms.editor.FormPage
implements java.util.Observer

The GraphicalEditorPage is the root class of the graphical editor. It has a LLRPMasterDetailsBlock.

Author:
Ulrich Etter, ETHZ

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
GraphicalEditorPage(LLRPEditor editor)
          Creates a new GraphicalEditorPage.
 
Method Summary
protected  void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
           
 org.llrp.ltk.types.LLRPMessage getLLRPMessage()
          Returns the LLRP message that is currently displayed in the graphical editor.
 boolean isGraphicalEditorDirty()
           
 void setDirty(boolean dirty)
          Sets the dirty flag to the given value.
 void setLLRPMessage(org.llrp.ltk.types.LLRPMessage lLRPMessage)
          Changes the message currently displayed in the graphical editor to the given message.
 void update(java.util.Observable arg0, java.lang.Object arg1)
           
 
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, dispose, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setActive, setFocus, setIndex
 
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, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, 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.IEditorPart
getEditorInput, getEditorSite
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeeded
 

Constructor Detail

GraphicalEditorPage

public GraphicalEditorPage(LLRPEditor editor)
Creates a new GraphicalEditorPage.

Parameters:
editor - the editor this editor page belongs to
Method Detail

createFormContent

protected void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
Overrides:
createFormContent in class org.eclipse.ui.forms.editor.FormPage

getLLRPMessage

public org.llrp.ltk.types.LLRPMessage getLLRPMessage()
Returns the LLRP message that is currently displayed in the graphical editor.

Returns:
the LLRP message that is currently displayed in the graphical editor

setLLRPMessage

public void setLLRPMessage(org.llrp.ltk.types.LLRPMessage lLRPMessage)
Changes the message currently displayed in the graphical editor to the given message.

Parameters:
lLRPMessage - the message that should be displayed in the graphical editor

isGraphicalEditorDirty

public boolean isGraphicalEditorDirty()
Returns:
true if the graphical editor is dirty, and false otherwise.

setDirty

public void setDirty(boolean dirty)
Sets the dirty flag to the given value.


update

public void update(java.util.Observable arg0,
                   java.lang.Object arg1)
Specified by:
update in interface java.util.Observer


Copyright © 2009. All Rights Reserved.