[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1433) Tag libraries tree node on Web Projects view shouldn't use only file name to render taglibrary node text label

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Wed Feb 27 12:04:42 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1433?page=comments#action_12400735 ] 
            
Viacheslav Kabanovich commented on JBIDE-1433:
----------------------------------------------

Extension point added that allows to set rules for computing object label in Web Projects view and tree selectors (but not in XML Editor - I think that might be a redundancy). Example for TLD file: 
   <extension
         point="org.jboss.tools.common.model.ui.labelDecorator">
      <labelDecorator
            entities="FileTLD_PRO,FileTLD_1_2,FileTLD_2_0,FileTLD_2_1"
            name="File TLD"
            partition="Tag Libraries"
            variables="shortname,uri,display-name"
            defaultValue="{name} [{shortname}]"
            >
      </labelDecorator>
   </extension>
"entities" - list of XModel entities to which object can be resolved;
"name" - display name of the decorator to be shown in preference page;
"partition" - preference page will be able to show all decorators in tree to make easier their search; 
"variables" - list of object attributes that can be used to modify its standard representation;
"defaultValue" - rules for computing object label if preference for this decorator is not set, rules language is borrowed from CVS decorators; {name} stands for standard representation. 

Preference page will contain
1) Tree selector for decorators;
2) Input Text field for preferred rules of selected decorator;
3) Button "Add variable..." to insert selected variable into the text field.



> Tag libraries tree node on Web Projects view shouldn't use only file name to render taglibrary node text label
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-1433
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1433
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>    Affects Versions: 2.0.0.GA
>            Reporter: Denis Golovin
>         Assigned To: Viacheslav Kabanovich
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: several taglib.tld files in tree.jpg, tld import on JBoss Palette.jpg
>
>
> Some way TLD attributes short-name, display-name, uri or display-name should be used in label provider. Settings could be provided for for taglib label provider as well. It can use predefined variables to allow user control how tag library nodes presented in tree or the decorating as CVS plugin does for resources.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list