Questions tagged [treeviewer]
144 questions
1
vote
1 answer
How can we get the item on which i am doing the drop on a treeviewer
I have created a jface treeviewer and i am adding drag and drop of elements into the treeviewer.So the items should be added on the the subchild of a tree.How can i get the subchildname on which i am dropping a element.
for eg:
tree->
A->
…

Srikanth Badida
- 37
- 6
1
vote
1 answer
CheckboxTreeViewer unchecked my selections after call refresh()
I have filter on my CheckboxTreeViewer and before applying the filter on the treeviewer I checked an item. My filter is working on textbox and using ModifyListener function while writing.
text.addModifyListener(new ModifyListener() {
public void…

cgrgcn
- 361
- 2
- 6
- 24
1
vote
0 answers
Right click menu for jface TreeViewer
I would like to show a simple right click menu for a TreeViewer. I found some examples (like this: Context menu for TreeViewer based on selected node - SWT ) but they seem quite complicated and long in code.
Is there any simple way to attach a right…

user3541377
- 31
- 1
- 8
1
vote
1 answer
Updating the JFace TreeViewer after the underlying model changes
I have a tree viewer in my view, which listens to EMF models from the standard Ecore editor and does further things with it. I have already registered a selection listener, which checks whether the selected elements are the types the tree viewer…

DanglingElse
- 243
- 5
- 12
1
vote
2 answers
Adding double-click expansion to the Tree Viewer in SWT
Double-Clicking tree items works completely fine, but when I press CTRL + M on the keyboard then the tree items expand\collapse, can someone please tell me the reason behind this? Is this a bug in Eclipse or why does this double-click functionality…

Sangli
- 373
- 4
- 20
1
vote
2 answers
Updating Eclipse JFace Treeviewer when model changes?
I am developing a RCP application with a TreeViewer. While there are good number of articles to explain how to add editing support to the Viewer (and how changes in view are updated in the model), I don't find much for updating the Treeview when the…

ssdimmanuel
- 448
- 10
- 29
1
vote
1 answer
JFace: Change Color of TreeItem in TreeViewer
I tried to change the BackgroundColor of specific TreeNodes during runtime inside my Class which contains my TreeViewer, but it doesn't work:
....
Display display = Display.getCurrent();
for (TreeItem item : treeItems) {
…

ph09
- 1,052
- 2
- 20
- 31
1
vote
1 answer
JFace: Expand more levels for specific nodes
when the user expands specific nodes in my TreeViewer, it should expand two levels instead of one. So I added the following code:
viewer.addTreeListener(new ITreeViewerListener() {
public void treeCollapsed(TreeExpansionEvent event) {
…

ph09
- 1,052
- 2
- 20
- 31
1
vote
1 answer
CheckboxTreeViewer: Can't expand nodes by default
I recently implemented a CheckboxTreeViewer in my own Dialog. This works fine so far except that the tree doesn't allow me to expand nodes by default. It only works when I check the checkbox, as you can see in the following images:
This is by…

ph09
- 1,052
- 2
- 20
- 31
1
vote
1 answer
How to insert jface TreeViewer in second or in particular column?
I am trying to insert jface TreeViewer in second column (task name) of my GUI but its incorporate with first column(task ID). So how can i get the control to shift this from one column to second column.

umaair_653
- 113
- 10
1
vote
1 answer
JFace's TreeViewer - Strange alignment on first column
I use a TreeViewer. I do not understand why the first column of my table has an empty space on the left. This does not depend on the column, because if I change the first column, the gap is still there. The second column is well left-aligned.
SC01 :…

Manuel Campomanes
- 145
- 1
- 1
- 6
1
vote
1 answer
In eclipse TreeViewer how to trigger an event only in mouse up as welll as in key board arrow key
I have a treeViewer in which I want to execute some code(doSomething() method) only when mouse up is pressed, not on mouse down. The following piece of code executes it even when mouse down is triggered as selectionlistener is already triggered.…

Subhankar
- 487
- 8
- 25
1
vote
1 answer
Style TreeViewer's scrollbar
I have an editor that has both draw2d tree and Nebula's GridTreeViewer (basically a JFace TreeViewer). What I need is working, except scrollbars. In draw2d I get scrollbars provided by org.eclipse.draw2d.ScrollPane and in GridTreeViewer I get…

positron
- 3,643
- 3
- 22
- 26
1
vote
1 answer
Disable selection change in JFace TreeViewer
I have a TreeViewer in my view. Whenever I press a button (say s), the viewer selects the first item in the tree starting with this letter (say stackoverflow). Is there a way to disable this behaviour?
Thank you.

sebaestschjin
- 89
- 8
1
vote
1 answer
Enable/Disbale eclispe rcp editor via menu when clicking on a TreeViewer element
In my eclipse RCP application I have a TreeViewer from where I can select different editors, for drawing elements, which show up after double clicking. In my top menu I have an option that allows to enable/disbale the drawing. The action for the…

Markus
- 1,452
- 2
- 21
- 47