Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Navigator's Item Background Color(How to acces to the navigator BG color)
Navigator's Item Background Color [message #660186] Thu, 17 March 2011 09:35 Go to next message
Alex  is currently offline Alex
Messages: 5
Registered: March 2011
Junior Member
Hello!

I would like to have some "semi" help to create a plugin to change the items background color in a navigator.

I did this once, creating a common navigator and (if my memory is ok) and did some class overriding to access the drawing function.

So why am I asking?

Because I lost the sources and I did this 2 years ago (now, I really want that plugin back, because very useful)

Useful? Well, imagine that you are working on a project, with a framework and a lot of folders and subfolders.

You often switch between files in the different folders but every file is grahpically the same in the navigator.

So, for example, I did colorize the background with red, for the /App folder and light red for the files contained in the /Apps
The same thing in green for the /Templates folder
The same thing in blue for the /Www folder,

and son on!

Now, you kan imagine than if you are scrolling fast, you can immediatly recognize the folder (or file) you are looking for, with this colorized code.


Well, I began yesterday to recode it but I'm stuck to the common navigator. The problem is that it's impossible for me to connect to the debugger Sad

I'm on a mac snow leopard and there is an error message connecting the debugger... So It's pretty hard to find the solution without a debugger

So, If anyone could help me finding this drawing function, I would be really happy

Thank you a lot reading me!
[SOLVED]Re: Navigator's Item Background Color [message #660720 is a reply to message #660186] Mon, 21 March 2011 12:11 Go to previous message
Alex  is currently offline Alex
Messages: 5
Registered: March 2011
Junior Member
Hello, well I find the solution myself but I would like to share it with you, maybe it can help!

For the debugger (MacOSX Leopard), I added a line 127.0.0.1 localhost... this was as simple as it!

For the background color, that's now fine! I finished to code my plug-in and I found a much more easier/cleaner way to do it!

I set a LabelProvider I created to the navigator as a custom labelprovider.
I created that class, that implements IColorProvider, extending NavigatorContentServiceLabelProvider.

Well, that's all Wink Thank you
Previous Topic:creating a plugin project progamatically
Next Topic:Language keys in plugin.xml are not found when plugin is installed
Goto Forum:
  


Current Time: Tue Oct 21 10:27:52 GMT 2014

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

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