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/views | |
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/views')
4 files changed, 4 insertions, 4 deletions
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml index 32386f69d92..0c053790d42 100644 --- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml +++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/plugin.xml @@ -164,7 +164,7 @@ <menuContribution allPopups="false" locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup"> <separator name="newelements" - visible="false"> + visible="true"> </separator> <menu id="org.eclipse.papyrus.views.modelexplorer.popupmenu.createchild" label="New Child"> </menu> diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/DirectEditorEditingSupport.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/DirectEditorEditingSupport.java index dd6ef9f3af7..8c8227a6dc2 100644 --- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/DirectEditorEditingSupport.java +++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/DirectEditorEditingSupport.java @@ -94,7 +94,7 @@ public class DirectEditorEditingSupport extends EditingSupport { } /** - * Obtain direct editor configuration for a semantic element. + * Obtain direct editor configuration for a semantic element * * @param semanticElement * a semantic element diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/dnd/CommonDropAdapterAssistant.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/dnd/CommonDropAdapterAssistant.java index 63d664ef85a..5e62f70e145 100644 --- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/dnd/CommonDropAdapterAssistant.java +++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/dnd/CommonDropAdapterAssistant.java @@ -146,7 +146,7 @@ public class CommonDropAdapterAssistant extends org.eclipse.ui.navigator.CommonD ViewPrototype proto = ViewPrototype.get(view); // check if diagram can exist in new location - if (!proto.isOwnerReassignable() || PolicyChecker.getCurrent().getOwningRuleFor(proto, target) == null) { + if (!proto.isOwnerReassignable() || PolicyChecker.getFor(target).getOwningRuleFor(proto, target) == null) { // stop here with unexecutable command return UnexecutableCommand.INSTANCE; } diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/OpenHandler.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/OpenHandler.java index b5c8ad1b0cc..6b6d0c567b3 100644 --- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/OpenHandler.java +++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/OpenHandler.java @@ -115,7 +115,7 @@ public class OpenHandler extends AbstractPapyrusHandler implements IExecutableEx if (selection instanceof Diagram) { Diagram diagram = (Diagram) selection; ViewPrototype proto = DiagramUtils.getPrototype(diagram); - return (proto != ViewPrototype.UNAVAILABLE_VIEW && proto != ViewPrototype.UNAVAILABLE_DIAGRAM); + return proto != ViewPrototype.UNAVAILABLE_VIEW; } return true; } |