Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » dynamic ruler column
dynamic ruler column [message #335698] Wed, 22 April 2009 15:45 Go to next message
Stella Levin is currently offline Stella LevinFriend
Messages: 89
Registered: July 2009
Member
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 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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 Go to previous message
Stella Levin is currently offline Stella LevinFriend
Messages: 89
Registered: July 2009
Member
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
Previous Topic:Editor in background
Next Topic:Best practice: Working on Eclipse CVS stuff
Goto Forum:
  


Current Time: Sat Apr 27 00:53:28 GMT 2024

Powered by FUDForum. Page generated in 0.03637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top