|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectag.ion.noa4e.ui.operations.LoadDocumentOperation
public class LoadDocumentOperation
Operation in order to load a OpenOffice.org document.
Constructor Summary | |
---|---|
LoadDocumentOperation(IOfficeApplication officeApplication,
IFrame frame,
java.net.URL url,
IDocumentDescriptor documentDescriptor)
Constructs new LoadDocumentOperation. |
|
LoadDocumentOperation(IOfficeApplication officeApplication,
java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
Constructs new LoadDocumentOperation. |
|
LoadDocumentOperation(java.lang.String documentType,
IOfficeApplication officeApplication,
IFrame frame,
java.io.InputStream inputStream,
IDocumentDescriptor documentDescriptor)
Constructs new LoadDocumentOperation. |
|
LoadDocumentOperation(java.lang.String documentType,
IOfficeApplication officeApplication,
IFrame frame,
java.net.URL url,
IDocumentDescriptor documentDescriptor)
Constructs new LoadDocumentOperation. |
|
LoadDocumentOperation(java.lang.String documentType,
IOfficeApplication officeApplication,
java.net.URL url,
IDocumentDescriptor documentDescriptor)
Constructs new LoadDocumentOperation. |
Method Summary | |
---|---|
IDocument |
getDocument()
Returns loaded document. |
java.lang.Exception |
getException()
Returns exception. |
void |
run(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Runs this operation. |
void |
setIsSubTask(boolean isSubTask)
Sets information whether this operation is a sub task. |
void |
setUpdateProgressMonitor(boolean updateProgressMonitor)
Sets information whether the progress monitor should be updated. |
void |
setUseStream(boolean useStream)
Sets information whether the document should be loaded by an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoadDocumentOperation(IOfficeApplication officeApplication, IFrame frame, java.net.URL url, IDocumentDescriptor documentDescriptor) throws java.lang.IllegalArgumentException
officeApplication
- office application to be useframe
- frame to be usedurl
- URL of the documentdocumentDescriptor
- document descriptor to be used (can be null)
java.lang.IllegalArgumentException
- if the submitted office application, frame or URL is not validpublic LoadDocumentOperation(java.lang.String documentType, IOfficeApplication officeApplication, IFrame frame, java.net.URL url, IDocumentDescriptor documentDescriptor)
documentType
- document type to be loaded (can be null)officeApplication
- office application to be useframe
- frame to be usedurl
- URL of the documentdocumentDescriptor
- document descriptor to be used (can be null)public LoadDocumentOperation(java.lang.String documentType, IOfficeApplication officeApplication, java.net.URL url, IDocumentDescriptor documentDescriptor)
documentType
- document type to be loaded (can be null)officeApplication
- office application to be useurl
- URL of the documentdocumentDescriptor
- document descriptor to be used (can be null)public LoadDocumentOperation(java.lang.String documentType, IOfficeApplication officeApplication, IFrame frame, java.io.InputStream inputStream, IDocumentDescriptor documentDescriptor)
documentType
- document type to be loaded (can be null)officeApplication
- office application to be useframe
- frame to be usedinputStream
- input stream to be useddocumentDescriptor
- document descriptor to be used (can be null)public LoadDocumentOperation(IOfficeApplication officeApplication, java.io.InputStream inputStream, IDocumentDescriptor documentDescriptor)
officeApplication
- office application to be useinputStream
- input stream to be useddocumentDescriptor
- document descriptor to be used (can be null)Method Detail |
---|
public void setIsSubTask(boolean isSubTask)
isSubTask
- information whether this operation is a sub taskpublic void setUpdateProgressMonitor(boolean updateProgressMonitor)
updateProgressMonitor
- information whether the progress monitor should be updatedpublic void setUseStream(boolean useStream)
useStream
- information whether the document should be loaded by
an input streampublic java.lang.Exception getException()
public IDocument getDocument()
public void run(org.eclipse.core.runtime.IProgressMonitor progressMonitor) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
IRunnableContext
's run
method,
which supplies the progress monitor.
A request to cancel the operation should be honored and acknowledged
by throwing InterruptedException
.
run
in interface org.eclipse.jface.operation.IRunnableWithProgress
progressMonitor
- the progress monitor to use to display progress and receive
requests for cancelation
java.lang.reflect.InvocationTargetException
- if the run method must propagate a checked exception,
it should wrap it inside an InvocationTargetException
; runtime exceptions are automatically
wrapped in an InvocationTargetException
by the calling context
java.lang.InterruptedException
- if the operation detects a request to cancel,
using IProgressMonitor.isCanceled()
, it should exit by throwing
InterruptedException
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |