java.lang.Objectorg.eclipse.gmt.umlx.editor.pages.AbstractPageManager
org.eclipse.gmt.umlx.editor.pages.EditorPageManager
org.eclipse.gmt.umlx.editor.pages.TextPageManager
public class TextPageManager
A TextPageManager manages editing of the primary edit Resource as a concrete syntax text file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.gmt.umlx.editor.pages.EditorPageManager |
---|
EditorPageManager.ByteArrayOutputStream2InputStream |
Constructor Summary | |
---|---|
TextPageManager(QVTEditor multiPageEditor,
boolean isMaster)
|
Method Summary | |
---|---|
java.lang.String |
cannotDeactivate(org.eclipse.core.runtime.IProgressMonitor monitor)
Return a non-null reason if deactivate should not occur. |
void |
createContents(java.io.OutputStream outputStream)
Create the editor-specific content in outputStream from getEcoreResource(). |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
Save the page contents to editor input file. |
java.lang.String |
getFileExtension()
Return the file extension appropriate for temporary files created to support this page. |
void |
refresh()
Respond to an external change such as a model registry update. |
void |
saveTo(org.eclipse.core.resources.IFile file,
org.eclipse.core.runtime.IProgressMonitor monitor)
Save the page contents to the specified file. |
Methods inherited from class org.eclipse.gmt.umlx.editor.pages.EditorPageManager |
---|
activate, deactivate, getCurrentContents, getEditor, getEditorInput, hasContent, hasCopy, isDirtyPage, isEditingAsSecondary, isPrimary, postDeactivate, setActive, setEditingAsSecondary |
Methods inherited from class org.eclipse.gmt.umlx.editor.pages.AbstractPageManager |
---|
getCreationFactory, getResourceSet, getTitle, isActivePageManager, isContentPageManager, isDirty |
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 |
---|
isActivePageManager, isContentPageManager |
Methods inherited from interface org.eclipse.gmt.umlx.editor.IPageManager |
---|
getTitle, isDirty |
Constructor Detail |
---|
public TextPageManager(QVTEditor multiPageEditor, boolean isMaster)
Method Detail |
---|
public java.lang.String cannotDeactivate(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
public void createContents(java.io.OutputStream outputStream) throws org.eclipse.gmt.umlx.alien.mapping.MappingConfigurationException, java.io.IOException
IEditorPageManager
org.eclipse.gmt.umlx.alien.mapping.MappingConfigurationException
java.io.IOException
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
doSave
in interface IPageManager
doSave
in class EditorPageManager
public java.lang.String getFileExtension()
IPageManager
public void refresh()
IPageManager
public void saveTo(org.eclipse.core.resources.IFile file, org.eclipse.core.runtime.IProgressMonitor monitor)
IPageManager
saveTo
in interface IPageManager
saveTo
in class AbstractPageManager