ist.palcom.eclipse.browserplugin.editors
Class AssemblyEditor

java.lang.Object
  extended by MultiPageEditorPart
      extended by ist.palcom.eclipse.browserplugin.editors.AssemblyEditor

public class AssemblyEditor
extends MultiPageEditorPart

A multi-page editor with an XML editor and an AST view.


Constructor Summary
AssemblyEditor()
          Creates a multi-page editor example.
 
Method Summary
protected  void createPages()
          Creates the pages of the multi-page editor.
static Use createUseForObject(java.lang.Object obj)
          Helper method.
 void dispose()
          The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors.
 void doRefresh()
           
 void doSave(IProgressMonitor monitor)
          Saves the multi-page editor's document.
 void doSaveAs()
          Saves the multi-page editor's document as another file.
 java.lang.Object getAdapter(java.lang.Class required)
           
static java.lang.String getIDfromObject(java.lang.Object o)
           
 PRDAssemblyVer getLatestVersionFromActiveEditor()
           
static java.lang.String getParamNames(CommandInfo ci)
           
 void gotoMarker(IMarker marker)
           
 void init(IEditorSite site, IEditorInput editorInput)
          The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.
 boolean isSaveAsAllowed()
           
 void mergeAddedFromAssemblyDescriptor(PRDAssemblyD ad)
           
protected  void pageChange(int newPageIndex)
          Parses the XML representation when the AST page is activated.
 void resourceChanged(IResourceChangeEvent event)
          Closes all project files on project close.
 boolean startAndRelease(PRDAssemblyVer a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblyEditor

public AssemblyEditor()
Creates a multi-page editor example.

Method Detail

getAdapter

public java.lang.Object getAdapter(java.lang.Class required)

getLatestVersionFromActiveEditor

public PRDAssemblyVer getLatestVersionFromActiveEditor()

createPages

protected void createPages()
Creates the pages of the multi-page editor.


dispose

public void dispose()
The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors. Subclasses may extend.


doSave

public void doSave(IProgressMonitor monitor)
Saves the multi-page editor's document.


doSaveAs

public void doSaveAs()
Saves the multi-page editor's document as another file. Also updates the text for page 0's tab, and updates this multi-page editor's input to correspond to the nested editor's.


gotoMarker

public void gotoMarker(IMarker marker)

init

public void init(IEditorSite site,
                 IEditorInput editorInput)
          throws PartInitException
The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.

Throws:
PartInitException

isSaveAsAllowed

public boolean isSaveAsAllowed()

pageChange

protected void pageChange(int newPageIndex)
Parses the XML representation when the AST page is activated.


resourceChanged

public void resourceChanged(IResourceChangeEvent event)
Closes all project files on project close.


getParamNames

public static java.lang.String getParamNames(CommandInfo ci)

getIDfromObject

public static java.lang.String getIDfromObject(java.lang.Object o)

createUseForObject

public static Use createUseForObject(java.lang.Object obj)
Helper method.

Parameters:
obj - - the declaration to be used
Returns:
a Use (subclass) matching the type of obj E.g., if obj instanceof VariableDecl, a VariableUse object will be returned

startAndRelease

public boolean startAndRelease(PRDAssemblyVer a)

doRefresh

public void doRefresh()

mergeAddedFromAssemblyDescriptor

public void mergeAddedFromAssemblyDescriptor(PRDAssemblyD ad)