[
https://issues.jboss.org/browse/FORGE-2320?page=com.atlassian.jira.plugin...
]
Antonio Goncalves updated FORGE-2320:
-------------------------------------
Description:
{code}
agoncal Any default UICompleter that goes "give me all the classes of the
project" (without filtering) ?
lincolnthree hmm, i dont know if we have that
gastaldi let me check
gastaldi hmm we don't
gastaldi we could have a UICompleterBuilder to ease this
gastaldi something like: UICompleters.allClassesInProject().except(...)
agoncal Would be nice
agoncal Yes, or exclude (and we could play with include/exclude)
gastaldi +1
agoncal UICompleters.allClassesInProject()
agoncal UICompleters.allClassesInProject().exclude(My.class)
agoncal UICompleters.include(My.class)
agoncal But then you could include only a package, exclude a package, annotated classes
(eg. include only Entities)...
agoncal So it could become quite rich actually
gastaldi agreed
gastaldi given to the modular nature of Forge, we need different builders for each addon
gastaldi so we'd have ProjectCompleters.allClassesIn(Project project)
gastaldi ProjectCompleters.allClassesIn(Project project).include().exclude().build()
gastaldi ProjectCompleters.allClasses().exclude(...)
gastaldi JavaEECompleters.allJPAEntities()
gastaldi that would be nice
agoncal Oh yes, we could have several methods like
agoncal And has you say, have one per addon so we could have JavaSECompleters.allEnums()
{code}
was:
{code}
agoncal Any default UICompleter that goes "give me all the classes of the
project" (without filtering) ?
lincolnthree hmm, i dont know if we have that
gastaldi let me check
gastaldi hmm we don't
gastaldi we could have a UICompleterBuilder to ease this
gastaldi something like: UICompleters.allClassesInProject().except(...)
agoncal Would be nice
agoncal Yes, or exclude (and we could play with include/exclude)
gastaldi +1
agoncal UICompleters.allClassesInProject()
agoncal UICompleters.allClassesInProject().exclude(My.class)
agoncal UICompleters.include(My.class)
agoncal But then you could include only a package, exclude a package, annotated classes
(eg. include only Entities)...
agoncal So it could become quite rich actually
gastaldi agreed
{code}
Create a UICompleterBuilder to ease the creation of UICompleter
---------------------------------------------------------------
Key: FORGE-2320
URL:
https://issues.jboss.org/browse/FORGE-2320
Project: Forge
Issue Type: Enhancement
Components: UI - API
Affects Versions: 2.16.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
{code}
agoncal Any default UICompleter that goes "give me all the classes of the
project" (without filtering) ?
lincolnthree hmm, i dont know if we have that
gastaldi let me check
gastaldi hmm we don't
gastaldi we could have a UICompleterBuilder to ease this
gastaldi something like: UICompleters.allClassesInProject().except(...)
agoncal Would be nice
agoncal Yes, or exclude (and we could play with include/exclude)
gastaldi +1
agoncal UICompleters.allClassesInProject()
agoncal UICompleters.allClassesInProject().exclude(My.class)
agoncal UICompleters.include(My.class)
agoncal But then you could include only a package, exclude a package, annotated classes
(eg. include only Entities)...
agoncal So it could become quite rich actually
gastaldi agreed
gastaldi given to the modular nature of Forge, we need different builders for each
addon
gastaldi so we'd have ProjectCompleters.allClassesIn(Project project)
gastaldi ProjectCompleters.allClassesIn(Project project).include().exclude().build()
gastaldi ProjectCompleters.allClasses().exclude(...)
gastaldi JavaEECompleters.allJPAEntities()
gastaldi that would be nice
agoncal Oh yes, we could have several methods like
agoncal And has you say, have one per addon so we could have
JavaSECompleters.allEnums()
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)