Commit f02b3748 authored by Johannes Eder's avatar Johannes Eder
Browse files

Library view shows on creation of Library element

Issue-Ref: 4043
Issue-Url: https://af3-developer.fortiss.org/issues/4043

Signed-off-by: Johannes Eder's avatarJohannes Eder <eder@fortiss.org>
parent 6d91455c
ApplicationCommandHandler.java 72c3dfb65cea1db71dc27c9481d499cad91082e8 GREEN
ApplicationCommandHandler.java 6a52a54b64cd8eae1f7a28b12388a5f46df6a2ec YELLOW
......@@ -38,6 +38,7 @@ import static org.fortiss.tooling.kernel.utils.EcoreUtils.copy;
import java.io.File;
import java.util.List;
import org.conqat.ide.commons.ui.ui.WorkbenchUtils;
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.runtime.IStatus;
......@@ -60,7 +61,7 @@ import org.fortiss.af3.rcp.application.example.SimpleTrafficLightsCodeGeneration
import org.fortiss.af3.rcp.application.utils.ApplicationUtils;
import org.fortiss.tooling.kernel.extension.data.ModelStorageError;
import org.fortiss.tooling.kernel.service.IPersistencyService;
import org.fortiss.tooling.kernel.ui.service.INavigatorService;
import org.fortiss.tooling.kernel.ui.internal.views.library.LibraryViewPart;
/**
* The ApplicationCommandHandler has several nested classes, each for handling a
......@@ -159,7 +160,7 @@ public class ApplicationCommandHandler {
"Error While Saving the Library",
"A library with name " + dlg.getValue() + " already exists");
}
INavigatorService.getInstance().setLibraryViewActive();
WorkbenchUtils.getActiveWorkbenchPage().showView(LibraryViewPart.ID);
} catch(Exception e) {
openError(getActiveWorkbenchWindow().getShell(), "Error", e.getMessage());
return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment