Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcletavernie2011-10-25 12:23:50 +0000
committercletavernie2011-10-25 12:23:50 +0000
commitd53a354863ddf38b8dc32e8c2bd8093d28181c5c (patch)
tree5d6ac5d3fd3c68a8ec2e19243e7885c9722c931d /plugins/uml/org.eclipse.papyrus.diagram.statemachine/custom-src/org/eclipse/papyrus/diagram/statemachine/custom/edit/part/CustomStateCompartmentEditPart.java
parenteba71cd1d3fffbeedcf0aff9d81e1367dd5e3423 (diff)
downloadorg.eclipse.papyrus-d53a354863ddf38b8dc32e8c2bd8093d28181c5c.tar.gz
org.eclipse.papyrus-d53a354863ddf38b8dc32e8c2bd8093d28181c5c.tar.xz
org.eclipse.papyrus-d53a354863ddf38b8dc32e8c2bd8093d28181c5c.zip
359057: [Architecture - SVN - Build] The Papyrus architecture should be refactored
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359057
Diffstat (limited to 'plugins/uml/org.eclipse.papyrus.diagram.statemachine/custom-src/org/eclipse/papyrus/diagram/statemachine/custom/edit/part/CustomStateCompartmentEditPart.java')
-rw-r--r--plugins/uml/org.eclipse.papyrus.diagram.statemachine/custom-src/org/eclipse/papyrus/diagram/statemachine/custom/edit/part/CustomStateCompartmentEditPart.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.diagram.statemachine/custom-src/org/eclipse/papyrus/diagram/statemachine/custom/edit/part/CustomStateCompartmentEditPart.java b/plugins/uml/org.eclipse.papyrus.diagram.statemachine/custom-src/org/eclipse/papyrus/diagram/statemachine/custom/edit/part/CustomStateCompartmentEditPart.java
deleted file mode 100644
index b154c83aea5..00000000000
--- a/plugins/uml/org.eclipse.papyrus.diagram.statemachine/custom-src/org/eclipse/papyrus/diagram/statemachine/custom/edit/part/CustomStateCompartmentEditPart.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.eclipse.papyrus.diagram.statemachine.custom.edit.part;
-
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.diagram.statemachine.custom.figures.CustomShapeCompartmentFigure;
-import org.eclipse.papyrus.diagram.statemachine.edit.parts.StateCompartmentEditPart;
-import org.eclipse.uml2.uml.State;
-
-public class CustomStateCompartmentEditPart extends StateCompartmentEditPart {
-
- public CustomStateCompartmentEditPart(View view) {
- super(view);
- // TODO Auto-generated constructor stub
- }
-
- @Override
- protected void createDefaultEditPolicies() {
- // TODO Auto-generated method stub
- super.createDefaultEditPolicies();
- removeEditPolicy(EditPolicyRoles.CONNECTION_HANDLES_ROLE);
- removeEditPolicy(EditPolicyRoles.POPUPBAR_ROLE);
-
- }
-
- public IFigure createFigure() {
- CustomShapeCompartmentFigure result = new CustomShapeCompartmentFigure(getCompartmentName(), getMapMode());
- return result;
- }
-
- @Override
- protected void handleNotificationEvent(Notification notification) {
- // TODO Auto-generated method stub
- super.handleNotificationEvent(notification);
- refreshVisuals();
- }
-
- @Override
- protected void refreshVisuals() {
- // TODO Auto-generated method stub
- super.refreshVisuals();
-
- View stateView = (View)((View)getModel()).eContainer();
- State state = (State)stateView.getElement();
-
- ((CustomShapeCompartmentFigure)getFigure()).setToolTip(state.getName());
-
- }
-
-}

Back to the top