Bug 262612 - New class wizard unable to finish, no explanation to user
Summary: New class wizard unable to finish, no explanation to user
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 4.22 M2   Edit
Assignee: Vikas Chandra CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
: 271935 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-01-27 13:06 EST by Curtis Windatt CLA
Modified: 2021-11-10 04:50 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2009-01-27 13:06:50 EST
Steps used to reproduce:
1) Open the PDE extension editor on a plugin.xml.
2) Find an extension that specifies a class
3) Enter an invalid class name into the text box such as foo,bar
4) Click the 'class' link.
5) New class wizard opens up with the name foo,bar.  No errors, message says "Create a new Java class.", but the finish is disabled.

If the user interacts with the dialog the error message shows up.

I know the guidelines state that we are not supposed to have a wizard open with an error message, but in this case we are populating the dialog for the user.  They don't expect to have to enter any information.
Comment 1 Dani Megert CLA 2009-01-28 02:48:47 EST
PDE must disable the 'class' link if the name is invalid and/or show that the name is invalid. It should also indicate whether the class exists or not because currently the behavior is not clear (open editor vs. new wizard).
Comment 2 Curtis Windatt CLA 2009-04-14 08:50:58 EDT
*** Bug 271935 has been marked as a duplicate of this bug. ***
Comment 3 Stephan Herrmann CLA 2009-05-15 09:14:29 EDT
*** Bug 271935 has been marked as a duplicate of this bug. ***
Comment 4 Stephan Herrmann CLA 2009-05-15 09:19:13 EDT
Now that bug 271935 is closed as a duplicate of this one,
it should be noted that validity must be checked also
for the package part of the class name
(think of "org.something.package.MyClass" => "package"
 is not a valid identifier).
Comment 5 Eclipse Genie CLA 2018-12-11 03:23:32 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Lars Vogel CLA 2019-09-02 14:56:38 EDT
This bug has been marked as stalebug a while ago without any further interaction.

If this report is still relevant for the current release, please reopen and remove the stalebug whiteboard flag.
Comment 7 Stephan Herrmann CLA 2019-09-03 07:43:08 EDT
Re-testing following the simple steps from comment 0 shows: the bug is still here in HEAD.
Comment 8 Eclipse Genie CLA 2021-08-24 06:21:48 EDT Comment hidden (obsolete)
Comment 9 Eclipse Genie CLA 2021-09-28 14:32:10 EDT
New Gerrit change created: https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/185903
Comment 10 Vikas Chandra CLA 2021-09-28 14:35:46 EDT
(In reply to Stephan Herrmann from comment #7)
> Re-testing following the simple steps from comment 0 shows: the bug is still
> here in HEAD.

It is between policy of not opening a wizard with error message ( instead opening with finish disabled and invalid name) and the usability issue. I think comment#9 improves a usability a lot and the change is all in PDE.

@Stephan, What do you think?
Comment 11 Vikas Chandra CLA 2021-10-01 05:07:57 EDT
(In reply to Eclipse Genie from comment #9)
> New Gerrit change created:
> https://git.eclipse.org/r/c/pde/eclipse.pde.ui/+/185903

If there are no objections to this, I will release this change next week.
Comment 13 Stephan Herrmann CLA 2021-10-05 17:45:00 EDT
(In reply to Vikas Chandra from comment #10)
> (In reply to Stephan Herrmann from comment #7)
> > Re-testing following the simple steps from comment 0 shows: the bug is still
> > here in HEAD.
> 
> It is between policy of not opening a wizard with error message ( instead
> opening with finish disabled and invalid name) and the usability issue. I
> think comment#9 improves a usability a lot and the change is all in PDE.
> 
> @Stephan, What do you think?

Thanks, now it works as I had expected :)

Thanks, Vikas
Comment 14 Vikas Chandra CLA 2021-11-10 04:50:16 EST
verified on
Version: 2021-12 (4.22)
Build id: I20211109-1800