Skip to content
Snippets Groups Projects
Commit 4edb9fdb authored by Sebastian Bergemann's avatar Sebastian Bergemann
Browse files

Add expertViewIsActive condition

Issue-Ref: 4300
Issue-Url: af3#4300



Signed-off-by: default avatarSebastian Bergemann <bergemann@fortiss.org>
parent 933af16b
No related branches found
No related tags found
1 merge request!1984300: Add hiddenInNonExpertView() for editor (bindings)
Pipeline #37257 failed
ActionBarContributor.java 18d9db3744c5381cca8b6823b5f7bc18183a1cfa GREEN
ExtendableMultiPageEditor.java bc40885815c7bf9951754a06c59beb0d1ad5ef3a YELLOW
ExtendableMultiPageEditor.java b350451d237a288e35671ffe1ad9bd1a3656b750 YELLOW
IActionContributingEditor.java 4aa7496d67822de919a8cf0af0ddaafc61bf2919 GREEN
ModelElementEditorInput.java e269eff5d992d375a646e54d048f1f0efc6144dd GREEN
TutorialStepUIEditor.java 9eadc96c302b5131ff4cc3715777718fa06ec7e8 GREEN
......
......@@ -50,6 +50,7 @@ import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.LWFXEFEditorBase;
import org.fortiss.tooling.kernel.ui.listener.ExtendableMultiPageEditorPageChangeListener;
import org.fortiss.tooling.kernel.ui.service.IModelEditorBindingService;
import org.fortiss.tooling.kernel.ui.service.INavigatorService;
import org.fortiss.tooling.kernel.ui.util.PropertiesConstantUtils;
/**
......@@ -189,7 +190,9 @@ public class ExtendableMultiPageEditor extends MultiPageEditorPart
try {
Class<? extends IEditorPart> editorClass =
editorBinding.getEditorClass(editedObject);
if(editorClass != null && !editorBinding.hiddenInNonExpertView()) {
boolean expertViewIsActive = INavigatorService.getInstance().isExpertViewActive();
if(editorClass != null &&
(expertViewIsActive || !editorBinding.hiddenInNonExpertView())) {
Class<? extends EObject> inputType = editedObject.getClass();
IEditorPart editorPart =
constructEditorPart(editorClass, inputType, editorBinding);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment