StringFieldEditor and ToolTip - whats wrong [message #449754] |
Fri, 28 January 2005 20:02 |
Eclipse User |
|
|
|
Originally posted by: ekkehardREMOVE_NO_SPAM.gentz-software.de
hi,
I'm developing a FieldEditorPreferencePage with some different
FieldEditors - all works great using a ScopedPreferenceStore.
now I wanted to add tooltips, but it doesn't work.
this runs:
protected void createFieldEditors() {
{
final StringFieldEditor meinTextStringFieldEditor = new
StringFieldEditor(PreferenceConstants.P_TEXT, "MeinTextLabel",
getFieldEditorParent());
}
}
and this causes an error:
Could not Accept Changes
"The currently displayed page contains invalid values"
hitting OK shows the page but without the default value from
PreferenceStore, without the ToolTip and without the buttons
"Accept" and "Get Defaults".
here's the code:
protected void createFieldEditors() {
{
final StringFieldEditor meinTextStringFieldEditor = new
StringFieldEditor(PreferenceConstants.P_TEXT, "MeinTextLabel",
getFieldEditorParent());
final Text meinText =
meinTextStringFieldEditor.getTextControl(getFieldEditorParen t());
meinText.setToolTipText("mein Tip");
addField(meinTextStringFieldEditor);
}
}
whats wrong with this code ?
thanks for help
ekkehard
(BTW: eclipse 3.1.M4)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03196 seconds