svn commit: r17414 - trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/MetaTypesEUMLImpl.java
Thomas Neustupny <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: thn
Date: 2009-10-19 10:02:04-0700
New Revision: 17414
Modified:
trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/MetaTypesEUMLImpl.java
Log:
resolving icon problems by striping "UML" prefix from metaclass names
Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/MetaTypesEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/MetaTypesEUMLImpl.java?view=diff&pathrev=17414&r1=17413&r2=17414
==============================================================================
--- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/MetaTypesEUMLImpl.java (original)
+++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/MetaTypesEUMLImpl.java 2009-10-19 10:02:04-0700
@@ -367,6 +367,12 @@
// and before the next $ or end of class name.
int startName = name.lastIndexOf('.') + 1;
+ // Eclipse UML2 implementation classes often start with "UML"
+ final String prefix = "UML"; //$NON-NLS-1$
+ if (name.substring(startName).startsWith(prefix)) {
+ startName += prefix.length();
+ }
+
// Eclipse UML2 implementation classes end with "Impl"
final String suffix = "Impl"; //$NON-NLS-1$
int endName = name.length();
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2409044
To unsubscribe from this discussion, e-mail: [[email protected]].