diff options
author | Tobias Schwarz | 2014-06-23 11:19:41 +0000 |
---|---|---|
committer | Tobias Schwarz | 2014-06-23 11:19:41 +0000 |
commit | cdf29b796f4e87dc4f3adc36e9c3c86745cd22f6 (patch) | |
tree | 1de5e8cc7d2f823e93379dbf5590bf0fe8441085 /target_explorer | |
parent | d92684b7bd0f05f19c91020b96246ffa6e37e429 (diff) | |
download | org.eclipse.tcf-cdf29b796f4e87dc4f3adc36e9c3c86745cd22f6.tar.gz org.eclipse.tcf-cdf29b796f4e87dc4f3adc36e9c3c86745cd22f6.tar.xz org.eclipse.tcf-cdf29b796f4e87dc4f3adc36e9c3c86745cd22f6.zip |
Target Explorer: fix persistence naming
Diffstat (limited to 'target_explorer')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/LocatorNodeSelectionDialog.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/LocatorNodeSelectionDialog.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/LocatorNodeSelectionDialog.java index 803ce938c..4e9865cec 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/LocatorNodeSelectionDialog.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/dialogs/LocatorNodeSelectionDialog.java @@ -212,11 +212,11 @@ public class LocatorNodeSelectionDialog extends AbstractTreeSelectionDialog impl IURIPersistenceService persistenceService = ServiceManager.getInstance().getService(IURIPersistenceService.class); String id = peer.getID(); String name = id.replaceAll("\\W", "_").trim(); //$NON-NLS-1$ //$NON-NLS-2$ - IPath basePath = ModelLocationUtil.getStaticLocatorsRootLocation().append(name); - IPath path = basePath.addFileExtension("locator"); //$NON-NLS-1$ + IPath basePath = ModelLocationUtil.getStaticLocatorsRootLocation(); + IPath path = basePath.append(name).addFileExtension("locator"); //$NON-NLS-1$ int i = 0; while (path.toFile().exists()) { - path = basePath.append("_"+i).addFileExtension("locator"); //$NON-NLS-1$ //$NON-NLS-2$ + path = basePath.append(name+"_"+i).addFileExtension("locator"); //$NON-NLS-1$ //$NON-NLS-2$ } persistenceService.write(peer, path.toFile().toURI()); } |