Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [JFace] How to use field assist
[JFace] How to use field assist [message #302833] Sat, 29 April 2006 21:53 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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. &nbsp;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. &nbsp;After installing
the example, look for FieldAssist in the menu bar and choose &quot;Open
Field Assist Dialog&quot;. &nbsp;The preference pages are &quot;Field Assist
Example Preferences&quot; and its sub-page, &quot;Content Assist Preferences.&quot;
&nbsp;</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
The example itself is documented in the Examples Guide (Help-&gt;Help Contents-&gt;Platform
Plug-in Developer Guide-&gt;Examples Guide-&gt;Workbench-&gt;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 Go to previous messageGo to next message
Eclipse UserFriend
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. &nbsp;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. &nbsp;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_=--
Re: [JFace] How to use field assist [message #302944 is a reply to message #302833] Wed, 03 May 2006 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I found this link about jface.fieldAssist:

http://wiki.improve.fr/wiki/moni/articles/jface_field_assist ance

As you can see, it's written in French, but with some code.
Hope this helps.

Fernando
Re: [JFace] How to use field assist [message #303080 is a reply to message #302911] Mon, 08 May 2006 16:01 Go to previous messageGo to next message
Eclipse UserFriend
> 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 itself is documented in the Examples Guide (Help->Help
> Contents->Platform Plug-in Developer Guide->Examples
> Guide->Workbench->Field Assist Example).

Thank you so much Susan for your pointers. I've looked at the example
and it helped me figure out how to get started. A wiki page would be
nice, too.

Christian
Re: [JFace] How to use field assist [message #303081 is a reply to message #302944] Mon, 08 May 2006 16:02 Go to previous message
Eclipse UserFriend
> I found this link about jface.fieldAssist:
>
> http://wiki.improve.fr/wiki/moni/articles/jface_field_assist ance

Thanks Fernando. My French is not very good, but some examples like that
in English would be nice.

Christian
Previous Topic:Problem with keyboard input and external tools
Next Topic:error on start up
Goto Forum:
  


Current Time: Thu Nov 06 02:35:13 EST 2025

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

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

Back to the top