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 24495

Summary: Java centric action available on non Java nodes
Product: platform Reporter: Ann Sunhachawee <asunhachawee>
Component: Window SystemAssignee: Petr Hrebejk <phrebejk>
Status: CLOSED DUPLICATE    
Severity: blocker CC: ttran
Priority: P3 Keywords: ARCH
Version: 3.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description Ann Sunhachawee 2002-06-06 18:56:00 UTC
This issue filed against the NB release that Sun
ONE Studio 4 is built on. 

In the Filesystem tab of the Explorer, a directory
containing only native code (C, C++, Fortran)
still has contextual menus that are Java specific
- Compile, Compile All, Build, Build All. When a
user tries these actions, nothing happens and not
helpfully offers up a misleading message "Nothing
was compiled, everything is up to date. Finished
<directory name>."

If a user expects to build the native files
contained in those directories, this message is
incorrect. 

Suggestions:
-Long term: language agnostic actions should be
available on all directory nodes.
-Short term: disable the actions that do not apply
to files in that directory.
-Short term: if disabling is not possible, an
accurate warning should be in the output window.
Something like "All Java files are up to date.
Nothing was compiled."
Comment 1 George Hernandez 2002-06-21 00:28:14 UTC
I tried to reproduce this on a netbeans dev build dated 4/25/02 and a
forte for java build dated 6/19/02. I could not reproduce this on
either build using jdk 1.4.0. If you can supply the jdk you were using
and the build, I'll try to reproduce it again.
Comment 2 George Hernandez 2002-06-21 01:30:31 UTC
Ooops! Problem is on the directory itself, not on the files in the
directory.
Comment 3 George Hernandez 2002-06-26 00:16:07 UTC
This is not a cpp bug since the module does not provide folder
actions. Netbeans allows a compile on a folder which will compile all
the java files in that folder. Obviously, this won't work on a folder
with native languages but you don't get errors if you try to compile. 

I will pass this to the core module since it is an issue with making
netbeans extensible for other languages.
Comment 4 _ ttran 2002-06-26 07:17:27 UTC
this is an architecture issue which need more thoughts and
discussions, probably related to the (now lacking) projects
infrastructure.

I don't believe we can do anything short-term.  (Your suggestions are
not implementable).
Comment 5 Petr Hrebejk 2002-07-09 09:55:39 UTC
This is a known problem it is duplicate of 20895. Acttions on 
FolderNode are hardcoded.

*** This issue has been marked as a duplicate of 20895 ***
Comment 6 Marian Mirilovic 2003-07-22 10:05:33 UTC
verified, closed it's duplicate.