Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
af3
kernel
Commits
19fcbcb7
Commit
19fcbcb7
authored
13 years ago
by
David Trachtenherz
Browse files
Options
Downloads
Patches
Plain Diff
refs 451
parent
d257bc4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/base/MenuActionBase.java
+0
-62
0 additions, 62 deletions
...tiss/tooling/kernel/ui/extension/base/MenuActionBase.java
with
0 additions
and
62 deletions
org.fortiss.tooling.kernel.ui/trunk/src/org/fortiss/tooling/kernel/ui/extension/base/MenuActionBase.java
deleted
100644 → 0
+
0
−
62
View file @
d257bc4e
/*--------------------------------------------------------------------------+
$Id: EasyStartMenuBase.java 1907 2011-11-11 14:04:26Z hoelzl $
| |
| Copyright 2011 ForTISS GmbH |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
+--------------------------------------------------------------------------*/
package
org.fortiss.tooling.kernel.ui.extension.base
;
import
org.eclipse.jface.action.Action
;
import
org.eclipse.jface.resource.ImageDescriptor
;
/**
* Base class for menu actions.
*
* @author trachtenherz
* @author $Author: hoelzl $
* @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
);
}
/** 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
();
/** Icon for the action. */
protected
ImageDescriptor
getActionIcon
()
{
return
null
;
}
/** Constructor. */
public
MenuActionBase
(
T
target
)
{
setText
(
getActionName
());
setImageDescriptor
(
getActionIcon
());
this
.
target
=
target
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment