Questions tagged [jface]

Use this tag for questions about JFace which is a Java application framework based on SWT. The goal of JFace is to provide a set of reusable components that make it easier to write a Java-based GUI application.

is a UI toolkit that provides helper classes for developing UI features that can be tedious to implement. operates above the level of a raw widget system. It includes classes for handling common UI programming tasks such as:

Viewers: Handle the drudgery of populating, sorting, filtering, and updating widgets.

Actions and contributions (Deprecated): Introduce semantics for defining user actions and specifying where to make them available.

Image and font registries: Provide common patterns for handling UI resources.

Dialogs and wizards: Define a framework for building complex interactions with the user.

Field assist: Provides classes that help guide the user in choosing appropriate content for fields in dialogs, wizards, or forms.

frees you up to focus on the implementation of your specific plug-in's function, rather than focusing on the underlying widget system or solving problems that are common in almost any UI application.

Eclipse is based upon the user interface toolkit . provides classes and frameworks which simplify common use cases. does not hide the API. Therefore knowledge is still required.

All JFace classes are in packages starting with org.eclipse.jface and are in the org.eclipse.jface plugin.

Useful Links:

1700 questions
25
votes
7 answers

Programmatically Fire a RCP Selection Event

In my Eclipse RCP application I use the Selection Service as described in this nice article. There is a TreeViewer in one view registered as a SelectionProvider: getSite().setSelectionProvider(viewer); Another view is receiving the events from the…
uı6ʎɹnɯ ꞁəıuɐp
  • 3,431
  • 3
  • 40
  • 49
20
votes
4 answers

SWT/JFace or Eclipse RCP?

Which are the reasons to choose the Eclipse Rich Client Platform as the base of my application, instead of just using SWT/JFace?
Giuseppe
  • 347
  • 2
  • 11
15
votes
1 answer

What does JFace add to SWT?

What is the difference betweem the following: TreeViewer & Tree TableViewer & Table TreeViewerColumn & TreeColumn TableViewerColumn & TableColumn When to use viewer & regular widget? PS: It would a great help if you can help me find a good…
Reddy
  • 1,620
  • 6
  • 26
  • 33
14
votes
2 answers

SWT table: auto resize all columns

Qt solution is a single call to resizeColumnsToContent(), in .NET one can use TextRenderer.MeasureText(), JTable could use AUTO_RESIZE_ALL_COLUMNS. In SWT, is there a way to programmaticaly resize columns after populating them? Calling…
MadH
  • 1,498
  • 4
  • 21
  • 29
13
votes
4 answers

Eclipse JFace's Wizards

I need a wizard which second page content depends on the first page's selection. The first page asks the user the "kind" of filter he wants to create and the second one asks the user to create one filter instance of the selected "kind". JFace's…
Manuel Selva
  • 18,554
  • 22
  • 89
  • 134
13
votes
4 answers

Using Eclipse TableViewer, how do I navigate and edit cells with arrow keys?

I am using a TableViewer with a content provider, label provider, a ICellModifier and TextCellEditors for each column. How can I add arrow key navigation and cell editing when the user selects the cell? I would like this to be as natural a behavior…
JeffV
  • 52,985
  • 32
  • 103
  • 124
13
votes
4 answers

SWT/JFace: remove widgets

Group group = new Group(parent, SWT.NONE); StyledText comment = new StyledText(group, SWT.BORDER_DASH); This creates a group with a text area inside. How can I later delete the text (remove it from the screen so that I can replace it with something…
Thilo
  • 257,207
  • 101
  • 511
  • 656
13
votes
2 answers

Non-Modal JFace Dialog?

Simply put: Is there any way to create non-modal JFace dialog? I've tried calling setShellStyle to no avail. If I remember right this isn't a problem in swing - is this a shortcoming of SWT, or am I just misusing the widget? TIA
javamonkey79
  • 17,443
  • 36
  • 114
  • 172
13
votes
6 answers

Looking for a Combo(Viewer) in SWT/JFace which supports autocomplete

I'm looking for a Combo(Viewer) in SWT/JFace which supports autocomplete / type-ahead, i.e. the user can enter a couple of characters and the drop down list should show all matching elements.
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
12
votes
7 answers

How to get JavaDoc for SWT and JFace in Eclipse?

I'm a newbie to Eclipse and can't figure out how to get the JavaDocs for SWT and JFace to show up when I am editing. How do I do this? Thanks!
steve
  • 1,545
  • 4
  • 18
  • 28
12
votes
1 answer

How can I add a hyperlink to a JFace Dialog

How can I make a hyperlink in a JFace Dialog that when clicked opens the link in the default web browser. A full example would be useful. I know there is a org.eclipse.jface.text.hyperlink package but I can't find a suitable example.
Alb
  • 3,601
  • 6
  • 33
  • 38
11
votes
6 answers

Proper way to bind a radio button group using JFace data binding

I was wondering if anyone could explain to me how I could properly bind a group of radio buttons to a boolean variable in the model using JFace data binding. Let me explain the situation first: I've created a class that represents a group of SWT…
Sandman
  • 9,610
  • 8
  • 36
  • 41
11
votes
2 answers

hotkey/shortcut for: "Which plugin is this?"

Please forgive such a simple question, I've been away from RCP for about a year: What shortcut/hot-key combination can I use in Eclipse to discover the plugin that contributed/owns the current view? I remember it bringing up the plugin.xml of the…
Martin Cowie
  • 2,788
  • 7
  • 38
  • 74
11
votes
3 answers

Populating huge table in SWT/JFace RCP application

How would you go about displaying huge amount of rows in SWT table? Huge is something above 20K rows, 20 columns. Don't ask me why I need to show that much data, it's not the point. The point is how to make it work as fast as possible so that end…
Dima
  • 4,068
  • 4
  • 38
  • 47
10
votes
2 answers

Eclipse: OSGI Preferences vs. PreferenceStore

I'm working on an Eclipse plugin (or in fact, a plugin for an Eclipse-based application) which needs some configuration to be entered by the user. From looking at the documentation, there seem to be two preference APIs - one in…
Paŭlo Ebermann
  • 73,284
  • 20
  • 146
  • 210
1
2 3
99 100