Dynamic Help and Infopops [message #1006108] |
Tue, 29 January 2013 23:17 |
|
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
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
[Updated on: Tue, 29 January 2013 23:17] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03232 seconds