IHintContext hints = new HintContext();
hints.setHint(DiagramModelHints.KEY_ACTIVE_EXPERIMENT, experiment);
if(layer != null) {
- System.out.println("using layer '"+layer+"'");
+ System.out.println("using layer '"+layer+"'"); //$NON-NLS-1$ //$NON-NLS-2$
hints.setHint(DiagramHints.KEY_FIXED_LAYERS, new String[] { layer });
}
void scheduleZoomToFit() {
if (sourceDiagram == null)
- throw new IllegalStateException("source diagram is null");
+ throw new IllegalStateException("source diagram is null"); //$NON-NLS-1$
sourceDiagram.setHint(Hints.KEY_DISABLE_PAINTING, Boolean.TRUE);
sourceDiagram.setHint(DiagramHints.KEY_INITIAL_ZOOM_TO_FIT, Boolean.TRUE);
if(experiment != null)
hints.setHint(DiagramModelHints.KEY_ACTIVE_EXPERIMENT, experiment);
if(layer != null) {
- System.out.println("using layer '"+layer+"'");
+ System.out.println("using layer '"+layer+"'"); //$NON-NLS-1$ //$NON-NLS-2$
hints.setHint(DiagramHints.KEY_FIXED_LAYERS, new String[] { layer });
}
IDiagram d = sessionContext.getSession().syncRequest(DiagramRequests.loadDiagram(new NullProgressMonitor(), getResourceInput2().getModel(null), structuralPath.resources[0], null, structuralPath.removeFromBeginning(0), synchronizer, hints));
}
});
} catch (DatabaseException e) {
- throw new UnsupportedOperationException("Failed to initialize data model synchronizer", e);
+ throw new UnsupportedOperationException("Failed to initialize data model synchronizer", e); //$NON-NLS-1$
}
}
@Override
public void dispose() {
- System.out.println("RemoteDiagramViewer.dispose()");
+ System.out.println("RemoteDiagramViewer.dispose()"); //$NON-NLS-1$
if(getSite() != null) {
IContextService contextService = (IContextService) getSite().getService(IContextService.class);
contextService.deactivateContext(contextActivation);
public void init(IEditorSite site, IEditorInput input)
throws PartInitException {
if (!(input instanceof IResourceEditorInput))
- throw new PartInitException("Invalid input: must be IResourceEditorInput");
+ throw new PartInitException("Invalid input: must be IResourceEditorInput"); //$NON-NLS-1$
setSite(site);
setInput(input);
support = new ResourceEditorSupport(this);
try {
SerialisationSupport support = session.getService(SerialisationSupport.class);
ResourceTransferData data = ResourceTransferUtils.readAwtTransferable(support, tr);
- if ("property".equals(data.getPurpose()))
+ if ("property".equals(data.getPurpose())) //$NON-NLS-1$
return data.toResourceArrayArray();
} catch (UnsupportedFlavorException e) {
throw new RuntimeException(e);