Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordwagelaar2014-08-28 15:52:20 -0400
committerdwagelaar2014-08-28 15:52:20 -0400
commitbe2fdd5f5f556c974958a906d65fd0ab63205ec3 (patch)
tree0945c42849c4d564bfee462cfd9ea499296d2a61 /plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse
parent73ecccffb6cffe5b61d68b3eabdb86e70befdf16 (diff)
downloadorg.eclipse.atl-be2fdd5f5f556c974958a906d65fd0ab63205ec3.tar.gz
org.eclipse.atl-be2fdd5f5f556c974958a906d65fd0ab63205ec3.tar.xz
org.eclipse.atl-be2fdd5f5f556c974958a906d65fd0ab63205ec3.zip
Improved icons and small fix for EMFTVMUtil.toPrettyString().
Diffstat (limited to 'plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse')
-rw-r--r--plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java
index 692600e4..d7a9164e 100644
--- a/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java
+++ b/plugins/org.eclipse.m2m.atl.emftvm/src/org/eclipse/m2m/atl/emftvm/util/EMFTVMUtil.java
@@ -324,16 +324,16 @@ public final class EMFTVMUtil {
* @return the string representation of <code>object</code>.
*/
public static String toPrettyString(final Object object, final ExecEnv env) {
- if (object instanceof EClass) {
+ if (object instanceof EClassifier) {
final StringBuffer sb = new StringBuffer();
if (env != null) {
- final Model model = env.getModelOf((EClass) object);
+ final Model model = env.getModelOf((EClassifier) object);
if (model != null) {
sb.append(env.getModelID(model));
sb.append('!');
}
}
- sb.append(((EClass) object).getName());
+ sb.append(((EClassifier) object).getName());
return sb.toString();
} else if (object instanceof EObject) { // EObjects have a notoriously bad toString()
final StringBuffer buf = new StringBuffer();

Back to the top