Commit 73fd63dd authored by Johannes Eder's avatar Johannes Eder
Browse files

removed unnecessary conncetion to tutorial service

parent 78878dd5
......@@ -15,7 +15,6 @@
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.kernel.ui.internal.views;
import static org.eclipse.ui.PlatformUI.getWorkbench;
import static org.fortiss.tooling.kernel.utils.EcoreUtils.filterOutInstanceOf;
import static org.fortiss.tooling.kernel.utils.KernelModelElementUtils.getParentElement;
......@@ -40,15 +39,11 @@ import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.dialogs.FilteredTree;
import org.eclipse.ui.dialogs.PatternFilter;
import org.eclipse.ui.part.ViewPart;
import org.fortiss.tooling.kernel.extension.ITutorialProvider;
import org.fortiss.tooling.kernel.extension.data.LibraryPrototype;
import org.fortiss.tooling.kernel.extension.data.Prototype;
import org.fortiss.tooling.kernel.extension.data.PrototypeCategory;
import org.fortiss.tooling.kernel.extension.data.TutorialAtomicStep;
import org.fortiss.tooling.kernel.model.ILibraryElement;
import org.fortiss.tooling.kernel.service.IPrototypeService;
import org.fortiss.tooling.kernel.service.ITutorialService;
import org.fortiss.tooling.kernel.service.listener.ITutorialServiceListener;
import org.fortiss.tooling.kernel.ui.extension.IModelElementHandler;
import org.fortiss.tooling.kernel.ui.extension.base.EditorBase;
import org.fortiss.tooling.kernel.ui.internal.editor.ExtendableMultiPageEditor;
......@@ -61,7 +56,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author eder
*/
public class LibraryView extends ViewPart implements ITutorialServiceListener {
public class LibraryView extends ViewPart {
/** The viewer. */
private TreeViewer viewer;
......@@ -112,15 +107,6 @@ public class LibraryView extends ViewPart implements ITutorialServiceListener {
getViewSite().setSelectionProvider(viewer);
getSite().getWorkbenchWindow().getPartService().addPartListener(editorActivationListener);
ITutorialService.getInstance().addTutorialServiceListener(this);
}
/** Switches to the active workbench editor part. */
private void switchWorkbenchEditor() {
IEditorPart part =
getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
switchWorkbenchEditor(part);
}
/** Switches to the given workbench editor part. */
......@@ -278,22 +264,4 @@ public class LibraryView extends ViewPart implements ITutorialServiceListener {
switchWorkbenchEditor(part);
}
}
/** {@inheritDoc} */
@Override
public void tutorialStarted(ITutorialProvider provider) {
// nothing to do
}
/** {@inheritDoc} */
@Override
public void tutorialStepChanged(TutorialAtomicStep step) {
switchWorkbenchEditor();
}
/** {@inheritDoc} */
@Override
public void tutorialStopped(ITutorialProvider provider) {
// nothing to do
}
}
Markdown is supported
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