This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 210850 - [72cat] Profile file action for Maven projects should be conditionally enabled
Summary: [72cat] Profile file action for Maven projects should be conditionally enabled
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 7.2
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks: 203519
  Show dependency tree
 
Reported: 2012-04-07 07:31 UTC by crazyjavahacking
Modified: 2012-04-14 09:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crazyjavahacking 2012-04-07 07:31:38 UTC
The newly added "Profile File" action should be conditionally enabled for 2 reasons:

1.) the "Run File" and "Debug File" are and then it looks weird
2.) but more importantly, currently I can execute the action on classes without main methods, which will produce an error in console output.

So make the "Profile File" action conditionally enabled in exactly the same way as "Run File" and "Debug File" (only on classes with main(String[]) method)
Comment 1 crazyjavahacking 2012-04-07 07:34:01 UTC
JDK 7u3, NetBeans Dev 201204050400
Comment 2 crazyjavahacking 2012-04-07 07:46:23 UTC
Well, this is true just for Maven projects and not for Java SE, where all mentioned actions are enabled
Comment 3 J Bachorik 2012-04-11 10:53:16 UTC
fixed http://hg.netbeans.org/profiler-main/rev/c1065ceeea68
Comment 4 Quality Engineering 2012-04-14 09:45:58 UTC
Integrated into 'main-golden', will be available in build *201204140400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c1065ceeea68
User: Jaroslav Bachorik <yardus@netbeans.org>
Log: #210850,#210854: Fixing profiling single file actions in maven projects