|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.businessobjects.crystalreports.designer.sdk.util.EditorUtilities
public final class EditorUtilities
This class implements a collection of utility methods used with the Crystal Reports editor.
ICrystalReportsEditor
Constructor Summary | |
---|---|
EditorUtilities()
|
Method Summary | |
---|---|
static ICrystalDocumentSaveBehavior |
getDefaultSaveBehavior()
Returns the default save behavior. |
static ICrystalReportsEditor |
getEditorFrom(IEditorReference ref,
boolean restore)
Returns the editor referenced by this object. |
static ICrystalReportsEditor |
openEditor(IWorkbenchPage page,
IEditorInput input,
boolean activate)
Opens an editor on the given input. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditorUtilities()
Method Detail |
---|
public static ICrystalReportsEditor openEditor(IWorkbenchPage page, IEditorInput input, boolean activate) throws PartInitException
org.eclipse.ui.IWorkbenchPage#openEditor
method,
but waits until the document is loaded.
page
- an IWorkbenchPage
to open the editor withinput
- the editor input to openactivate
- specifies whether or not to activate the editor
ICrystalReportsEditor
object, or null
if an external editor was opened
PartInitException
- if there was an error opening the editorpublic static ICrystalReportsEditor getEditorFrom(IEditorReference ref, boolean restore) throws PartInitException
org.eclipse.ui.IEditorReference.getEditor
method,
but waits until the document is loaded.
ref
- the IEditorReference
to get the editor fromrestore
- specifies whether to restore the editor
ICrystalReportsEditor
and was successfully retrieved, null
otherwise
PartInitException
- if there was an error getting the editorpublic static ICrystalDocumentSaveBehavior getDefaultSaveBehavior()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |