|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.Action
org.eclipse.gef.ui.actions.WorkbenchPartAction
org.eclipse.gef.ui.actions.EditorPartAction
org.eclipse.gef.ui.actions.SelectionAction
be.ac.vub.cocompose.eclipse.actions.ExportAction
Exports the current model in another file format. Currently supports EPS and SVG.
Field Summary |
Fields inherited from interface org.eclipse.jface.action.IAction |
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT |
Constructor Summary | |
ExportAction(IWorkbenchPart part)
Creates a CoComposePasteAction. |
Method Summary | |
protected boolean |
calculateEnabled()
|
protected Object |
getContents()
Gets printing contents. |
IFile |
getFile()
Gets the file to which the EPS is exported. |
protected RootEditPart |
getRootEditPart()
Retrieves the root editpart of the current model. |
protected void |
handleSelectionChanged()
|
protected void |
init()
|
void |
performSaveEPS(IProgressMonitor monitor)
Performs saving an EPS file. |
void |
performSaveSVG(IProgressMonitor monitor)
Performs saving an SVG file. |
void |
run()
|
protected void |
setContents(Object o)
Sets printing contents. |
protected String |
stripFilename(IFile file)
Gets the filename stripped from its extension. |
Methods inherited from class org.eclipse.gef.ui.actions.SelectionAction |
dispose, getSelectedObjects, getSelection, setSelection, setSelectionProvider, update |
Methods inherited from class org.eclipse.gef.ui.actions.EditorPartAction |
getEditorPart, setEditorPart |
Methods inherited from class org.eclipse.gef.ui.actions.WorkbenchPartAction |
execute, getCommandStack, getWorkbenchPart, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExportAction(IWorkbenchPart part)
part
- the CoCompose editor.Method Detail |
public void run()
IAction.run()
public void performSaveEPS(IProgressMonitor monitor)
monitor
- public void performSaveSVG(IProgressMonitor monitor)
monitor
- protected RootEditPart getRootEditPart()
protected void handleSelectionChanged()
SelectionAction.handleSelectionChanged()
protected boolean calculateEnabled()
WorkbenchPartAction.calculateEnabled()
protected void init()
WorkbenchPartAction.init()
public IFile getFile()
protected String stripFilename(IFile file)
file
- the file to get the name for.
protected Object getContents()
protected void setContents(Object o)
o
- printing contents.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |