# API changes diff -r 38a29081701c java.project/apichanges.xml --- a/java.project/apichanges.xml Mon Mar 26 09:59:29 2012 +0200 +++ b/java.project/apichanges.xml Mon Mar 26 10:06:12 2012 +0200 @@ -109,6 +109,25 @@ + + + Added + JavaRunner.QUICK_PROFILE, + JavaRunner.QUICK_TEST_PROFILE and + JavaRunner.QUICK_PROFILE_APPLET constants + + + + + + +

+ Integrating profiler into the generic project infrastructure. +

+
+ + +
Added ProjectClassPathModifier.extenderForModifier diff -r 38a29081701c java.project/manifest.mf --- a/java.project/manifest.mf Mon Mar 26 09:59:29 2012 +0200 +++ b/java.project/manifest.mf Mon Mar 26 10:06:12 2012 +0200 @@ -3,7 +3,7 @@ OpenIDE-Module-Layer: org/netbeans/modules/java/project/layer.xml OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/java/project/Bundle.properties OpenIDE-Module-Needs: javax.script.ScriptEngine.freemarker -OpenIDE-Module-Specification-Version: 1.43 +OpenIDE-Module-Specification-Version: 1.44 OpenIDE-Module-Recommends: org.netbeans.spi.java.project.runner.JavaRunnerImplementation AutoUpdate-Show-In-Client: false diff -r 38a29081701c java.project/src/org/netbeans/api/java/project/runner/JavaRunner.java --- a/java.project/src/org/netbeans/api/java/project/runner/JavaRunner.java Mon Mar 26 09:59:29 2012 +0200 +++ b/java.project/src/org/netbeans/api/java/project/runner/JavaRunner.java Mon Mar 26 10:06:12 2012 +0200 @@ -107,7 +107,19 @@ * @since 1.22 */ public static final String QUICK_DEBUG = "debug"; - + + /** + *

"Test" run the given file in the profiling mode. Classfiles produced by the Java infrastructure will be + * executed.

+ * + *

These properties are should be set in the properties, or inferable: {@link #PROP_EXECUTE_CLASSPATH}, + * {@link #PROP_CLASSNAME}, {@link #PROP_PLATFORM_JAVA}, {@link #PROP_WORK_DIR}, {@link #PROP_RUN_JVMARGS} + * and {@link #PROP_APPLICATION_ARGS}.

+ * + * @since 1.44 + */ + public static final String QUICK_PROFILE = "profile"; + /** *

"Test" run the given test. Classfiles produced by the Java infrastructure will be * executed.

@@ -134,6 +146,19 @@ */ public static final String QUICK_TEST_DEBUG = "junit-debug"; + /** + *

"Test" run the given test in the profiling mode. Classfiles produced by the Java infrastructure will be + * executed.

+ * + *

These properties are should be set in the properties, or inferable: {@link #PROP_EXECUTE_CLASSPATH}, + * {@link #PROP_CLASSNAME}, {@link #PROP_PLATFORM_JAVA}, {@link #PROP_WORK_DIR} and {@link #PROP_RUN_JVMARGS}.

+ * + *

application.args property is not supported.

+ * + * @since 1.44 + */ + public static final String QUICK_TEST_PROFILE = "junit-profile"; + /**

"Test" run the given applet. Classfiles produced by the Java infrastructure will be * executed.

* @@ -156,6 +181,17 @@ */ public static final String QUICK_DEBUG_APPLET = "debug-applet"; + /**

"Test" run the given applet in the profiling mode. Classfiles produced by the Java infrastructure will be + * executed.

+ * + *

These properties are should be set in the properties, or inferable: {@link #PROP_EXECUTE_CLASSPATH}, + * {@link #PROP_EXECUTE_FILE}, {@link #PROP_PLATFORM_JAVA}, {@link #PROP_WORK_DIR} and {@link #PROP_RUN_JVMARGS}, + * applet.url.

+ * + * @since 1.44 + */ + public static final String QUICK_PROFILE_APPLET = "profile-applet"; + /** Clean classfiles produced by the Java infrastructure. * * @since 1.22 diff -r 38a29081701c projectapi/apichanges.xml --- a/projectapi/apichanges.xml Mon Mar 26 09:59:29 2012 +0200 +++ b/projectapi/apichanges.xml Mon Mar 26 10:06:12 2012 +0200 @@ -107,7 +107,24 @@ - + + + Profiler actions are an integral part of the project infrastructure - just like the debugger actions + + + + + +

+ In order to be able to fully integrate the profiler with the project infrastructure + it is necessary to add three new constants to + ActionProvider SPI for profiling a project, profiling a single file and + profiling a test for single file. +

+
+ + +
Added ActionProgress diff -r 38a29081701c projectapi/manifest.mf --- a/projectapi/manifest.mf Mon Mar 26 09:59:29 2012 +0200 +++ b/projectapi/manifest.mf Mon Mar 26 10:06:12 2012 +0200 @@ -1,7 +1,7 @@ Manifest-Version: 1.0 OpenIDE-Module: org.netbeans.modules.projectapi/1 OpenIDE-Module-Install: org/netbeans/modules/projectapi/Installer.class -OpenIDE-Module-Specification-Version: 1.43 +OpenIDE-Module-Specification-Version: 1.44 OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/projectapi/Bundle.properties OpenIDE-Module-Layer: org/netbeans/modules/projectapi/layer.xml diff -r 38a29081701c projectapi/src/org/netbeans/spi/project/ActionProvider.java --- a/projectapi/src/org/netbeans/spi/project/ActionProvider.java Mon Mar 26 09:59:29 2012 +0200 +++ b/projectapi/src/org/netbeans/spi/project/ActionProvider.java Mon Mar 26 10:06:12 2012 +0200 @@ -130,6 +130,24 @@ String COMMAND_DEBUG_STEP_INTO = "debug.stepinto"; // NOI18N /** + * Standard command for running the project in profiler + * @since 1.43 + */ + String COMMAND_PROFILE = "profile"; // NOI18N + + /** + * Standard command for running single file in profiler + * @since 1.43 + */ + String COMMAND_PROFILE_SINGLE = "profile.single"; // NOI18N + + /** + * Standard command for running one test in profiler + * @since 1.43 + */ + String COMMAND_PROFILE_TEST_SINGLE = "profile.test.single"; // NOI18N + + /** * Standard command for deleting the project. * * @since 1.6