use of com.archimatetool.editor.diagram.wizard.ExportAsImageWizard in project archi by archimatetool.
the class ExportAsImageAction method run.
@Override
public void run() {
LayerManager layerManager = (LayerManager) fGraphicalViewer.getEditPartRegistry().get(LayerManager.ID);
IFigure rootFigure = layerManager.getLayer(LayerConstants.PRINTABLE_LAYERS);
String name = null;
Object model = fGraphicalViewer.getContents().getModel();
if (model instanceof INameable) {
name = ((INameable) model).getName();
}
WizardDialog dialog = new ExtendedWizardDialog(fGraphicalViewer.getControl().getShell(), new ExportAsImageWizard(rootFigure, name), // $NON-NLS-1$
"ExportAsImageWizard") {
@Override
protected void createButtonsForButtonBar(Composite parent) {
// Change "Finish" to "Save"
super.createButtonsForButtonBar(parent);
Button b = getButton(IDialogConstants.FINISH_ID);
b.setText(Messages.ExportAsImageAction_1);
}
};
dialog.open();
}
use of com.archimatetool.editor.diagram.wizard.ExportAsImageWizard in project archi by archimatetool.
the class ExportAsImageAction method run.
@Override
public void run() {
String name = null;
Object model = fGraphViewer.getInput();
if (model instanceof INameable) {
name = ((INameable) model).getName();
}
WizardDialog dialog = new ExtendedWizardDialog(fGraphViewer.getControl().getShell(), new ExportAsImageWizard(fGraphViewer.getGraphControl().getContents(), name), // $NON-NLS-1$
"ExportZestViewAsImage") {
@Override
protected void createButtonsForButtonBar(Composite parent) {
// Change "Finish" to "Save"
super.createButtonsForButtonBar(parent);
Button b = getButton(IDialogConstants.FINISH_ID);
b.setText(Messages.ExportAsImageAction_3);
}
};
dialog.open();
}
Aggregations