summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Pielmann2012-08-20 08:36:51 (EDT)
committer Manik Kishore2012-08-20 08:36:51 (EDT)
commit62711f3008a2630b2952d9c18f8a4b7530043848 (patch)
tree93b6975a69e59eb1959d7ba19cbfff6ba63587b1
parent3997bff4be51409b437cb7d65e2134db2aa61e7a (diff)
downloadorg.eclipse.stardust.ide-62711f3008a2630b2952d9c18f8a4b7530043848.zip
org.eclipse.stardust.ide-62711f3008a2630b2952d9c18f8a4b7530043848.tar.gz
org.eclipse.stardust.ide-62711f3008a2630b2952d9c18f8a4b7530043848.tar.bz2
CRNT-25760 Refactor/Clean up MB Facade: Refactor finder-Methods
git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ide@58546 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java20
-rw-r--r--model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java1
2 files changed, 0 insertions, 21 deletions
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
index 366d245..19d465d 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/main/java/org/eclipse/stardust/model/xpdl/builder/utils/MBFacade.java
@@ -991,26 +991,6 @@ public class MBFacade
* @param id
* @return
*/
- public TypeDeclarationType findStructuredDataType(ModelType model, String id)
- {
- for (TypeDeclarationType structType : model.getTypeDeclarations()
- .getTypeDeclaration())
- {
- if (structType.getId().equals(id))
- {
- return structType;
- }
- }
-
- throw new ObjectNotFoundException("Data type " + id + " does not exist.");
- }
-
- /**
- *
- * @param model
- * @param id
- * @return
- */
public DataType findData(ModelType model, String id)
{
for (DataType data : model.getData())
diff --git a/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java b/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java
index ae50683..b6c1ed7 100644
--- a/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java
+++ b/model/org.eclipse.stardust.model.xpdl.builder/src/test/java/org/eclipse/stardust/model/xpdl/builder/CrossModelSupportModelBuilderTest.java
@@ -27,7 +27,6 @@ import org.eclipse.stardust.model.xpdl.carnot.IModelParticipant;
import org.eclipse.stardust.model.xpdl.carnot.LaneSymbol;
import org.eclipse.stardust.model.xpdl.carnot.ModelType;
import org.eclipse.stardust.model.xpdl.carnot.ProcessDefinitionType;
-import org.eclipse.stardust.model.xpdl.carnot.RoleType;
import org.eclipse.stardust.model.xpdl.xpdl2.ExternalPackage;
import org.eclipse.stardust.model.xpdl.xpdl2.ExternalPackages;
import org.eclipse.stardust.model.xpdl.xpdl2.TypeDeclarationType;