| [JFace] How to use field assist [message #302833] |
Sat, 29 April 2006 21:53  |
Eclipse User |
|
|
|
Hello
It's been asked before on this newsgroup, but there has never been an
answer.
Is there a short tutorial, WIKI page or simple code snippet on how to
use the JFace field assist (org.eclipse.jface.fieldassist) API? I have a
dialog containing a few Text controls and would like to show the user
which fields are mandatory and where the input was not valid.
Thanks in advance for any help or pointer on that.
Christian
|
|
|
| Re: [JFace] How to use field assist [message #302911 is a reply to message #302833] |
Tue, 02 May 2006 13:23   |
Eclipse User |
|
|
|
This is a multipart message in MIME format.
--=_alternative 005F87F688257162_=
Content-Type: text/plain; charset="US-ASCII"
Hi, Christian.
I've just answered the older message, but am repeating the answer here
just in case...
There is a field assist example included in the SDK examples build. You
can download the SDK examples and install into your host Eclipse, or you
can check out the plug-in org.eclipse.ui.examples.fieldassist and run it
from within Eclipse by launching another Eclipse.
The example includes a very simple dialog, and preference pages which let
you try different configurations of content assist. After installing the
example, look for FieldAssist in the menu bar and choose "Open Field
Assist Dialog". The preference pages are "Field Assist Example
Preferences" and its sub-page, "Content Assist Preferences."
The example itself is documented in the Examples Guide (Help->Help
Contents->Platform Plug-in Developer Guide->Examples
Guide->Workbench->Field Assist Example).
Documentation for field assist itself is not yet available..I'm working on
that for RC3/RC4...
susan
--=_alternative 005F87F688257162_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Hi, Christian.</font>
<br><font size=2 face="sans-serif">I've just answered the older message,
but am repeating the answer here just in case...</font>
<br>
<br><font size=2 face="sans-serif">There is a field assist example included
in the SDK examples build. You can download the SDK examples and
install into your host Eclipse, or you can check out the plug-in org.eclipse.ui.examples.fieldassist
and run it from within Eclipse by launching another Eclipse.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
The example includes a very simple dialog, and preference pages which let
you try different configurations of content assist. After installing
the example, look for FieldAssist in the menu bar and choose "Open
Field Assist Dialog". The preference pages are "Field Assist
Example Preferences" and its sub-page, "Content Assist Preferences."
</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
The example itself is documented in the Examples Guide (Help->Help Contents->Platform
Plug-in Developer Guide->Examples Guide->Workbench->Field Assist
Example). </font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
Documentation for field assist itself is not yet available..I'm working
on that for RC3/RC4...</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
susan</font><font size=3> </font>
--=_alternative 005F87F688257162_=--
|
|
|
| Re: [JFace] How to use field assist [message #302912 is a reply to message #302833] |
Tue, 02 May 2006 13:29   |
Eclipse User |
|
|
|
This is a multipart message in MIME format.
--=_alternative 00600E9688257162_=
Content-Type: text/plain; charset="US-ASCII"
You mention showing mandatory fields, so here is some more specific info:
- the JFace field assist support allows for generic decorations around a
field, and includes a decoration registry (FieldDecorationRegistry) which
allows you to retrieve the image for a required field.
- the class FieldAssistColors lets you query the color for required fields
- the SDK itself does not yet use the decorator, and uses the color only
in places. There was much discussion about what kind of required field
emphasis should be used, and we could not come to an agreement in time for
3.2. If you are interested in the discussion and history, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=120238
susan
--=_alternative 00600E9688257162_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">You mention showing mandatory fields,
so here is some more specific info:</font>
<br>
<br><font size=2 face="sans-serif">- the JFace field assist support allows
for generic decorations around a field, and includes a decoration registry
(FieldDecorationRegistry) which allows you to retrieve the image for a
required field. </font>
<br><font size=2 face="sans-serif">- the class FieldAssistColors lets you
query the color for required fields</font>
<br><font size=2 face="sans-serif">- the SDK itself does not yet use the
decorator, and uses the color only in places. There was much discussion
about what kind of required field emphasis should be used, and we could
not come to an agreement in time for 3.2. If you are interested in
the discussion and history, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=120238<br>
</font>
<br><font size=2 face="sans-serif">susan</font>
--=_alternative 00600E9688257162_=--
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27515 seconds