Skip to main content



      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
Eclipse UserFriend
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] by Moderator

Re: Dynamic Help and Infopops [message #1006112 is a reply to message #1006108] Tue, 29 January 2013 18:53 Go to previous message
Eclipse UserFriend
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:Memory leak in TrackableComputaionExt
Goto Forum:
  


Current Time: Tue Jul 22 21:01:42 EDT 2025

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

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

Back to the top