Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter/src/org/eclipse/papyrus/uml/profile/drafter/ui/contentassist/StereotypeContentProvider.java')
-rw-r--r--plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter/src/org/eclipse/papyrus/uml/profile/drafter/ui/contentassist/StereotypeContentProvider.java174
1 files changed, 88 insertions, 86 deletions
diff --git a/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter/src/org/eclipse/papyrus/uml/profile/drafter/ui/contentassist/StereotypeContentProvider.java b/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter/src/org/eclipse/papyrus/uml/profile/drafter/ui/contentassist/StereotypeContentProvider.java
index 2a17a76f44b..6dd567e9843 100644
--- a/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter/src/org/eclipse/papyrus/uml/profile/drafter/ui/contentassist/StereotypeContentProvider.java
+++ b/plugins/uml/profile/org.eclipse.papyrus.uml.profile.drafter/src/org/eclipse/papyrus/uml/profile/drafter/ui/contentassist/StereotypeContentProvider.java
@@ -1,86 +1,88 @@
-/*****************************************************************************
- * Copyright (c) 2014 Cedric Dumoulin.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Initial API and implementation
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.uml.profile.drafter.ui.contentassist;
-
-import org.eclipse.jface.fieldassist.IContentProposal;
-import org.eclipse.uml2.uml.Stereotype;
-
-
-/**
- * Field assist {@link IContentProposal} .
- * This implementation is used to render one proposal of a {@link Stereotype}
- *
- * @author cedric dumoulin
- *
- */
-public class StereotypeContentProvider implements IContentProposal, Comparable<StereotypeContentProvider> {
-
- /**
- * The stereotype that is render.
- */
- private Stereotype stereotype;
-
-
- /**
- * Constructor.
- *
- * @param stereotype
- */
- public StereotypeContentProvider(Stereotype stereotype) {
- this.stereotype = stereotype;
- }
-
- /**
- * @see org.eclipse.jface.fieldassist.IContentProposal#getContent()
- *
- * @return
- */
- public String getContent() {
- return stereotype.getName();
- }
-
- /**
- * @see org.eclipse.jface.fieldassist.IContentProposal#getCursorPosition()
- *
- * @return
- */
- public int getCursorPosition() {
- return getLabel().length();
- }
-
- /**
- * @see org.eclipse.jface.fieldassist.IContentProposal#getLabel()
- *
- * @return
- */
- public String getLabel() {
- return stereotype.getName();
- }
-
- /**
- * @see org.eclipse.jface.fieldassist.IContentProposal#getDescription()
- *
- * @return
- */
- public String getDescription() {
- // TODO Auto-generated method stub
- return stereotype.getKeyword();
- }
-
- public int compareTo(StereotypeContentProvider o) {
- return this.getLabel().compareTo(o.getLabel());
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2014 Cedric Dumoulin.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Initial API and implementation
+ * Nicolas FAUVERGUE (ALL4TEC) nicolas.fauvergue@all4tec.net - Initial API and implementation
+ *
+ *****************************************************************************/
+
+package org.eclipse.papyrus.uml.profile.drafter.ui.contentassist;
+
+import org.eclipse.jface.fieldassist.IContentProposal;
+import org.eclipse.papyrus.uml.internationalization.utils.utils.UMLLabelInternationalization;
+import org.eclipse.uml2.uml.Stereotype;
+
+
+/**
+ * Field assist {@link IContentProposal} .
+ * This implementation is used to render one proposal of a {@link Stereotype}
+ *
+ * @author cedric dumoulin
+ *
+ */
+public class StereotypeContentProvider implements IContentProposal, Comparable<StereotypeContentProvider> {
+
+ /**
+ * The stereotype that is render.
+ */
+ private Stereotype stereotype;
+
+
+ /**
+ * Constructor.
+ *
+ * @param stereotype
+ */
+ public StereotypeContentProvider(Stereotype stereotype) {
+ this.stereotype = stereotype;
+ }
+
+ /**
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getContent()
+ *
+ * @return
+ */
+ public String getContent() {
+ return UMLLabelInternationalization.getInstance().getKeyword(stereotype);
+ }
+
+ /**
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getCursorPosition()
+ *
+ * @return
+ */
+ public int getCursorPosition() {
+ return getLabel().length();
+ }
+
+ /**
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getLabel()
+ *
+ * @return
+ */
+ public String getLabel() {
+ return UMLLabelInternationalization.getInstance().getKeyword(stereotype);
+ }
+
+ /**
+ * @see org.eclipse.jface.fieldassist.IContentProposal#getDescription()
+ *
+ * @return
+ */
+ public String getDescription() {
+ // TODO Auto-generated method stub
+ return stereotype.getKeyword();
+ }
+
+ public int compareTo(StereotypeContentProvider o) {
+ return this.getLabel().compareTo(o.getLabel());
+ }
+
+}

Back to the top