X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Factions%2FNewConnectionPoint.java;h=2d6074ec8bd7583d9dbd848a2a977b5d071a1eca;hp=d73adc421be2afc70c0e15a3c089f34e3b2016e8;hb=47269fe0acb894f346810417d950a1ab59cdc0ea;hpb=11309f6516278203264b680235cbbe1dc2bde98e diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/NewConnectionPoint.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/NewConnectionPoint.java index d73adc421..2d6074ec8 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/NewConnectionPoint.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/NewConnectionPoint.java @@ -91,7 +91,7 @@ public class NewConnectionPoint implements ActionFactory { name = sb.toString(); } else { // domains.size() == 1 - name = NameUtils.getSafeName(graph, _res) + " (" + graph.getURI(domains.iterator().next()) + ")"; + name = NameUtils.getSafeName(graph, _res) + " (" + graph.getURI(domains.iterator().next()) + ")"; //$NON-NLS-1$ //$NON-NLS-2$ } map.put(_res, new Pair(name, null)); @@ -116,12 +116,12 @@ public class NewConnectionPoint implements ActionFactory { } String createConnectionPointComment(ReadGraph graph, Resource target, Resource[] cps) throws DatabaseException { StringBuilder result = new StringBuilder(); - result.append("Created connection point"); + result.append("Created connection point"); //$NON-NLS-1$ if (cps.length > 1) result.append('s'); - result.append(" for ") + result.append(" for ") //$NON-NLS-1$ .append(NameUtils.getSafeName(graph, componentType)) - .append(":\n"); + .append(":\n"); //$NON-NLS-1$ for (int i = 0; i < cps.length; ++i) { result.append('\t'); result.append(NameUtils.getSafeName(graph, cps[i])); @@ -162,7 +162,7 @@ public class NewConnectionPoint implements ActionFactory { private Resource[] queryCps(Map> map) { Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); - ResourceSelectionDialog3 dialog = new ResourceSelectionDialog3(shell, map, "Select connection point type") { + ResourceSelectionDialog3 dialog = new ResourceSelectionDialog3(shell, map, Messages.NewConnectionPoint_SelectConnectionPointType) { @Override protected IDialogSettings getBaseDialogSettings() { return Activator.getDefault().getDialogSettings();