diff options
author | Maged Elaasar | 2017-02-21 08:19:48 +0000 |
---|---|---|
committer | Florian Noyrit | 2017-03-13 16:19:06 +0000 |
commit | 7a1e61e4203fcf468a2635b80dd94182a95b588b (patch) | |
tree | 804451f2f230c2cb1a4b07815f4ccd2dc1edcf52 /plugins/developer/org.eclipse.papyrus.dev.types | |
parent | cb10068854ce727bc5004e997663ae0a3ae2ffd6 (diff) | |
download | org.eclipse.papyrus-7a1e61e4203fcf468a2635b80dd94182a95b588b.tar.gz org.eclipse.papyrus-7a1e61e4203fcf468a2635b80dd94182a95b588b.tar.xz org.eclipse.papyrus-7a1e61e4203fcf468a2635b80dd94182a95b588b.zip |
Bug 510451 - Reimplement the ISO42010 specification to properly support
architectural contexts and viewpoints
Replaced the viewpoint configuration framework by a new architectural
context/viewpoint framework. This involves defining architecture
contexts and viewpoints in models and contributing them via extension
points or via the preferences. Models reference an architecture context
and a set of viewpoints at creation time, but can be switched later.
Architecture contexts double as client contexts for which
elementtypesetconfigurations can be registered. They also define
viewpoints, which reference representation kinds (diagrams or tables).
This contribution defines three architecture contexts: UML, Profile, and
SysML corresponding to what Papyrus used to call diagram categories.
Change-Id: I203b58d9e97afdffc45c2674683c0281eb8a7c5b
Signed-off-by: Maged Elaasar <melaasar@gmail.com>
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.dev.types')
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF b/plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF index cc3ee8f94d9..aa3527abd1c 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF +++ b/plugins/developer/org.eclipse.papyrus.dev.types/META-INF/MANIFEST.MF @@ -7,7 +7,8 @@ Require-Bundle: org.eclipse.ui;bundle-version="[3.107.0,4.0.0)", org.eclipse.xtend.lib;bundle-version="[2.10.0,3.0.0)", org.eclipse.ui.ide;bundle-version="[3.12.0,4.0.0)", org.eclipse.core.filesystem;bundle-version="[1.6.0,2.0.0)", - org.eclipse.m2m.qvt.oml;bundle-version="[3.6.0,4.0.0)" + org.eclipse.m2m.qvt.oml;bundle-version="[3.6.0,4.0.0)", + org.eclipse.papyrus.infra.architecture;bundle-version="1.0.0" Bundle-Vendor: %providerName Bundle-ActivationPolicy: lazy Bundle-Version: 3.0.0.qualifier diff --git a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/ElementTypeInfo.java b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/ElementTypeInfo.java index 883f8d3c5eb..692f8220f1c 100644 --- a/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/ElementTypeInfo.java +++ b/plugins/developer/org.eclipse.papyrus.dev.types/src/org/eclipse/papyrus/dev/types/handlers/ElementTypeInfo.java @@ -25,7 +25,7 @@ import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.papyrus.infra.core.services.ServiceException; -import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext; +import org.eclipse.papyrus.infra.services.edit.context.TypeContext; import org.eclipse.swt.widgets.Display; import org.eclipse.ui.handlers.HandlerUtil; @@ -52,7 +52,7 @@ public class ElementTypeInfo extends AbstractHandler { EObject adapted = ((IAdaptable) selectedElement).getAdapter(EObject.class); if (adapted != null) { try { - IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching(adapted, TypeContext.getContext()); + IElementType[] types = ElementTypeRegistry.getInstance().getAllTypesMatching(adapted, TypeContext.getContext(adapted)); String result = ""; for (IElementType iElementType : types) { result += iElementType.getId() + "\n"; |