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 42545 - Manually added templates don't show up in the "New" dialog
Summary: Manually added templates don't show up in the "New" dialog
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2004-04-28 00:54 UTC by Ana.von Klopp
Modified: 2008-12-22 14:44 UTC (History)
2 users (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 Ana.von Klopp 2004-04-28 00:54:01 UTC
This bug blocks a demo intended for an important 
Netbeans presentation. The goal of the demo is to 
show that Netbeans can be extended to handle new 
types of environments, I am specifically trying to 
configure Netbeans to deal with Portlets 
development. 

As part of this, I want to create three new 
templates: one for a basic Portlet (a java file), 
one for the portlet tag library descriptor (a TLD 
file as far as the webapps module is concerned), 
XML), and one for the portlet configuration file 
(an XML file). 

I started by opening the options tab and going to 
the editor settings to the templates section. I 
then opened the JSP & Servlet menu and added a new 
folder (portlet stuff). From that folder I used 
New -> XML file, which I called portlet-xml. I cut 
and paste XML content from another file into this 
file in the text editor. 

Next I added a new text file, which I created with 
the prefix "tld". I cut and paste content from 
another file into this file. 

Using the "Save as template" action (which I 
finally discovered) I then added a Java file into 
the same folder and renamed it portlet in the 
folder. 

When I use the "New" menu, only the Java file 
shows up. I renamed them to see if there was a 
name issue (Config, TLD, Portlet) but it wasn't. 

The files don't show up after I start the IDE 
either, even though they are present according to 
the Options pane.
Comment 1 _ rkubacki 2004-04-28 12:19:59 UTC
Just set properties attribute of newly created templates to true and
they will show in wizard. Or you can copy/paste another templates and
update their content without the need to set the attribute

BTW: How it could be P1?
Comment 2 Ana.von Klopp 2004-04-28 17:55:00 UTC
I filed this as a P1 because I performed an action for which the IDE 
has explicit UI (creating a new template from the list of templates on 
the options pane) which ended up with an unexpected result. 

You are correct that it's not a P1 because there is a workaround (that 
was not obvious to me, so it's fair to assume that it's not going to 
be obvious to all other users either). It's still a non-obvious UI and 
should at least be filed as an enhancement.

Surely, if a user starts from the list of templates and creates a new 
files that appears in the list of templates, they don't expect to have 
to go and separately set a property that makes it appear in the menu? 
Comment 3 Jiri Rechtacek 2008-10-16 14:54:31 UTC
wfm