Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/directedit/locator/CellEditorLocatorAccess.java')
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/directedit/locator/CellEditorLocatorAccess.java46
1 files changed, 23 insertions, 23 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/directedit/locator/CellEditorLocatorAccess.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/directedit/locator/CellEditorLocatorAccess.java
index 74cfc60511b..5c2a75eec6b 100755
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/directedit/locator/CellEditorLocatorAccess.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.tooling.runtime/src/org/eclipse/papyrus/infra/gmfdiag/tooling/runtime/directedit/locator/CellEditorLocatorAccess.java
@@ -1,23 +1,23 @@
-package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.directedit.locator;
-
-import org.eclipse.draw2d.Label;
-import org.eclipse.gef.tools.CellEditorLocator;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
-import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.draw2d.labels.VerticalLabel;
-
-public class CellEditorLocatorAccess {
-
- public static final CellEditorLocatorAccess INSTANCE = new CellEditorLocatorAccess();
-
- public CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
- if (source.getFigure() instanceof WrappingLabel) {
- return new TextCellEditorLocator((WrappingLabel) source.getFigure());
- }
- if (source.getFigure() instanceof VerticalLabel) {
- return new VerticalLabelCellEditorLocator((VerticalLabel) source.getFigure());
- }
- return new LabelCellEditorLocator((Label) source.getFigure());
- }
-
-}
+package org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.directedit.locator;
+
+import org.eclipse.draw2d.Label;
+import org.eclipse.gef.tools.CellEditorLocator;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.ITextAwareEditPart;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
+import org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.draw2d.labels.VerticalLabel;
+
+public class CellEditorLocatorAccess {
+
+ public static final CellEditorLocatorAccess INSTANCE = new CellEditorLocatorAccess();
+
+ public CellEditorLocator getTextCellEditorLocator(ITextAwareEditPart source) {
+ if (source.getFigure() instanceof WrappingLabel) {
+ return new TextCellEditorLocator((WrappingLabel) source.getFigure());
+ }
+ if (source.getFigure() instanceof VerticalLabel) {
+ return new VerticalLabelCellEditorLocator((VerticalLabel) source.getFigure());
+ }
+ return new LabelCellEditorLocator((Label) source.getFigure());
+ }
+
+}

Back to the top