Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Dynamic Help and Infopops
Dynamic Help and Infopops [message #1006108] Tue, 29 January 2013 23:17 Go to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi,

i try to port some stuff from Eclipse 3.x to 4.2

I have a TextEditor and implemented IAdaptable to
provide context help.

this is basically working. but
the preference to decide weather to show the help
in the dynamic help view or an infopop is ignored
and the help is always shown in the dynamic help view.
here is my code

@Override
	public Object getAdapter(Class adapter) {
		if (IContextProvider.class.equals(adapter)) {
			return new IContextProvider() {
				
				@Override
				public String getSearchExpression(Object target) {
					// TODO Auto-generated method stub
					return null;
				}
				
				@Override
				public int getContextChangeMask() {
					return IContextProvider.SELECTION;
				}
				
				@Override
				public IContext getContext(Object target) {
					IContext context = HelpSystem.getContext("org.xtext.example.mydsl.ui.moepp");
					return context;
				}
			};
		}
		return super.getAdapter(adapter);
	}


has anyone an idea what could be the reason for this?

Thanks,
Christian

[Updated on: Tue, 29 January 2013 23:17]

Report message to a moderator

Re: Dynamic Help and Infopops [message #1006112 is a reply to message #1006108] Tue, 29 January 2013 23:53 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hmmm just saw it doesnt work with 3.7 either. is this a general mac problem?
Previous Topic:Kepler's Java 8 status
Next Topic:Part specific toolbar buttons
Goto Forum:
  


Current Time: Mon Dec 22 06:26:38 GMT 2014

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

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