Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsdhouib2014-01-31 09:53:27 -0500
committersdhouib2014-01-31 09:53:27 -0500
commit6010ec0d49ac5157db40418daa1a524b98829bbc (patch)
tree9396ef57896df7e1ae2fe97d7e991fa73c425cad /extraplugins
parente6b8369e79b6debf82976e352449218487671f05 (diff)
downloadorg.eclipse.papyrus-6010ec0d49ac5157db40418daa1a524b98829bbc.tar.gz
org.eclipse.papyrus-6010ec0d49ac5157db40418daa1a524b98829bbc.tar.xz
org.eclipse.papyrus-6010ec0d49ac5157db40418daa1a524b98829bbc.zip
resolving problem of rtmaps code generation
Diffstat (limited to 'extraplugins')
-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..fb08bd122cd 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);
+
+ URI targetFolderURI = resourceURI.trimSegments(1).appendSegment(rtmapsFolder);
try {
TransactionalEditingDomain editingDomain = ServiceUtilsForEObject.getInstance().getTransactionalEditingDomain(selectedElement);

Back to the top