Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » InformationControl setting return to default when focous on Text hover in java
InformationControl setting return to default when focous on Text hover in java [message #1731675] Mon, 09 May 2016 08:15
or shacham is currently offline or shachamFriend
Messages: 7
Registered: December 2015
Junior Member
I making plugin that use the eclipse java editor text hover and write my customize text.
I tried to give the text hover customize design but it return to the default setting when I move the mouse on it (focus).
I think it may accour because of some refresh that the eclipse mase.
this is my code:
    public IInformationControlCreator getHoverControlCreator() {
    		return new IInformationControlCreator() {
    			public IInformationControl createInformationControl(Shell parent) {
    				  ToolBarManager tbm = new ToolBarManager(SWT.FLAT);
    
    				    DefaultInformationControl iControl = new DefaultInformationControl(parent, tbm);
    
    				    IAction action =new MyActionTry();
    				    tbm.add(action);
    				    IAction action2 =new MyActionTry();
    				    tbm.add(action2);
    
    tbm.update(true);
    iControl.setBackgroundColor(new Color(null, 255,0,0));
    
    				    return iControl;
    			}
    			
    		};
    	}


And this is what happend when I run my plugin:
Befor moving the mouse on the texthover(before focus):
http://i.stack.imgur.com/zQvD9.png


and after:
http://i.stack.imgur.com/b0Yra.png

P.S
The "gdfgdf" you can see in the ToolBarManager is the event that I gave him this info in the default constractor.
Previous Topic:Accessing Remote MySQL Server from Windows 7
Next Topic:How do I open Javadoc in a different window?
Goto Forum:
  


Current Time: Fri Apr 26 21:42:58 GMT 2024

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

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

Back to the top