com.ibm.productivity.tools.ui.views.operations
Class OperationFactory

java.lang.Object
  extended by com.ibm.productivity.tools.ui.views.operations.OperationFactory

public class OperationFactory
extends java.lang.Object

The factory class for creating rich document operations.

Since:
8.0.1
See Also:
Operation

Constructor Summary
OperationFactory()
           
 
Method Summary
static CloseOperation createCloseOperation(boolean prompt)
          Creates an operation for closing a document in a rich document view.
static LoadOperation createLoadOperation(java.lang.String fileName, boolean asTemplate)
          Creates an operation for loading a document into a rich document view.
static NewOperation createNewOperation(RichDocumentType type)
          Creates an operation for constructing a new document in a rich document view.
static SaveAsOperation createSaveAsOperation(java.lang.String fileName)
          Creates an operation for saving the document as a new file.
static SaveOperation createSaveOperation(boolean silentMode)
          Creates an operation for saving the current document in a rich document view.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationFactory

public OperationFactory()
Method Detail

createNewOperation

public static NewOperation createNewOperation(RichDocumentType type)
Creates an operation for constructing a new document in a rich document view.

Parameters:
type - Secifies the type of rich document to create
Returns:
the new operation

createCloseOperation

public static CloseOperation createCloseOperation(boolean prompt)
Creates an operation for closing a document in a rich document view.

Parameters:
prompt - flag to indicate whether a prompt is required before closing
Returns:
the close operation

createLoadOperation

public static LoadOperation createLoadOperation(java.lang.String fileName,
                                                boolean asTemplate)
Creates an operation for loading a document into a rich document view.

Parameters:
fileName - the absolute file path for the file to load
asTemplate - flag to indicate whether the document is loaded as a template
Returns:
the load operation

createSaveAsOperation

public static SaveAsOperation createSaveAsOperation(java.lang.String fileName)
Creates an operation for saving the document as a new file.

Parameters:
fileName - the absolute file path for the file to save
Returns:
the save-as operation

createSaveOperation

public static SaveOperation createSaveOperation(boolean silentMode)
Creates an operation for saving the current document in a rich document view.

Parameters:
silentMode - flag to indicate whether the document is saved silently
Returns:
the save operation