}
});
- IEditorPart[] eps = rfe.findEditors(new ResourceEditorInput("org.simantics.modeling.ui.symbolEditor", symbolEditorInput));
+ IEditorPart[] eps = rfe.findEditors(new ResourceEditorInput("org.simantics.modeling.ui.symbolEditor", symbolEditorInput)); //$NON-NLS-1$
if (eps.length == 0) {
- System.out.println("symbol editor part not found from multi page editor part: " + ap);
+ System.out.println("symbol editor part not found from multi page editor part: " + ap); //$NON-NLS-1$
return null;
}
viewer = eps[0];
}
ICanvasContext ctx = (ICanvasContext) viewer.getAdapter(ICanvasContext.class);
if (ctx == null) {
- System.out.println("No canvas context");
+ System.out.println("No canvas context"); //$NON-NLS-1$
return null;
}
MouseInfo minfo = ctx.getSingleItem(MouseUtil.class).getMousePressedInfo(0);
if(minfo == null) {
- System.out.println("No mouse info");
+ System.out.println("No mouse info"); //$NON-NLS-1$
return null;
}
final Point2D mpos = minfo.canvasPosition;
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
FileDialog dialog = new FileDialog(shell);
- dialog.setText("Choose an image to be imported");
- dialog.setFilterExtensions(new String[] {"*.svg", "*.png"});
+ dialog.setText(Messages.ImportSVG_ChooseImportImage);
+ dialog.setFilterExtensions(new String[] {"*.svg", "*.png"}); //$NON-NLS-1$ //$NON-NLS-2$
final String filename = dialog.open();
if(filename == null)
@Override
public void perform(WriteGraph g) throws DatabaseException {
- Commands.get(g, "Simantics/Diagram/createSVGElement")
+ Commands.get(g, "Simantics/Diagram/createSVGElement") //$NON-NLS-1$
.execute(g, g.syncRequest(new IndexRoot(composite)),
composite, suffix(filename), data, mposX, mposY);
}