[api-changes] [Bug 206126] Web-related templates shown at top for Java SE library projects

  • From:
  • To:
  • Subject: [api-changes] [Bug 206126] Web-related templates shown at top for Java SE library projects
  • Date: Fri, 30 Nov 2012 14:57:12 +0000
  • Auto-submitted: auto-generated

http://netbeans.org/bugzilla/show_bug.cgi?id=206126

--- Comment #19 from Milos Kleint 
< >
 2012-11-30 14:57:12 UTC ---
what about a fairly low level simple API that does something along these 
lines:

1. new interface FileCategorySorter  that would be implemented by project 
types
and reside in project's lookup. Non mandatory, if not present, layer files
ordering applies.
2. public List<DataObject> sort(List<DataObject>); method defined in the
interface. Implementations would take the category dataobjects, modify it 
based
on some arbitrary rules and return the optimal ordering.
3. the sorting code would be used in
TemplateChooserPanelGUI.TemplateChildren.createKeys() only for root 
categories. 
4. Theoretically we can allow filtering as well (remove a DataObject from the
list). Not sure if that's of any use, filtering is to be done by the
RecommendedTemplates API.. personally I would prohibit it.

the algorithms for sorting are undefined, can be just forcing "java" to be
first, or some sort of attribute based marking can be used.. out of scope for
the API proposal.

could be a projectui module friend API or public API in project.uiapi module.

Comments?

-- 
Configure bugmail: http://netbeans.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


[api-changes] [Bug 206126] Web-related templates shown at top for Java SE library projects

mkleint 11/30/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close