java.lang.Objectorg.eclipse.gmt.umlx.editor.pages.AbstractPageManager
org.eclipse.gmt.umlx.editor.pages.EditorPageManager
public abstract class EditorPageManager
Nested Class Summary | |
---|---|
static class |
EditorPageManager.ByteArrayOutputStream2InputStream
|
Constructor Summary | |
---|---|
EditorPageManager(QVTEditor multiPageEditor,
boolean isPrimary,
java.lang.String pageTitle)
|
Method Summary | |
---|---|
void |
activate(org.eclipse.core.runtime.IProgressMonitor monitor)
Activate the page by loading from the core representation. |
void |
deactivate(org.eclipse.core.runtime.IProgressMonitor monitor)
Deactivate the page by saving to the core representation. |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Save the page contents to editor input file. |
java.lang.String |
getCurrentContents()
Create the current editor-specific content. |
LazyTextEditor |
getEditor()
Return the editor managed by this page manager. |
org.eclipse.ui.IFileEditorInput |
getEditorInput()
Return the edit or input that is (or will become) the editor input once the editor is activated. |
boolean |
hasContent()
Return true if the page has been given some initial content. |
boolean |
hasCopy()
Return true if there is a local copy to which editing can revert. |
boolean |
isDirtyPage()
Return true if the page has been modified. |
boolean |
isEditingAsSecondary()
Return true if this primary editor is currently editing its secondary page. |
boolean |
isPrimary()
Return true if the page directly edits the file upon which the multi-page editor was opened. |
void |
postDeactivate()
On completion of deactivate() release any resources established by cannotDeactivate(). |
void |
setActive()
Install the page as the active page. |
void |
setEditingAsSecondary()
Configure a primary page editor to edit its secondary copy following completion of an edit in a secondary page. |
Methods inherited from class org.eclipse.gmt.umlx.editor.pages.AbstractPageManager |
---|
getCreationFactory, getResourceSet, getTitle, isActivePageManager, isContentPageManager, isDirty, saveTo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.gmt.umlx.editor.IEditorPageManager |
---|
createContents, isActivePageManager, isContentPageManager |
Methods inherited from interface org.eclipse.gmt.umlx.editor.IPageManager |
---|
cannotDeactivate, getFileExtension, getTitle, isDirty, refresh, saveTo |
Constructor Detail |
---|
public EditorPageManager(QVTEditor multiPageEditor, boolean isPrimary, java.lang.String pageTitle)
Method Detail |
---|
public void activate(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, java.io.IOException, org.eclipse.gmt.umlx.alien.mapping.MappingConfigurationException
IPageManager
activate
in interface IPageManager
org.eclipse.core.runtime.CoreException
java.io.IOException
org.eclipse.gmt.umlx.alien.mapping.MappingConfigurationException
public void deactivate(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
deactivate
in interface IPageManager
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
doSave
in interface IPageManager
public java.lang.String getCurrentContents()
IPageManager
getCurrentContents
in interface IPageManager
public LazyTextEditor getEditor()
IEditorPageManager
getEditor
in interface IEditorPageManager
public org.eclipse.ui.IFileEditorInput getEditorInput()
IEditorPageManager
getEditorInput
in interface IEditorPageManager
public boolean hasContent()
IPageManager
hasContent
in interface IPageManager
public boolean hasCopy()
IPageManager
hasCopy
in interface IPageManager
public boolean isDirtyPage()
IPageManager
isDirtyPage
in interface IPageManager
public boolean isEditingAsSecondary()
IEditorPageManager
isEditingAsSecondary
in interface IEditorPageManager
public boolean isPrimary()
IPageManager
isPrimary
in interface IPageManager
public void postDeactivate()
IPageManager
postDeactivate
in interface IPageManager
public void setActive()
IPageManager
setActive
in interface IPageManager
public void setEditingAsSecondary()
IEditorPageManager
setEditingAsSecondary
in interface IEditorPageManager