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 44871 - Last used items not added to popup menu
Summary: Last used items not added to popup menu
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2004-06-15 13:06 UTC by Jaromir Uhrik
Modified: 2006-03-24 10:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2004-06-15 13:06:59 UTC
[200406141800; j2sdk1.4.2_04]
Explorer popup menu New looks like this by default:
------------------
File/Folder...    |
------------------
Java Class...     |
Java Interface... |
JPanel Form...    |
JFrame Form ...   |
------------------
When I create some other type of new object (e.g.
html file) then this item should be added into
this popoup menu like in previous version of NetBeans.
Comment 1 Petr Hrebejk 2004-06-15 15:39:52 UTC
BTW this is implemented and it worked. Don't know why it stoped
working. Will investigate,
Comment 2 Petr Hrebejk 2004-06-16 17:01:40 UTC
Hele, Jirko I looked into it and I've found that this is because you
have changed the way we recognize whether given template is of
recommended type or not. The method OpenProjectsList.isRecommended has
to use the same algorithm. I suggest you move your methods from
TemplateChooserGUI into projects utilities and call them from both places.
It is the same package so there should be no problem.

Thanks 
Comment 3 Jiri Rechtacek 2004-06-18 10:35:22 UTC
fixed,
Checking in src/org/netbeans/modules/project/ui/OpenProjectList.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java,v
 <--  OpenProjectList.java
new revision: 1.16; previous revision: 1.15
done
Checking in
src/org/netbeans/modules/project/ui/TemplateChooserPanelGUI.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/TemplateChooserPanelGUI.java,v
 <--  TemplateChooserPanelGUI.java
new revision: 1.20; previous revision: 1.19
done
Comment 4 Jaromir Uhrik 2004-08-17 10:55:58 UTC
Verified in 200408170540; jdk1.5.0-rc-b63.