Skip to content
Snippets Groups Projects
Commit 165b21b4 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

RED

refs 311
parent 2797ccee
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,9 @@ import org.fortiss.tooling.kernel.ui.service.IContextMenuService;
/**
* Base class for context menu contributors creating a sub-menu
* {@link IMenuManager} with actions provided by actions factories
* {@link ActionFactory} returned by {@link #getActionFactories()}.
* {@link IMenuManager} with actions provided by actions factories TODO: @review
* this link is wrong => {@link ActionFactory} returned by
* {@link #getActionFactories()}.
*
* The class implements interface methods {@link #getMenuIcon()} and
* {@link #getMenuId()} returning {@code null} by default. Classes providing an
......@@ -46,6 +47,9 @@ import org.fortiss.tooling.kernel.ui.service.IContextMenuService;
* The generic type parameter {@code T} indicated the type of selection
* elements.
*
* @param <T>
* TODO document T here
*
* @author trachtenherz
* @author $Author: hoelzl $
* @version $Rev: 18709 $
......@@ -53,7 +57,8 @@ import org.fortiss.tooling.kernel.ui.service.IContextMenuService;
*/
public abstract class ContextMenuSubMenuContributorBase<T extends EObject>
implements IContextMenuContributor {
// TODO reorder methods: implemented before abstract before default
// implementations
/** The name of the sub-menu */
protected abstract String getMenuName();
......
......@@ -24,7 +24,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
/**
* JFace {@link Action}, which uses an {@link EObject} as target.
*
* @author hoelzlf
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 4C545F6468D6051419AA91C0E3774061
......@@ -72,12 +72,6 @@ public abstract class EObjectActionBase<T extends EObject> extends Action {
}
/** Refreshes the action's target and enabled state. */
// TODO @review DT: should a user take setTarget or refresh for a new
// element?
// Should a constructor take setTarget or refresh? should there be a refresh
// method for the currently set element, i. e. refresh(). Possibility:
// refresh() for current element and refresh(element){setTarget(element);
// refresh()}.
public final void refresh(T element) {
setTarget(element);
if (element == null) {
......
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