summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdhouib2014-01-27 09:54:09 (EST)
committersdhouib2014-01-27 09:54:09 (EST)
commitd8b7fe104ffcec877dedeea6dc480536700299fb (patch)
tree5d46c4cfd911d92b98792678b0530fedbf5e85f4
parentb58a26434724150a2c7e0ae6e8a0406151d01774 (diff)
downloadorg.eclipse.papyrus-d8b7fe104ffcec877dedeea6dc480536700299fb.zip
org.eclipse.papyrus-d8b7fe104ffcec877dedeea6dc480536700299fb.tar.gz
org.eclipse.papyrus-d8b7fe104ffcec877dedeea6dc480536700299fb.tar.bz2
Resolving problem with uri of generated rtmaps files
-rw-r--r--extraplugins/robotml/generators/rtmaps/org.eclipse.papyrus.robotml.generators.intempora.rtmaps.ui/src/org/eclipse/papyrus/robotml/generators/intempora/rtmaps/ui/handler/AcceleoGenerateRTMapsCommandHandler.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/extraplugins/robotml/generators/rtmaps/org.eclipse.papyrus.robotml.generators.intempora.rtmaps.ui/src/org/eclipse/papyrus/robotml/generators/intempora/rtmaps/ui/handler/AcceleoGenerateRTMapsCommandHandler.java b/extraplugins/robotml/generators/rtmaps/org.eclipse.papyrus.robotml.generators.intempora.rtmaps.ui/src/org/eclipse/papyrus/robotml/generators/intempora/rtmaps/ui/handler/AcceleoGenerateRTMapsCommandHandler.java
index 3902216..0ca4a82 100644
--- a/extraplugins/robotml/generators/rtmaps/org.eclipse.papyrus.robotml.generators.intempora.rtmaps.ui/src/org/eclipse/papyrus/robotml/generators/intempora/rtmaps/ui/handler/AcceleoGenerateRTMapsCommandHandler.java
+++ b/extraplugins/robotml/generators/rtmaps/org.eclipse.papyrus.robotml.generators.intempora.rtmaps.ui/src/org/eclipse/papyrus/robotml/generators/intempora/rtmaps/ui/handler/AcceleoGenerateRTMapsCommandHandler.java
@@ -38,7 +38,7 @@ import org.eclipse.ui.handlers.HandlerUtil;
public class AcceleoGenerateRTMapsCommandHandler extends AbstractHandler {
/** The rtmaps folder. */
- private final String rtmapsFolder = "/rtmaps-generated-files";
+ private final String rtmapsFolder = "rtmaps-generated-files";
// /**
// * @see org.eclipse.papyrus.modelexplorer.handler.AbstractCommandHandler#getCommand()
@@ -77,8 +77,8 @@ public class AcceleoGenerateRTMapsCommandHandler extends AbstractHandler {
}
URI resourceURI = selectedElement.eResource().getURI();
- int lastSegment = resourceURI.segmentCount() - 1;
- URI targetFolderURI = resourceURI.trimSegments(lastSegment).appendSegment(rtmapsFolder);
+ //int lastSegment = resourceURI.segmentCount() - 1;
+ URI targetFolderURI = resourceURI.trimSegments(1).appendSegment(rtmapsFolder);
try {
TransactionalEditingDomain editingDomain = ServiceUtilsForEObject.getInstance().getTransactionalEditingDomain(selectedElement);