|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object FileDiagramDocumentProvider com.ibm.etools.systems.application.visual.editor.providers.ApplicationModelFileDiagramDocumentProvider
public class ApplicationModelFileDiagramDocumentProvider
The DocumentProvider for persisted ApplicationModel file. This povider saves the model and diagram files with special naming conversion. The model and diagram files have same base name but different file extensions.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
ApplicationModelFileDiagramDocumentProvider()
Constructor. |
Method Summary | |
---|---|
protected ISchedulingRule |
computeSaveSchedulingRule(IResource toCreateOrModify)
Computes the scheduling rule needed to create or modify a resource. |
protected void |
disposeElementInfo(Object element,
ElementInfo info)
|
protected void |
doSaveAs(TransactionalEditingDomain domain,
IFile file,
Diagram diagram,
Map options,
IProgressMonitor monitor)
Handles the saving of the diagram to a different file so that the model and diagram files are always created with same base names but different extensions. |
protected ISchedulingRule |
getSaveRule(Object element)
|
protected void |
saveDocumentToFile(IDocument document,
IFile file,
boolean overwrite,
IProgressMonitor monitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public ApplicationModelFileDiagramDocumentProvider()
Method Detail |
---|
protected void saveDocumentToFile(IDocument document, IFile file, boolean overwrite, IProgressMonitor monitor) throws CoreException
CoreException
protected void doSaveAs(TransactionalEditingDomain domain, IFile file, Diagram diagram, Map options, IProgressMonitor monitor) throws CoreException
domain
- the TransactionalEditingDomain we are saving infile
- the IFile to save todiagram
- Diagram that will be savedoptions
- save options or nullmonitor
- IProgressMonitor
CoreException
protected ISchedulingRule getSaveRule(Object element)
protected ISchedulingRule computeSaveSchedulingRule(IResource toCreateOrModify)
toCreateOrModify
- the resource to create or modify
protected void disposeElementInfo(Object element, ElementInfo info)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |