Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/services/org.eclipse.papyrus.infra.services.decoration/src/org/eclipse/papyrus/infra/services/decoration/util/Decoration.java')
-rw-r--r--plugins/infra/services/org.eclipse.papyrus.infra.services.decoration/src/org/eclipse/papyrus/infra/services/decoration/util/Decoration.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/infra/services/org.eclipse.papyrus.infra.services.decoration/src/org/eclipse/papyrus/infra/services/decoration/util/Decoration.java b/plugins/infra/services/org.eclipse.papyrus.infra.services.decoration/src/org/eclipse/papyrus/infra/services/decoration/util/Decoration.java
index 03394f9be3a..4d4c4014959 100644
--- a/plugins/infra/services/org.eclipse.papyrus.infra.services.decoration/src/org/eclipse/papyrus/infra/services/decoration/util/Decoration.java
+++ b/plugins/infra/services/org.eclipse.papyrus.infra.services.decoration/src/org/eclipse/papyrus/infra/services/decoration/util/Decoration.java
@@ -18,7 +18,6 @@ package org.eclipse.papyrus.infra.services.decoration.util;
import java.util.List;
-import org.apache.commons.lang.WordUtils;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IDecoration;
@@ -121,6 +120,7 @@ public class Decoration implements IPapyrusDecoration {
/**
* @return the type (corresponding to marker type)
*/
+ @Override
public String getType() {
return type;
}
@@ -132,6 +132,7 @@ public class Decoration implements IPapyrusDecoration {
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#getMessage()
*/
+ @Override
public String getMessage() {
return message;
}
@@ -145,6 +146,7 @@ public class Decoration implements IPapyrusDecoration {
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#setMessage(java.lang.String)
*/
+ @Override
public void setMessage(String message) {
this.message = message;
}
@@ -176,6 +178,7 @@ public class Decoration implements IPapyrusDecoration {
* @return the decoration image
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#getDecorationImage()
*/
+ @Override
public ImageDescriptor getDecorationImageForGE() {
return decorationImageForGE;
}
@@ -187,6 +190,7 @@ public class Decoration implements IPapyrusDecoration {
* the new decoration image
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#setDecorationImageForGE(org.eclipse.jface.resource.ImageDescriptor)
*/
+ @Override
public void setDecorationImageForGE(ImageDescriptor decorationImageForGE) {
this.decorationImageForGE = decorationImageForGE;
}
@@ -197,6 +201,7 @@ public class Decoration implements IPapyrusDecoration {
* @return the decoration image
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#getDecorationImage()
*/
+ @Override
public ImageDescriptor getDecorationImageForME() {
return decorationImageForME;
}
@@ -208,6 +213,7 @@ public class Decoration implements IPapyrusDecoration {
* the new decoration image
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#setDecorationImageForGE(org.eclipse.jface.resource.ImageDescriptor)
*/
+ @Override
public void setDecorationImageForME(ImageDescriptor decorationImageForME) {
this.decorationImageForME = decorationImageForME;
}
@@ -219,6 +225,7 @@ public class Decoration implements IPapyrusDecoration {
* @return the position
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#getPosition()
*/
+ @Override
public PreferedPosition getPosition() {
return position;
}
@@ -232,6 +239,7 @@ public class Decoration implements IPapyrusDecoration {
* @see org.eclipse.papyrus.infra.services.decoration.util.IPapyrusDecoration#setPosition(org.eclipse.papyrus.infra.services.decoration.util.Decoration.PreferedPosition)
*/
+ @Override
public void setPosition(PreferedPosition position) {
this.position = position;
}
@@ -240,6 +248,7 @@ public class Decoration implements IPapyrusDecoration {
* @return the decoration position as enumerated by constants in IDecoration from JFace
* (TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, UNDERLAY
*/
+ @Override
public int getPositionForJFace() {
switch (position) {
case NORTH_WEST:
@@ -287,7 +296,7 @@ public class Decoration implements IPapyrusDecoration {
message += "\n"; //$NON-NLS-1$
}
if (decoration.getMessage() != null) {
- message += WordUtils.wrap(decoration.getMessage(), 100, "\n ", true); //$NON-NLS-1$
+ message += "- " + StringUtils.stringWrap(decoration.getMessage(), 100, "\n "); //$NON-NLS-1$ //$NON-NLS-2$
}
}
}
@@ -304,6 +313,7 @@ public class Decoration implements IPapyrusDecoration {
*
* @return the priority
*/
+ @Override
public int getPriority() {
return priority;
}
@@ -314,6 +324,7 @@ public class Decoration implements IPapyrusDecoration {
* @param priority
* the new priority
*/
+ @Override
public void setPriority(int priority) {
this.priority = priority;
}

Back to the top