Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StringFieldEditor and ToolTip - whats wrong
StringFieldEditor and ToolTip - whats wrong [message #449754] Fri, 28 January 2005 20:02
Eclipse UserFriend
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)
Previous Topic:Disable links in Browser
Next Topic:Browser widget question
Goto Forum:
  


Current Time: Tue Nov 19 03:12:00 GMT 2019

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

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

Back to the top