On Thu, 2007-06-28 at 15:06 -0500, Richard Frovarp wrote: > Richard Frovarp wrote: > > Andreas Hartmann wrote: > >> Hi Richard, > >> > >> [EMAIL PROTECTED] schrieb: > >> > >>> Author: rfrovarp > >>> Date: Thu Jun 28 06:44:26 2007 > >>> New Revision: 551554 > >>> > >>> URL: http://svn.apache.org/viewvc?view=rev&rev=551554 > >>> Log: > >>> Apply Proxy fixes for TinyMCE and FCKeditor insertAsset > >>> functionality - updates from r551545 > >>> > >> > >> thanks for this! > >> > >> Maybe we can find a way to use the same code for BXE and FCKeditor, > >> maybe by extracting some parts of the file to a separate JX template? > >> > >> -- Andreas > >> > > > > Yeah, this should be done. All three are identical except for three > > lines that contain the editor's name. I think I see how it can be done > > relatively easily. Is there a way to get the usecase module inside of > > a jx template? I could do a substring on usecase.getName. Just looking > > to see if there is a shortcut and I don't see anything grepping > > through the code or looking at the Usecase interface. Or maybe that is > > something to be added to the Usecase interface? > > > > Richard > > I've figured out how to do this. The question is do we want > usecase.getModule? Otherwise what is needed is this: > > usecase.getName().substring(0,usecase.getName().indexOf('.')) > > I can get something committed tomorrow. What do others think?
If I have to choose between usecase.getModule() and the second I vote for the first. Way more comfortable. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
