Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
View | Details | Raw Unified | Return to bug 245350 | Differences between
and this patch

Collapse All | Expand All

(-)projectuiapi/apichanges.xml (+17 lines)
 Lines 108-113    Link Here 
108
108
109
    <changes>
109
    <changes>
110
110
111
        <change id="BuildExecutionSupport.lastItem">
112
            <api name="general"/>
113
            <summary>Provide last runing item from BuildExecutionSupport. Listen on changes of it.</summary>
114
            <version major="1" minor="75"/>
115
            <date day="8" month="7" year="2014"/>
116
            <author login="tstupka"/>
117
            <compatibility addition="yes"/>
118
            <description>
119
                <p>
120
                    <code>BuildExecutionSupport</code> makes it so far posible to register a running build/run/debug task. 
121
                    It would be also usefull to provide the last run item and to be notified about changes of it.
122
                </p>
123
            </description>
124
            <class package="org.netbeans.spi.project.ui.support" name="BuildExecutionSupport"/>
125
            <issue number="245350"/>
126
        </change>
127
                
111
         <change id="ProjectProblemsProvider.unresolvable">
128
         <change id="ProjectProblemsProvider.unresolvable">
112
            <api name="general"/>
129
            <api name="general"/>
113
            <summary>Allow creating ProjectProblemsProvider.ProjectProblem without a ProjectProblemResolver </summary>
130
            <summary>Allow creating ProjectProblemsProvider.ProjectProblem without a ProjectProblemResolver </summary>
(-)projectuiapi/src/org/netbeans/spi/project/ui/support/BuildExecutionSupport.java (+34 lines)
 Lines 42-47    Link Here 
42
42
43
package org.netbeans.spi.project.ui.support;
43
package org.netbeans.spi.project.ui.support;
44
44
45
import javax.swing.event.ChangeListener;
46
import org.netbeans.modules.project.uiapi.BuildExecutionSupportImplementation;
45
import org.netbeans.modules.project.uiapi.Utilities;
47
import org.netbeans.modules.project.uiapi.Utilities;
46
import org.openide.filesystems.FileObject;
48
import org.openide.filesystems.FileObject;
47
49
 Lines 79-84    Link Here 
79
    }
81
    }
80
82
81
    /**
83
    /**
84
     * Returns the last registered finished item. 
85
     * 
86
     * @return item
87
     * @since 1.75
88
     */
89
    public static BuildExecutionSupport.Item getLastFinishedItem() {
90
        return Utilities.getBuildExecutionSupportImplementation().getLastItem();
91
    }
92
  
93
    /**
94
     * Registers a change listener on BuildExecutionSupport
95
     * 
96
     * @param listener 
97
     * @since 1.75
98
     */
99
    void addChangeListener(ChangeListener listener) {
100
        BuildExecutionSupportImplementation besi = Utilities.getBuildExecutionSupportImplementation();
101
        besi.addChangeListener(listener);
102
    }
103
104
    /**
105
     * Unregisters a change listener on BuildExecutionSupport
106
     * 
107
     * @param listener 
108
     * @since 1.75
109
     */
110
    void removeChangeListener(ChangeListener listener) {
111
        BuildExecutionSupportImplementation besi = Utilities.getBuildExecutionSupportImplementation();
112
        besi.removeChangeListener(listener);
113
    }
114
        
115
    /**
82
     * Wrapper for the build job used by <code>BuildExecutionSupport</code>
116
     * Wrapper for the build job used by <code>BuildExecutionSupport</code>
83
     */
117
     */
84
    public static interface Item {
118
    public static interface Item {

Return to bug 245350
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo