summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2014-08-07 04:03:29 (EDT)
committerCamille Letavernier2014-08-08 08:34:37 (EDT)
commit410531846a5da02b10a1654993c5913a5a9756b3 (patch)
treed84b7cbb43353fe497b79e8ad1efb08e044dab11
parent318ccb88fafd599c5e04c7978bd675c8541006a3 (diff)
downloadorg.eclipse.papyrus-410531846a5da02b10a1654993c5913a5a9756b3.zip
org.eclipse.papyrus-410531846a5da02b10a1654993c5913a5a9756b3.tar.gz
org.eclipse.papyrus-410531846a5da02b10a1654993c5913a5a9756b3.tar.bz2
Bug 441315 - [ViewPoint] A configuration with a bad category breaks therefs/changes/59/31159/2
new Model Wizard - UnavailableViewPrototype will return an empty list of categories Change-Id: Ia36a67f420d063a1c9576977c957c0ba8a581252 Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
-rwxr-xr-xplugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src/org/eclipse/papyrus/infra/viewpoints/policy/UnavailableViewPrototype.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src/org/eclipse/papyrus/infra/viewpoints/policy/UnavailableViewPrototype.java b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src/org/eclipse/papyrus/infra/viewpoints/policy/UnavailableViewPrototype.java
index 80a2ac3..5cd38dd 100755
--- a/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src/org/eclipse/papyrus/infra/viewpoints/policy/UnavailableViewPrototype.java
+++ b/plugins/infra/viewpoints/org.eclipse.papyrus.infra.viewpoints.policy/src/org/eclipse/papyrus/infra/viewpoints/policy/UnavailableViewPrototype.java
@@ -13,8 +13,12 @@
*****************************************************************************/
package org.eclipse.papyrus.infra.viewpoints.policy;
+import java.util.Collection;
+import java.util.Collections;
+
import org.eclipse.emf.common.command.Command;
import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.infra.viewpoints.configuration.Category;
/**
@@ -132,4 +136,14 @@ public class UnavailableViewPrototype extends ViewPrototype {
public EObject getRootOf(EObject view) {
return null;
}
+
+ /**
+ * @see org.eclipse.papyrus.infra.viewpoints.policy.ViewPrototype#getCategories()
+ *
+ * @return
+ */
+ @Override
+ public Collection<Category> getCategories() {
+ return Collections.emptyList();
+ }
}