dynamic ruler column [message #335698] |
Wed, 22 April 2009 15:45  |
Eclipse User |
|
|
|
Hi, I defines a number of Ruler Columns in my application via plugin.xml.
Generally they are all work exactly the same. The difference is only in
dynamic String parameter, that determines where to take a number, shown in
the ruler. Is there a way to define the parameter via plugin.xml and use
the same class for all the rulers? If no, is there any other way to pass
parameter to ruler column? Thanks
|
|
|
Re: dynamic ruler column [message #335712 is a reply to message #335698] |
Thu, 23 April 2009 06:45   |
Eclipse User |
|
|
|
Stella wrote:
> Hi, I defines a number of Ruler Columns in my application via
> plugin.xml. Generally they are all work exactly the same. The
> difference is only in dynamic String parameter, that determines where
> to take a number, shown in the ruler. Is there a way to define the
> parameter via plugin.xml and use the same class for all the rulers? If
> no, is there any other way to pass parameter to ruler column? Thanks
The easiest is to put all logic into an abstract ruler class and then
use concrete rulers that set the parameter(s). Then use the concrete
classes in the plugin.xml.
Dani
>
>
|
|
|
Re: dynamic ruler column [message #335713 is a reply to message #335712] |
Thu, 23 April 2009 07:04  |
Eclipse User |
|
|
|
Thanks for quick reply. I search a way to give to users to configure
dynamically kind of rulers that are displayed. They may edit xml file, but
they will not write java code, compile and release. All the rulers work
the same, there is only one String parameter defining the difference. Also
list of possible parameters is defined dynamically. Any trick to make such
a configuration working? Thanks, Stella
|
|
|
Powered by
FUDForum. Page generated in 0.03283 seconds