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 26097 - Can't select $USERDIR/hidden dirs in JFileChosser
Summary: Can't select $USERDIR/hidden dirs in JFileChosser
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2002-07-29 16:44 UTC by dmladek
Modified: 2008-12-22 19:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of Options Window (19.49 KB, image/png)
2003-01-02 13:10 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2002-07-29 16:44:42 UTC
Please, see issue #22961
Comment 1 Jesse Glick 2002-07-29 17:00:11 UTC
Probably dupe of #22961 since ant module uses File prop ed; please
confirm.
Comment 2 dmladek 2002-07-30 07:01:50 UTC
Probably not. Or at least they've tried to persuade me that it is
separate bug.
All bugs with the same summary I discovered on:
  Product Version       = NetBeans IDE 3.4 RC 1
  IDE Versioning        = IDE/1 spec=2.23 impl=200207252340
  Operating System      = Linux version 2.4.18 running on i386
  Java; VM; Vendor      = 1.4.1-rc; Java HotSpot(TM) Client VM
1.4.1-rc-b18; Sun Microsystems Inc.
  Java Home             = /usr/java/j2sdk1.4/sun/jdk1.4.1/jre
  System Locale; Encod. = cs_CZ; ISO-8859-2
  Home Dir; Current Dir = /home.local/danielm;
/DISKS/storage3/forte/NBdev-last/netbeans/bin
  IDE Install; User Dir = /home.local/danielm/NBdev-last;
/home.local/danielm/.netbeans/3.4
====================================================================

Sorry I didn't wrote exact place where to find this problem:
1.  Invoke Main Menu -> Tools -> Options
2. Select node Options | Building | Ant Settings
3. Invoke Property's editor on "Default Executor"
4. Choose "JAR Execution" from the Object's Executor list on
   the left part of "Default Executor" dialog
5. Invoke Property's editor on "External Process"
6. On newly opened "External Process" dialog push "..." button for
   setting up "Process:" property.
7. the typical JFileChooser is bring up (hidden files are hidden:)


that is. Thanks.
Comment 3 _ mihmax 2002-11-21 10:08:51 UTC
David, is anybody working on this, and what's the bug itself about.

Actually I didn't get why is it a "Must have" (blocks # 28441) for 3.4.1

Sincere, Maxym
Comment 4 David Konecny 2002-11-21 10:16:13 UTC
I did not look at it yet. My resource for work on Ant are ZERO so I so
far ignored this one. Should not be difficult (when I look at the
issue 26098 and how it was fixed - it was the same problem).

Ask dmladek@netbeans.org why he thinks this is stopper for 3.4.1.
Comment 5 _ mihmax 2002-11-21 10:37:51 UTC
Daniel, why do you think this is a 3.4.1 showstopper?

And could you please fix it according to issue 26098 ?

Sincere, Maxym
Comment 6 dmladek 2002-11-22 11:35:58 UTC
Hi Maxim, I don't think taht it is actualy showstoper (but CANDIDATE
for fix in 3.4.1:)

And thouse bugs about JFileCHooser are defacto same (but I had to
enter them to individual modules, it was tollen to me)

And why it is bug? because you can't get to your $user_dir setting
by using JFileChooser 'cause it is hidden now and the curren JFC
doesn't support viewing hidden files.
Fix is realy easy, but I'm from QA, so rather owner of the module
should have fix it;-)

Regards
-Daniel
Comment 7 Jaroslav Tulach 2002-12-03 09:53:49 UTC
Hi. This issue is marked as 3.4.1_CANDIDATE. It means that it should be
integrated into release341 one branch. The plan at
http://www.netbeans.org/devhome/docs/releases/34/index.html expected beta1 to be
produced on Dec01. That did not happen due to a lot of outstanding not
integrated candidates like this one. 

Would it be possible to spend few minutes by backporting this fix? Thank you in
advance.
Comment 8 _ mihmax 2002-12-06 05:32:47 UTC
I'm sure this Issue doesn't belong to Ant, because the errorneus
FileChooser is shown when you edit "External Execution" property of
JarExecution.

moving to jarpackager, please take a look.
Comment 9 _ mihmax 2002-12-06 05:52:34 UTC
OK, it also doesn't belong to jarpackager, because "External Process"
property is created by this code:
externalExecutor = new NbProcessDescriptor ( "....", "HINT");

So, the problem is in NbProcessDescriptor, imho.
Comment 10 _ mihmax 2002-12-06 06:04:12 UTC
No, the problem is in the Core:
org.netbeans.beaninfo.editors.NbProcessDescriptorCustomEditor, in
method jButton1ActionPerformed.

Since it's the core, I'm not brave enough to touch it, I don't want to
hack even further:
"JFileChooser chooser = FileEditor.createHackedFileChooser();"

Max

Comment 11 David Konecny 2002-12-06 08:42:42 UTC
Thanx Maxym! I just now read carefully the description of the issue
and you are right it has nothing to do with Ant.
Comment 12 Marian Mirilovic 2002-12-06 17:08:48 UTC
reassigne to Tim, new owner of property editors.
Comment 13 _ mihmax 2002-12-06 19:35:01 UTC
Hi, Tim

Time to do some coding ;-)
I wander, why "Hacked" FileChooser ? If it were a normal JFileChooser,
I could fix this myself, but it's your turn ;-)
Comment 14 _ tboudreau 2002-12-11 02:13:55 UTC
It sounds like the fix for this is known - but what is it?  
Questions:

 - Was this already fixed by the fix for 22961?
 - Was it patched for 3.4.1 but not marked fixed?
 - I see references to JarPackager and Ant modules - is it
   misfiled against core?

I'm going through a big list of issues now, so I haven't dug into
this issue other than to read it and the linked ones and find it
confusing.  If you know what needs to be done here, please save
me the trouble of duplicating the investigation and let me know.
Comment 15 _ mihmax 2002-12-22 10:50:50 UTC
Originally this issue was reported to be in Ant module.

I dug a bit and first thought that it's a jarpackager's bug, but later
I dug a bit more and noticed that the problem is in the core, there's
a line 
"JFileChooser chooser=FileEditor.createHackedFileChooser();"

that creates a JFileChooser, but it doesn't set some flags to see
hidden dirs/files.

Ab' #22961 - I dunno, whether it was fixed at all, because David (as
always) doesn't provide any CVS logs, just writes "fixed in trunk", so
I cannot confirm/disapprove.

Max

Comment 16 dmladek 2002-12-22 19:00:43 UTC
Horrible bug, isn't it, Maxim? :-(((

Originaly I didn't intend to enter any of "JFileChosser"issue against
any of netbeans modules, but agains while ide as it is.
but such bug was mark as invalid 'cause I must say concrete example of
JFileChosser's instance and enter against it a bug... I'm sure there
are still calls of JFCh in ide which calls JFCh which can't display
hidden files/dirs...
Comment 17 _ mihmax 2002-12-22 22:06:03 UTC
Yeap, extremely horrible ;-))

And is most horrible - it's _really_ the last 3.4.1_CANDIDATE with
possibly an obvious fix.

2Tim:
see the fix in diff:
http://www.netbeans.org/source/browse/vcscore/src/org/netbeans/modules/vcscore/util/ChooseDirDialog.java.diff?r1=1.2&r2=1.3&f=c

It's really obvious.
Comment 18 _ mihmax 2002-12-22 22:39:24 UTC
Daniel, can you verify the fix?

I commited it to release341 branch, not to dev build (NetBeans 3.4.1
is being built nightly - that will be the next dev build, dated 23th
December).

CVS log/diff:
http://www.netbeans.org/source/browse/core/src/org/netbeans/beaninfo/editors/FileEditor.java.diff?r1=1.19&r2=1.19.66.1

I tested and in works for me (Windows, jdk1.4.1).
Comment 19 dmladek 2002-12-22 22:52:11 UTC
OK Maxim:-)

Tomorrow I'll check it.
(I hope that I could download NB341 build from this URL:
http://www.netbeans.org/devhome/download.html)
Comment 20 _ mihmax 2002-12-23 09:33:26 UTC
Daniel, you may try even today, 22nd 3.4.1 dev build contains the fix.
You're right about the URL - it's
http://www.netbeans.org/devhome/download.html ;-)
Comment 21 dmladek 2003-01-02 13:08:16 UTC
I'm very sorry I didn't verified it althouh I promised:-(
I had not any change to get to appropriate computer with Internet&Java
during my vacations (I've thought I will, but ...)

Anway, in today's NetBeans IDE 3.4.1 Dev - build 200301012341
I can't verify it 'cause I can't find the way how to get to ANT
settings :-(  There is no subnode under Options->Building node.
see attachet pic.
Comment 22 dmladek 2003-01-02 13:10:01 UTC
Created attachment 8416 [details]
Screenshot of Options Window
Comment 23 dmladek 2003-01-02 14:04:02 UTC
Oups:-( I accidentaly downloaded and tested on NetBeans platform
instead of IDE.

so with NB 341 dev
  Product Version       = NetBeans IDE 3.4.1 Dev-build 200301012341
  IDE Versioning        = IDE/1 spec=2.23.1 impl=200301012341
it is OK;-)


Comment 24 _ mihmax 2003-01-02 16:17:37 UTC
Happy new 2003!

Trambling hands ;-?
Comment 25 Quality Engineering 2003-07-01 16:23:04 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.