aQute.bnd.plugin.editors
Class BndMultiPageEditor

java.lang.Object
  extended by MultiPageEditorPart
      extended by aQute.bnd.plugin.editors.BndMultiPageEditor

public class BndMultiPageEditor
extends MultiPageEditorPart


Constructor Summary
BndMultiPageEditor()
          Creates a multi-page editor example.
 
Method Summary
protected  void createPages()
          Creates the pages of the multi-page editor.
 void dispose()
          The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors.
 void doSave(IProgressMonitor monitor)
          Saves the multi-page editor's document.
 void doSaveAs()
          Saves the multi-page editor's document as another file.
 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()
           
protected  void pageChange(int newPageIndex)
          Calculates the contents of page 2 when the it is activated.
 void resourceChanged(IResourceChangeEvent event)
          Closes all project files on project close.
 void setInput(IEditorInput iei)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BndMultiPageEditor

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

Method Detail

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.


setInput

public void setInput(IEditorInput iei)

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)
Calculates the contents of page 2 when the it is activated.


resourceChanged

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