Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormgolubev2015-05-06 22:21:50 +0000
committerRemi Schnekenburger2015-05-26 09:58:30 +0000
commitba7fe9b9057f8d1d0e7b1bd39ead0e0db58f8f7a (patch)
treef4fa5bf5482fc8b735a0b36e1f6f2ed9ddf76704 /plugins/developer
parent1f75afbb40be3843979a7124545256a6806be17e (diff)
downloadorg.eclipse.papyrus-ba7fe9b9057f8d1d0e7b1bd39ead0e0db58f8f7a.tar.gz
org.eclipse.papyrus-ba7fe9b9057f8d1d0e7b1bd39ead0e0db58f8f7a.tar.xz
org.eclipse.papyrus-ba7fe9b9057f8d1d0e7b1bd39ead0e0db58f8f7a.zip
Bug 458438 [Activity Diagram] Hyperlink dialogue not accessable for Actions in a
Partition Also bug 453718 and bug 441370 Change-Id: If1f5aadd826d2538f961fbc2eb549317490f74b8 Signed-off-by: mgolubev <golubev@montages.com> Reviewed-on: https://git.eclipse.org/r/47385 Reviewed-by: Remi Schnekenburger <remi.schnekenburger@cea.fr> Tested-by: Remi Schnekenburger <remi.schnekenburger@cea.fr>
Diffstat (limited to 'plugins/developer')
-rw-r--r--plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend17
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend
index a8f6d37b299..8ec2edaf53e 100644
--- a/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend
+++ b/plugins/developer/org.eclipse.papyrus.def/xtend/aspects/impl/diagram/editparts/CompartmentEditPart.xtend
@@ -17,6 +17,7 @@ import com.google.inject.Inject
import com.google.inject.Singleton
import org.eclipse.gmf.codegen.gmfgen.GenCompartment
import xpt.diagram.editparts.Common
+import org.eclipse.papyrus.papyrusgmfgenextension.ExtendedGenView
//DOCUMENTATION: PapyrusGenCode
//Overload only the creation of editPolicies in order to add the paste edit policy
@@ -48,5 +49,21 @@ import xpt.diagram.editparts.Common
return super.getTargetEditPart(request);
}
'''
+
+ override createFigure(GenCompartment it) {
+ if (hasExternalSuperClass(it,'org.eclipse.papyrus.uml.diagram.activity.edit.part.ShapeCompartmentWithoutScrollbarsEditPart')) {
+ '''
+ @Override
+ public org.eclipse.draw2d.IFigure createFigure() {
+ return super.createFigure();
+ }
+ '''
+ } else {
+ super.createFigure(it);
+ }
+ }
+ def boolean hasExternalSuperClass(GenCompartment it, String className) {
+ return it.eResource.allContents.filter(typeof(ExtendedGenView)).filter [v | (v.genView.contains(it) && v.superOwnedEditPart.equals(className))].size > 0;
+ }
}

Back to the top