Index: src/org/netbeans/modules/ant/freeform/spi/TargetDescriptor.java =================================================================== RCS file: /cvs/ant/freeform/src/org/netbeans/modules/ant/freeform/spi/TargetDescriptor.java,v retrieving revision 1.2 diff -u -r1.2 TargetDescriptor.java --- src/org/netbeans/modules/ant/freeform/spi/TargetDescriptor.java 7 Dec 2004 13:46:17 -0000 1.2 +++ src/org/netbeans/modules/ant/freeform/spi/TargetDescriptor.java 7 Jan 2005 14:05:34 -0000 @@ -13,6 +13,8 @@ package org.netbeans.modules.ant.freeform.spi; +import java.util.List; + /** * Description of the build target to be shown in Target Mappings customizer * panel. @@ -22,18 +24,19 @@ public final class TargetDescriptor { private String actionName; - private String defaultTarget; + private List defaultTarget; private String actionLabel; private String accessibleLabel; /** * Constructor. * @param actionName IDE action name (see {@link org.netbeans.spi.project.ActionProvider}) - * @param defaultTarget name of the Ant target to which this IDE action usually maps + * @param defaultTargets list of regular expressions to match name of the + * Ant target to which this IDE action usually maps * @param actionLabel localized label of this action. To be shown in UI csutomizer * @param accessibleLabel accessible label. Used togerther with actionLabel */ - public TargetDescriptor(String actionName, String defaultTarget, String actionLabel, String accessibleLabel) { + public TargetDescriptor(String actionName, List defaultTargets, String actionLabel, String accessibleLabel) { this.actionName = actionName; this.defaultTarget = defaultTarget; this.actionLabel = actionLabel; @@ -48,10 +51,12 @@ } /** - * Name of the target in Ant script which usually maps to the IDE action. - * @return cannot be null + * List of regular expressions to match name of the target in Ant script + * which usually maps to the IDE action. List will be processed in the + * given order so it is recommended to list the most specific ones first. + * @return cannot be null; can be empty array */ - public String getDefaultTarget() { + public List getDefaultTargets() { return defaultTarget; }