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<String, ImageDescriptor>(name, null));
}
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]));
private Resource[] queryCps(Map<Resource, Pair<String, ImageDescriptor>> map) {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- ResourceSelectionDialog3<Resource> dialog = new ResourceSelectionDialog3<Resource>(shell, map, "Select connection point type") {
+ ResourceSelectionDialog3<Resource> dialog = new ResourceSelectionDialog3<Resource>(shell, map, Messages.NewConnectionPoint_SelectConnectionPointType) {
@Override
protected IDialogSettings getBaseDialogSettings() {
return Activator.getDefault().getDialogSettings();