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
0
votes
1 answer

Scroll bar disappearing when resizing dialog

I have this selection dialog in eclipse that I implement, when I resize this dialog after a certain limit the vertical scrollbar diappears, I want to implement it similarly to how eclipse implements its "open type" dialog when you press…
HiteshJolly
  • 55
  • 1
  • 11
0
votes
1 answer

Automatically refresh JFace element

Where can I place my code which would execute each draw cycle? Example: Let's say you want a timer, or a clock. Then basically you have your Window, and a label. The label shows the time, but you need to refresh it. How do you do it? Another…
Apache
  • 1,060
  • 5
  • 21
  • 38
0
votes
1 answer

How to use org.eclipse.core.runtime.QualifiedName.QualifiedName(String qualifier, String localName) in eclipse RCP

In QualifiedName constructor what is the significance of first argument? I saw there are instances in eclipse code where they are passing qualifer as "" or empty string. What is the correct value for qualifier?
Prasad S Deshpande
  • 1,362
  • 4
  • 15
  • 35
0
votes
1 answer

Why doesn't scroll bar work in jface dialog

I'm trying to add a button, text boxes and a label dynamically whenever I hit the add button. I want to achieve this behavior in 2 more composites but on the same dialog. I'm using a scrolled composite so whenever I hit the add button a new label,…
Juseeth
  • 467
  • 1
  • 6
  • 18
0
votes
0 answers

How can I programmatically expand items in a TreeViewer?

I have a TreeViewer with an ILazyTreeContentProvider. I want to control the expansion of the top-level tree items: Initially they are unexpanded, but when an Action "Expand" is selected, the item should be expanded. In the action.run() I currently…
Martin Schröder
  • 4,176
  • 7
  • 47
  • 81
0
votes
1 answer

TreeViewer with checkbox

I am currently creatin a TreeView where leaf elements should be checkable. I created the sampleTreeView from the eclipse plugin that comes with a predefined Tree structure. public class TreeObject { private String name; private TreeParent…
Ogofo
  • 356
  • 2
  • 6
  • 13
0
votes
1 answer

JFace: TreeViewer with two icons or larger icon

is there a way to assign an icon with the size of 32*16 instead of 16*16 to a treeviewer item? Another way would be to add two icon side by side at an item. Like the CheckboxTreeViewer, which has also two Icons (the checkbox and the item icon) side…
ph09
  • 1,052
  • 2
  • 20
  • 31
0
votes
1 answer

JFace / SWT TextArea

I have come across a stickler of a problem. In the swing environment there is a function that is available TextArea in the AWT Components. However this is not present in either the JFace or the Swing environment. has anybody come across a solution?…
K Spriggs
  • 323
  • 3
  • 4
  • 13
0
votes
1 answer

JFace: how to add multiple selection to a cell in a TableViewer

This question is about how I could add a multi-selection ComboBoxCellEditor, or a multiple BooleanCellEditor to a cell in a TableViewer. The main aim is to have a multi selection in a cell. I am using the snippets at…
J A
  • 1
  • 3
0
votes
0 answers

Mouse Hover event in ComboViewer

Can we use ComboViewer to listen mouse hover event? I want to basically display the hover value in tool tip for the list in a combo box Example: I have a combo list with values "a", "b" and "c". When I move the mouse over "b" I need to display "b"…
Wall
  • 88
  • 1
  • 9
0
votes
2 answers

RCP: How to call a class from a command handler

I have a menu which has a label bound to a command. Lets say: plugin.xml public class…
Michael Brenndoerfer
  • 3,483
  • 2
  • 39
  • 50
0
votes
1 answer

how can i jump to a specific line in an editor when click a label in the treeviewer in jface/swt-eclipse plugin development

I'm doing an eclipse plugin project. I have realized a view by TreeViewer, which can read info from text and show them. The treeViewer has several columns and one of which shows the specific line number in a file, just like…
wiskey
  • 1
0
votes
1 answer

Showing small popup when I assigned shortcut key to menu

I have added one menu item and assigned shortcut key Ctr+F for FindDialog in the Eclipse RCP application. But after running and press Ctrl+F it comes a small popup right corner bottom of the application which shows Find and Find And Replace option.…
0
votes
1 answer

Eclipse RCP Adapters

I have a view with a TableViewer of cities. I also have another view with a TreeViewer of persons. Can someone explain or give me a tip on how can I update the TreeViewer with persons from the city selected in TableViewer using adapter factory?
0
votes
1 answer

MultiPageEditor: How to display treeviewer

I'M developing for the first time a MultiPageEditor, where one page should display a checkboxTreeViewer, but I don't get it to work. Also the other Page with an example label don't work. Am I doing something completly wrong? Here is my code so…
ph09
  • 1,052
  • 2
  • 20
  • 31
1 2 3
99
100