String label = graph.getPossibleRelatedValue2(_res, L0.HasLabel, Bindings.STRING);
if (label != null && !name.equals(label)) {
- name = label + " (" + name + ")";
+ name = label + " (" + name + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
Resource parent = graph.getPossibleObject(_res, L0.PartOf);
String parentURI = graph.getURI(parent);
if(parentURI.startsWith(modelURI)) {
parentURI = parentURI.substring(modelURI.length());
- if(parentURI.startsWith("/")) parentURI = parentURI.substring(1);
+ if(parentURI.startsWith("/")) parentURI = parentURI.substring(1); //$NON-NLS-1$
}
- name = name + " - " + URIStringUtils.unescape(parentURI);
+ name = name + " - " + URIStringUtils.unescape(parentURI); //$NON-NLS-1$
map.put(_res, new Pair<String, ImageDescriptor>(name, null));
String label = graph.getPossibleRelatedValue2(res, L0.HasLabel, Bindings.STRING);
if (label != null && !name.equals(label)) {
- name = label + " (" + name + ")";
+ name = label + " (" + name + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
Resource parent = graph.getPossibleObject(_res, L0.PartOf);
String parentURI = graph.getURI(parent);
if(parentURI.startsWith(modelURI)) {
parentURI = parentURI.substring(modelURI.length());
- if(parentURI.startsWith("/")) parentURI = parentURI.substring(1);
+ if(parentURI.startsWith("/")) parentURI = parentURI.substring(1); //$NON-NLS-1$
}
- name = name + " - " + URIStringUtils.unescape(parentURI);
+ name = name + " - " + URIStringUtils.unescape(parentURI); //$NON-NLS-1$
map.put(_res, new Pair<String, ImageDescriptor>(name, null));
@Override
public void run() {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- ResourceSelectionDialog3<Resource> dialog = new ResourceSelectionDialog3<Resource>(shell, map, "Select query type from list") {
+ ResourceSelectionDialog3<Resource> dialog = new ResourceSelectionDialog3<Resource>(shell, map, Messages.ModelingUIUtils_SelectQueryType) {
@Override
protected IDialogSettings getBaseDialogSettings() {
return Activator.getDefault().getDialogSettings();
@Override
public void perform(WriteGraph g) throws DatabaseException {
g.markUndoPoint();
- Simantics.applySCL("Simantics/Query", "createSCLQueryDefault", g, parent, selected);
+ Simantics.applySCL("Simantics/Query", "createSCLQueryDefault", g, parent, selected); //$NON-NLS-1$ //$NON-NLS-2$
}
});
});