java.lang.Objectorg.eclipse.gmt.umlx.editor.pages.AbstractPageManager
org.eclipse.gmt.umlx.editor.pages.TreePageManager
public class TreePageManager
A TextPageManager manages editing of the primary edit Resource as a ResourceSet tree.
Constructor Summary | |
---|---|
TreePageManager(QVTEditor multiPageEditor,
int pageIndex)
|
Method Summary | |
---|---|
void |
activate(org.eclipse.core.runtime.IProgressMonitor monitor)
Activate the page by loading from the core representation. |
java.lang.String |
cannotDeactivate(org.eclipse.core.runtime.IProgressMonitor monitor)
Return a non-null reason if deactivate should not occur. |
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. |
java.lang.String |
getFileExtension()
Return the file extension appropriate for temporary files created to support this page. |
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 |
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 |
refresh()
Respond to an external change such as a model registry update. |
void |
setActive()
Install the page as the active 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 |
Constructor Detail |
---|
public TreePageManager(QVTEditor multiPageEditor, int pageIndex)
Method Detail |
---|
public void activate(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
public java.lang.String cannotDeactivate(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
public void deactivate(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
public java.lang.String getCurrentContents() throws java.io.IOException
IPageManager
java.io.IOException
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
public java.lang.String getFileExtension()
IPageManager
public boolean hasContent()
IPageManager
public boolean hasCopy()
IPageManager
public boolean isDirtyPage()
IPageManager
public boolean isPrimary()
IPageManager
public void postDeactivate()
IPageManager
public void refresh()
IPageManager
public void setActive()
IPageManager