Lines 13-18
Link Here
|
13 |
|
13 |
|
14 |
package org.netbeans.modules.ant.freeform.spi; |
14 |
package org.netbeans.modules.ant.freeform.spi; |
15 |
|
15 |
|
|
|
16 |
import java.util.List; |
17 |
|
16 |
/** |
18 |
/** |
17 |
* Description of the build target to be shown in Target Mappings customizer |
19 |
* Description of the build target to be shown in Target Mappings customizer |
18 |
* panel. |
20 |
* panel. |
Lines 22-39
Link Here
|
22 |
public final class TargetDescriptor { |
24 |
public final class TargetDescriptor { |
23 |
|
25 |
|
24 |
private String actionName; |
26 |
private String actionName; |
25 |
private String defaultTarget; |
27 |
private List defaultTarget; |
26 |
private String actionLabel; |
28 |
private String actionLabel; |
27 |
private String accessibleLabel; |
29 |
private String accessibleLabel; |
28 |
|
30 |
|
29 |
/** |
31 |
/** |
30 |
* Constructor. |
32 |
* Constructor. |
31 |
* @param actionName IDE action name (see {@link org.netbeans.spi.project.ActionProvider}) |
33 |
* @param actionName IDE action name (see {@link org.netbeans.spi.project.ActionProvider}) |
32 |
* @param defaultTarget name of the Ant target to which this IDE action usually maps |
34 |
* @param defaultTargets list of regular expressions to match name of the |
|
|
35 |
* Ant target to which this IDE action usually maps |
33 |
* @param actionLabel localized label of this action. To be shown in UI csutomizer |
36 |
* @param actionLabel localized label of this action. To be shown in UI csutomizer |
34 |
* @param accessibleLabel accessible label. Used togerther with actionLabel |
37 |
* @param accessibleLabel accessible label. Used togerther with actionLabel |
35 |
*/ |
38 |
*/ |
36 |
public TargetDescriptor(String actionName, String defaultTarget, String actionLabel, String accessibleLabel) { |
39 |
public TargetDescriptor(String actionName, List defaultTargets, String actionLabel, String accessibleLabel) { |
37 |
this.actionName = actionName; |
40 |
this.actionName = actionName; |
38 |
this.defaultTarget = defaultTarget; |
41 |
this.defaultTarget = defaultTarget; |
39 |
this.actionLabel = actionLabel; |
42 |
this.actionLabel = actionLabel; |
Lines 48-57
Link Here
|
48 |
} |
51 |
} |
49 |
|
52 |
|
50 |
/** |
53 |
/** |
51 |
* Name of the target in Ant script which usually maps to the IDE action. |
54 |
* List of regular expressions to match name of the target in Ant script |
52 |
* @return cannot be null |
55 |
* which usually maps to the IDE action. List will be processed in the |
|
|
56 |
* given order so it is recommended to list the most specific ones first. |
57 |
* @return cannot be null; can be empty array |
53 |
*/ |
58 |
*/ |
54 |
public String getDefaultTarget() { |
59 |
public List getDefaultTargets() { |
55 |
return defaultTarget; |
60 |
return defaultTarget; |
56 |
} |
61 |
} |
57 |
|
62 |
|