|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.commands.common.EventManager org.eclipse.ui.part.WorkbenchPart org.eclipse.ui.part.EditorPart org.eclipse.ui.part.MultiPageEditorPart org.eclipse.ui.forms.editor.FormEditor org.fosstrak.llrp.commander.editors.LLRPEditor
public class LLRPEditor
This editor extended Eclipse FormEditor, which contains multiple pages. It provides one XML Editor page, one Graphics Editor page, and one Binary format viewer. In this multiple page editor, those three page works on the same message file, but only XML editor touch the file system. Once the message changed, XML Editor pass the LLRPBitList to Binary Viewer to update the binary format. The target file will be stored under one Eclipse project.
Field Summary |
---|
Fields inherited from class org.eclipse.ui.forms.editor.FormEditor |
---|
pages |
Fields inherited from class org.eclipse.ui.part.MultiPageEditorPart |
---|
PAGE_CONTAINER_SITE |
Fields inherited from interface org.eclipse.ui.IEditorPart |
---|
PROP_DIRTY, PROP_INPUT |
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
---|
PROP_TITLE |
Constructor Summary | |
---|---|
LLRPEditor()
|
Method Summary | |
---|---|
protected void |
addPages()
Extends FormEditor.addPages() Initial three pages involved
in this FormEditor |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor aMonitor)
Here the XML Editor Page save the content. |
void |
doSaveAs()
Here the XML Editor Page save as the content. |
boolean |
isSaveAsAllowed()
Always true. |
void |
markXMLEditorAsDirty()
Marks the XML Editor as dirty. |
protected void |
pageChange(int aNewPageIndex)
When user change the page, the content should be synchronized here. |
void |
setFocus()
|
Methods inherited from class org.eclipse.ui.forms.editor.FormEditor |
---|
addPage, addPage, addPage, addPage, addPage, addPage, addPageChangedListener, close, commitPages, configurePage, createPageContainer, createPages, createToolkit, dispose, editorDirtyStateChanged, findPage, getActiveEditor, getActivePageInstance, getCurrentPage, getSelectedPage, getToolkit, init, isDirty, removePage, removePageChangedListener, selectReveal, setActivePage, setActivePage, setActivePage, updateActionBarContributor |
Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart |
---|
activateSite, createPartControl, createSite, deactivateSite, findEditors, getActivePage, getAdapter, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageSite, getPageText, handlePropertyChange, initializePageSwitching, setActiveEditor, setControl, 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 |
---|
public LLRPEditor()
Method Detail |
---|
protected void addPages()
FormEditor.addPages()
Initial three pages involved
in this FormEditor
addPages
in class org.eclipse.ui.forms.editor.FormEditor
protected void pageChange(int aNewPageIndex)
pageChange
in class org.eclipse.ui.forms.editor.FormEditor
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.MultiPageEditorPart
public void doSave(org.eclipse.core.runtime.IProgressMonitor aMonitor)
doSave
in interface org.eclipse.ui.ISaveablePart
doSave
in class org.eclipse.ui.part.EditorPart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface org.eclipse.ui.ISaveablePart
isSaveAsAllowed
in class org.eclipse.ui.part.EditorPart
public void doSaveAs()
doSaveAs
in interface org.eclipse.ui.ISaveablePart
doSaveAs
in class org.eclipse.ui.part.EditorPart
public void markXMLEditorAsDirty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |