Package org.apache.tools.ant.gui.acs

Examples of org.apache.tools.ant.gui.acs.ACSProjectElement


     * Create a new, unpopulated project.
     *
     * @return Unpopulated project.
     */
    public ACSProjectElement createNew() {
        ACSProjectElement retval = ACSFactory.getInstance().createProject();
        _projects.add(retval);
        return retval;
    }
View Full Code Here


   *
   * @param context Application context.
   */
    public SaveCmd(AppContext context) {
        super(context);
        ACSProjectElement project =
            getContext().getSelectionManager().getSelectedProject();
        if(project != null) {
            setLocation(project.getLocation());
        }
    }
View Full Code Here

    /**
     * Create a new project and make it active.
     *
     */
    public void run() {
        ACSProjectElement project =
            getContext().getProjectManager().createNew();
        project.setName(getContext().getResources().
                        getString(getClass(), "defName") + " " + _count++);
        getContext().getEventBus().postEvent(
            new NewProjectEvent(getContext(), project));
       
    }
View Full Code Here

    /**
     * Fills a List with all sister-targets of a single target
     * @return filled or empty List
     */
    private ArrayList getCoTargets (ACSTargetElement aTarget) {
        ACSProjectElement parentProject = null;
        // Caution is the mother of wisdom ;-)
        if (aTarget.getParentNode() instanceof ACSProjectElement)
            parentProject = (ACSProjectElement) aTarget.getParentNode();
        else throw new IllegalArgumentException("Target not part of Project");
       
        DOMNodeList allNodes = parentProject.getChildNodes();
        ArrayList retVal = new ArrayList();
        int length = allNodes.getLength();
        for (int i = 0; i < length; i++) {
            DOMNode node = allNodes.item(i);
            if (node instanceof ACSTargetElement) {
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.gui.acs.ACSProjectElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.