Support for Component.getVariation()

9 views
Skip to first unread message

Marthyn Mayerhofer

unread,
May 31, 2013, 1:40:33 PM5/31/13
to wicke...@googlegroups.com
Hi, 

I've recently installed wicketforge in Intellij and our project uses Component.getVariation() very heavily, currently I don't think that wicketforge supports variations and only works for pages which have a direct mapping from java class to markup like:

WicketPanel.java
WicketPanel.html

would it be possible to enhance wicketforge to support variations of markup pages like:

WicketPanel.java
WicketPanel_variation1.html
WicketPanel_variation2.html

so when I use the shortcut SHIFT+ALT+W it would show both variations and I could select the one I want to jump to? 

Thanks, 
Marthyn

Minas Manthos

unread,
May 31, 2013, 2:21:26 PM5/31/13
to wicke...@googlegroups.com
Hi Marthyn

You're right, WicketForge only supports default Markup. Take a look at AltN8 plugin (http://plugins.jetbrains.com/plugin/?id=1475). I think it should fit your needs. To match your file variations just open Settings and add a additional Postfix expression 

Expression: _[\w]+
Defines own group: false

After this you should be able to navigate with ALT&8 to any of your files.

FYI: the 3.0 release of WicketForge will add some support for styles and locales, but only for code completion and inspections (http://code.google.com/p/wicketforge/issues/detail?id=112). Navigation with SHIFT&ALT&W will only navigate between java and base markup. Currently I don't have any plans to change this because AltN8 can do much more (incl navigate to properties, tests etc...)... but any suggestion are welcome.

regards 
Minas.

Marthyn Mayerhofer

unread,
Jun 7, 2013, 2:37:48 AM6/7/13
to wicke...@googlegroups.com
Hi Minas, 

thanks for your response, I will definitely try out the AltN8 plugin, it seems like it will fit our needs perfectly. 

Thanks,
Marthyn 


--
You received this message because you are subscribed to a topic in the Google Groups "WicketForge" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wicketforge/mtkl1IZpeis/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to wicketforge...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages