Bug 266825 - [Preferences] [jface] Add a FieldEditor for output only
Summary: [Preferences] [jface] Add a FieldEditor for output only
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 05:13 EST by Zviki Cohen CLA
Modified: 2019-09-06 16:15 EDT (History)
0 users

See Also:


Attachments
OutputTextFieldEditor source code (1.04 KB, patch)
2009-03-03 05:14 EST, Zviki Cohen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zviki Cohen CLA 2009-03-03 05:13:20 EST
The field editors are a great time saver for writing preference panes. However, if one needs to combine some instructional text with the field editors there's no simple way of doing that, AFAICT.

The solution: introduce a field editor for output only. I called it OutputTextFieldEditor. 

From the FieldEditorPreferencePage subclass it may be used in the following manner:

	@Override
	protected void createFieldEditors() {
		addField(new OutputTextFieldEditor("your instructions here...", getFieldEditorParent()));
		...
	}

Source code for OutputTextFieldEditor is attached. Since I don't have a commiter status, I cannot check it in myself.
Comment 1 Zviki Cohen CLA 2009-03-03 05:14:19 EST
Created attachment 127298 [details]
OutputTextFieldEditor source code
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:15:44 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.