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 18:17 Go to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6130
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 18:17]

Report message to a moderator

Re: Dynamic Help and Infopops [message #1006112 is a reply to message #1006108] Tue, 29 January 2013 18:53 Go to previous message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6130
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: Fri Jul 25 06:37:53 EDT 2014

Powered by FUDForum. Page generated in 0.02258 seconds