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

review => RED

refs 311
parent 93abaf0f
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,11 @@ import org.fortiss.tooling.kernel.ui.service.IContextMenuService;
* {@link IMenuManager} with actions provided by actions factories
* {@link ActionFactory} returned by {@link #getActionFactories()}.
*
* TODO @review This class implements its interface with default values, e.g.
* getMenuSectionID. This should be documented here. See ModelElementHandlerBase
* for example.
* <p>
* TODO @review What is or where is <T> here?
*
* The generic type parameter {@code T} indicated the type of selection
* elements.
......@@ -54,6 +58,7 @@ public abstract class ContextMenuSubMenuContributorBase implements
/** Constructor. */
public ContextMenuSubMenuContributorBase() {
// TODO @review unnecessary contructor
super();
}
......
......@@ -28,9 +28,14 @@ import org.eclipse.jface.resource.ImageDescriptor;
* @version $Rev: 1907 $
* @ConQAT.Rating YELLOW Hash: CD9CF8D6200B156E8C0EE759A512A76E
*/
// TODO @review: this class looks very similar to EObjectActionBase; why do we
// need it?
// TODO @review: what is <T>; document generic parameters in class comment.
public abstract class MenuActionBase<T> extends Action {
/** Factory for the action instances used for this menu */
// TODO @review: why this interface? Why not
// org.eclipse.ui.actions.ActionFactory?
public static interface ActionFactory<T> {
/** Creates and returns an action instance for the given target. */
MenuActionBase<T> createAction(T target);
......@@ -39,6 +44,7 @@ public abstract class MenuActionBase<T> extends Action {
/** The target to be processed. */
protected final T target;
// TODO @review: why these methods? there are constructors.
/** Name of the action. */
protected abstract String getActionName();
......
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