# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /Volumes/work/src/netbeans-cm # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: projectuiapi/apichanges.xml --- projectuiapi/apichanges.xml +++ projectuiapi/apichanges.xml @@ -108,6 +108,23 @@ + + + Provide last runing item from BuildExecutionSupport. Listen on changes of it. + + + + + +

+ BuildExecutionSupport makes it so far posible to register a running build/run/debug task. + It would be also usefull to provide the last run item and to be notified about changes of it. +

+
+ + +
+ Allow creating ProjectProblemsProvider.ProjectProblem without a ProjectProblemResolver Index: projectuiapi/src/org/netbeans/spi/project/ui/support/BuildExecutionSupport.java --- projectuiapi/src/org/netbeans/spi/project/ui/support/BuildExecutionSupport.java +++ projectuiapi/src/org/netbeans/spi/project/ui/support/BuildExecutionSupport.java @@ -42,6 +42,8 @@ package org.netbeans.spi.project.ui.support; +import javax.swing.event.ChangeListener; +import org.netbeans.modules.project.uiapi.BuildExecutionSupportImplementation; import org.netbeans.modules.project.uiapi.Utilities; import org.openide.filesystems.FileObject; @@ -79,6 +81,38 @@ } /** + * Returns the last registered finished item. + * + * @return item + * @since 1.75 + */ + public static BuildExecutionSupport.Item getLastFinishedItem() { + return Utilities.getBuildExecutionSupportImplementation().getLastItem(); + } + + /** + * Registers a change listener on BuildExecutionSupport + * + * @param listener + * @since 1.75 + */ + void addChangeListener(ChangeListener listener) { + BuildExecutionSupportImplementation besi = Utilities.getBuildExecutionSupportImplementation(); + besi.addChangeListener(listener); + } + + /** + * Unregisters a change listener on BuildExecutionSupport + * + * @param listener + * @since 1.75 + */ + void removeChangeListener(ChangeListener listener) { + BuildExecutionSupportImplementation besi = Utilities.getBuildExecutionSupportImplementation(); + besi.removeChangeListener(listener); + } + + /** * Wrapper for the build job used by BuildExecutionSupport */ public static interface Item {