Skip to content
Snippets Groups Projects
Commit f02b3748 authored by Johannes Eder's avatar Johannes Eder
Browse files

Library view shows on creation of Library element

parent 6d91455c
No related branches found
No related tags found
No related merge requests found
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;
......
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