Class MakeBundle
- java.lang.Object
-
- ca.cgjennings.apps.arkham.project.TaskAction
-
- ca.cgjennings.apps.arkham.project.MakeBundle
-
- All Implemented Interfaces:
IconProvider
public class MakeBundle extends TaskAction
Task action that creates a plug-in bundle from the contents of a plug-in task folder. The bundle is written to the project folder using the name stored in the task'sKEY_BUNDLE_FILE(bundle-file). If this key is not defined, then bundle.seplugin is used as a base.- Since:
- 2.1
- Author:
- Chris Jennings
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKEY_AUTOTOUCHUser setting that controls whether root file IDs are touched automatically during the make.static java.lang.StringKEY_BUNDLE_FILETask setting that stores the name of the file to use for the bundle.
-
Constructor Summary
Constructors Constructor Description MakeBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesTo(Project project, Task task, Member member)Returnstrueif this action can be performed on the specified member of a project, project or a task.java.lang.StringgetDescription()Returns a longer description of the action, suitable for use as a tool tip.java.lang.StringgetLabel()Returns the human-readable name of this action.booleanperform(Project project, Task task, Member member)Perform this action on a member of a project, a project or a task.-
Methods inherited from class ca.cgjennings.apps.arkham.project.TaskAction
appliesToSelection, applyToChildren, getActionName, getIcon, performOnSelection, resolveTarget, toString
-
-
-
-
Field Detail
-
KEY_BUNDLE_FILE
public static final java.lang.String KEY_BUNDLE_FILE
Task setting that stores the name of the file to use for the bundle.- See Also:
- Constant Field Values
-
KEY_AUTOTOUCH
public static final java.lang.String KEY_AUTOTOUCH
User setting that controls whether root file IDs are touched automatically during the make.- See Also:
- Constant Field Values
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
Description copied from class:TaskActionReturns the human-readable name of this action.- Specified by:
getLabelin classTaskAction- Returns:
- the name used to create menu items for this action, localized if possible
-
getDescription
public java.lang.String getDescription()
Description copied from class:TaskActionReturns a longer description of the action, suitable for use as a tool tip.- Overrides:
getDescriptionin classTaskAction- Returns:
- a long description of the action, or
null
-
appliesTo
public boolean appliesTo(Project project, Task task, Member member)
Description copied from class:TaskActionReturnstrueif this action can be performed on the specified member of a project, project or a task. If the project itself is the target,taskandmemberwill benull. If a task is the target, thenmemberwill be null. If an error occurs while executing the task, then it is the action's responsibility to inform the user. This method can returnfalseto indicate that if the action is being applied to multiple members, it should stop immediately rather than continue to the next member.- Specified by:
appliesToin classTaskAction- Parameters:
project- the project that is being acted upontask- the task within the project that is being acted upon;nullif acting on a projectmember- the specific member within the task to act upon;nullif this is a project or task
-
perform
public boolean perform(Project project, Task task, Member member)
Description copied from class:TaskActionPerform this action on a member of a project, a project or a task. If the project itself is the target,taskandmemberwill benull. If a task is the target, thenmemberwill be null. If an error occurs while executing the task, then it is the action's responsibility to inform the user. This method can returnfalseto indicate that if the action is being applied to multiple members, it should stop immediately rather than continue to the next member.- Specified by:
performin classTaskAction- Parameters:
project- the project that is being acted upontask- the task within the project that is being acted upon;nullif acting on a projectmember- the specific member within the task to act upon;nullif this is a project or task
-
-