| ViewPart State & Customize label [message #333285] | 
Wed, 03 December 2008 07:30   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hello, 
 
I got 2 questions : 
 
 
1. IPartListener notifies different lifecycle events of a listened view  
part. But there is no event representing the "visible state". Why eclipse  
API made this choice ? How to be sure of a visible state of a view part ?  
Because a viewpart could be visible and deactivated. My purpose is to  
register a command and launch it as soon as my viewpart is visible. Any  
point of reference ? 
 
2. I made a custom viewpart, containing a set of treeviewers. I insist on  
fact that my treeviewers don't inherit from navigator. For each of my  
treeviewers i set a ITreeContentProvider & ILabelProvider implementations.  
I would like to change the font or, the color of the font, or the style of  
the font of some label for some specific model element types. I want to  
customized this change once & for all at compile time, don't need to load  
DecoratorManager stuff... Any point of reference ? I read on a post from  
2003, at this time, Eclipse seemed to be really limited on this feature,  
any new features ? Do i really need an engineer degree for changing the  
font of my view ? 
 
Target platform : eclipse 3.3.2. 
 
Thanks in advance, 
 
Dorian.
 |  
 |  
  | 
 | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.03959 seconds