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 39883 - New from templates menu could be webmodule specific
Summary: New from templates menu could be webmodule specific
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC All
: P4 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 14:01 UTC by Marek Fukala
Modified: 2006-06-04 23:58 UTC (History)
0 users

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 Marek Fukala 2004-02-10 14:01:57 UTC
When an user is working on a webmodule project the create from template action is used qite often. So it would be nice to have the new from template menu 'webmodule specific'. Now the user have to invoke the popup menu and choose 'All Templates' then 'JSPs & Servlets' (and perhabs JSPs) to choose the desired object type. In my opinion it could be very helpful if the basic objects like servlet and JSP are present directly in the popup menu (like Java class) by default.

Another feature which seems to be to be handy is expanded JSPs & Servlets folder by default when user is trying to create an object in a webmodule.

It's quite clear that implementing this features can cause some UI or usability problems, so take this issues as a topic for discussion.
Comment 1 Ana.von Klopp 2004-02-10 17:09:17 UTC
Hi Mark, 

I agree it's hard to use the templates (the fact that the four last 
template types are listed on the menu doesn't help a lot - it seems 
that for web apps you use a lot more file types than that!). Perhaps 
that number is configurable though. 

It seems like as soon as you start using the wizards a lot, you get 
frustrated :) I filed http://www.netbeans.org/issues/show_bug.cgi?
id=39839 in an attempt to avoid having to scroll down the tree pane on 
the main wizard panel also. 

I assume that something like this could be part of the web project 
representation. 
Comment 2 Marek Fukala 2004-02-10 21:01:58 UTC
Hi Ana,
It's an interesting idea to have the groups of tempates in form of tabs - I like it! :-). Anyway the some what I described applies for this approach. When the user uses popup menu on a node which resides underneeth a webmodule (classes, documents root or the WEB-INF filder) the group of templates would be selected - in your case it would mean that the tab with webapps templates would be selected.

Ana, I have been using the wizards for quite a long time, and I have never been frustrated for in my opinion they are cool (especially the your one ;-) ). I just want to make it little better. Not because of me - I am a kind developer who do not uses all of the customizers and supports so much, and like to do the nasty bussiness directly :-). 

You mentioned the last used templates - they are very usefull, but I was thinking about a special part of the popup (maybe the place between 'All Templates' and the last used (where is for example the Java class DO template) and the variable part. So it would like this (when user invokes the menu in a webmodule):

+---------------------+
| All Templates       |
+---------------------+
| JSP                 |
| Servlet             |
| <maybe some others> |
+---------------------+
| Java class          |
+ ....                |
+---------------------+
+ <the last used part>|
+---------------------+

great, isn't it? ;-). [joking] - I know - it's rather an issue for the whole netbeans then for the webmpodule. 

Thaks for you comment.

By the way, my name is Marek, not Mark.
Comment 3 Marek Fukala 2004-02-10 21:02:52 UTC
I really do not understand why my comments are not wrapped ????
Comment 4 Ana.von Klopp 2004-02-10 23:00:37 UTC
I apologize for getting your name wrong - must have been typing too 
fast :) 

I maybe exaggerrated a little with the wizards - it's just that you 
have to type new, then scroll down the tree every time. And I use more 
than four types of objects so I'd like it to remember about ten :) 

Anyway, there are a lot of little improvements that could be done, for 
sure... 
Comment 5 Milan Kuchtiak 2004-07-08 15:26:00 UTC
It has been implemented by NB4.0 infrastructure.
New from template is project type specific.
Comment 6 Marek Fukala 2004-07-12 11:02:09 UTC
verified