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

annotation view

refs 1841
parent 45142565
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.annotation;
import java.util.List;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.widgets.Composite;
......@@ -24,6 +26,7 @@ import org.eclipse.ui.ISelectionListener;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.part.ViewPart;
import org.fortiss.tooling.base.model.element.IAnnotatedSpecification;
import org.fortiss.tooling.base.model.element.IModelElement;
import org.fortiss.tooling.base.ui.editpart.ElementEditPartBase;
import org.fortiss.tooling.kernel.ui.util.SelectionUtils;
......@@ -64,7 +67,12 @@ public abstract class AnnotationViewPartBase<T extends EObject, V extends IAnnot
currentlySelectedObject = (T)editPart.getModel();
}
// annotatedSpecification = extractAnnotatedSpecification();
if(currentlySelectedObject != null) {
addAll();
annotatedSpecification = extractAnnotatedSpecification();
onUpdateView();
}
}
/** Extracts the {@link IAnnotatedSpecification} from {@link #currentlySelectedObject} */
......@@ -90,4 +98,12 @@ public abstract class AnnotationViewPartBase<T extends EObject, V extends IAnnot
super.dispose();
}
/** Adds specifications to all {@link IModelElement} */
protected abstract void addAll();
/** Returns all annotated specs of Type V */
protected abstract List<V> getAllAnnotatedSpecs();
protected abstract void onUpdateView();
}
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