Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdhouib2014-01-27 14:54:09 +0000
committersdhouib2014-01-27 14:54:09 +0000
commitd8b7fe104ffcec877dedeea6dc480536700299fb (patch)
tree5d46c4cfd911d92b98792678b0530fedbf5e85f4 /extraplugins/robotml
parentb58a26434724150a2c7e0ae6e8a0406151d01774 (diff)
downloadorg.eclipse.papyrus-d8b7fe104ffcec877dedeea6dc480536700299fb.tar.gz
org.eclipse.papyrus-d8b7fe104ffcec877dedeea6dc480536700299fb.tar.xz
org.eclipse.papyrus-d8b7fe104ffcec877dedeea6dc480536700299fb.zip
Resolving problem with uri of generated rtmaps files
Diffstat (limited to 'extraplugins/robotml')
-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 39022163990..0ca4a82aaf8 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);

Back to the top