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 18842 - Mount JAR: Finish Disabled when Selecting Multiple ZIP/JAR -contains already mounted ZIP/JAR
Summary: Mount JAR: Finish Disabled when Selecting Multiple ZIP/JAR -contains already ...
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P4 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on: 15267
Blocks:
  Show dependency tree
 
Reported: 2001-12-20 02:20 UTC by Sakthivel Gopal
Modified: 2008-12-23 00:26 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sakthivel Gopal 2001-12-20 02:20:38 UTC
I need to mount both weblogic_classes.zip & WebLogicLicense.zip.
I have mounted weblogic_classes.zip.
Next time, i tried mounting weblogic_classes.zip & WebLogicLicense.zip, Finish
gets disabled when I choose weblogic_classes.zip which is already mounted.

When trying to mount a whole bunch of JAR/ZIP's of which few are already
mounted, it would be difficult for user to deselect already mounted ones. It
would be better to enable Finish and when mounting IDE may show a warning
message saying that these are already mounted.
Comment 1 _ ttran 2001-12-20 11:40:44 UTC
The suggestion sounds reasonble to me.  Note there should be only
_one_ informational dialog listing all dirs/jars already mounted
Comment 2 David Strupl 2002-01-04 13:47:22 UTC
Not really clear what should happen. I have couple of questions which
should be discussed preferably on nbui@netbeans.org mailing list.

1. When should Finish be enabled? If you select a file that is not a
correct jar should ok be enabled and warn user after hitting Finish?

2. What to do after such dialog? Mount the correct archives and leave
the wrong ones? Return to the dialog? What if the user selects only
wrong ones?

So I am postponing this to release 3.4 - please add comments here
after you discuss it on the nbui mailing list.
Comment 3 David Simonek 2002-02-06 17:15:00 UTC
Depends on API changes in wizards. See 15267, section #3.
Comment 4 Vitezslav Stejskal 2002-04-08 19:31:19 UTC
I think solution of this issue doesn't depend on issue #15267 as the 
logic could be implemented within the current design. Currently the 
panel has control over the Next, Finish buttons through the isValid() 
function. It's not sufficient for many things, but in this case it 
should be enough.
I would try to answer questions asked by dstrupl:

#1: I don't know exactly what logic is currently implemented in 
isValid() of mount wizard panel, but IMO the original requirement was 
to have the Finish button always enabled -> isValid () { return true; 
}

#2: When Finish is hit and filesystems are actually mounted, it should 
be recognized that there exists already a fs for given jar/zip, 
remember the jar/zip file somewhere and at the end of the process 
display the dialog saying: "Filesystem already exists for following 
archives" + list of remebered jar/zip files.
I suppose that implementing this actually means moving the logic from
isValid () to instantiate ().

#3: see #2, the dialog is meant as a note presented to the user at the 
end of the process, there is nothing user can do except for closing 
it.

Comment 5 mslama 2002-08-05 17:53:44 UTC
Passing to new owner
Comment 6 Jiri Rechtacek 2004-01-06 09:09:47 UTC
No changes planned to 3.6.
Comment 7 Jesse Glick 2004-05-01 03:24:07 UTC
No such UI in D.
Comment 8 Marian Mirilovic 2005-12-20 16:02:45 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. 

Thanks in advance.