Questions tagged [treeviewer]
144 questions
1
vote
1 answer
setSelectionProvider over two different controls not working
I am Trying to create Eclipse Plugin which has a composite with two TreeViewer side by side. On click of each TreeViewer content Eclipse property view should give appropriate information. Now I wanted to set Selection provider for both of this…

tor
- 85
- 1
- 9
1
vote
0 answers
override eclipse property view
I really need a help. I am struck here. I wanted to override eclipse property view and show my properties for each nodes in the swt Tree. To be clear I am not using JFace TreeViewer. I implemented my entire project in using SWT Tree. I seen lots of…

tor
- 85
- 1
- 9
0
votes
2 answers
When adding a selection listener to the Eclipse RCP Workbench how are you supposed to know the ID to use?
I have a view part and in my createPartControl function I have this:
viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
getSite().setSelectionProvider(viewer);
getSite().getWorkbenchWindow().getSelectionService()
…

Link19
- 586
- 1
- 18
- 47
0
votes
2 answers
Vertical align 2 jface TreeViewers to specific element
I have two TreeViewer objects on a page (2 columns, one TreeViewer in each column), and I want to vertically align a tree when the other is scrolled or selected.
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.widgets.Tree;
I…

karnbo
- 191
- 6
0
votes
1 answer
stack-Overflow error while removing nodes of a tree
I have a tree structure in this format:
Index1
|
--Key1
--Value1
Index2
|
--Key2
--Value2
Key and Value objects are children of Index objects and there are no index objects in the tree.
I'm maintaining array lists for Index objects…

kk331317
- 129
- 2
- 12
0
votes
0 answers
Creating context menu only for a particular item selected in the Tree Viewer
I have a TreeViewer, and I created a context menu with some actions.
With this code snippet below, I get the context menu for all tree items.
protected void createMasterPart(final IManagedForm managedForm, final Composite parent)
{
Tree t =…

kk331317
- 129
- 2
- 12
0
votes
1 answer
Expanding tree nodes
I am new to eclipse RCP, well as a matter of fact to java also. Have a very basic question.
I have a JFace TreeViewer. I want to expand a particular node in that. The catch is I only have the name of the node. and no information apart from that.
I…

Sid
- 51
- 1
- 5
0
votes
1 answer
SWT Tree, JFaces, TreeViewer
Could you give me some ideas on how I can achieve this.
I have SWT Tree with me, which is managed by means of Tree Viewer.
I want every item in the tree to be editable (I mean, if you put mouse on it and start editing its string value , it should…

Vineel
- 1,630
- 5
- 26
- 47
0
votes
2 answers
Replacing menu item in Jface popupmenu
I want to show a popup menu in JFace's TreeViewer.
The menu should contain 3 constant menu items that never change, and additional item that varies depending to a tree node that was clicked on (selected).
One option is to use…

davids
- 23
- 1
- 5
0
votes
1 answer
SWT Tree: draw line from label to the right side
I'm working on a similar application like the figure in this question:
SWT tree > move the verticle scrollbar to the left of the tree without changing the orientation
I don't know how to draw the connection lines like the figure.
My naive solution…

thd
- 2,380
- 1
- 25
- 33
0
votes
0 answers
Can someone please guide me how to filter the contents from Jface TreeViewer?
I am new in creating TreeViewer.
I am creating a treeviewer using a HashMap Map> typeDefsTreeMap = new HashMap<>()
Now I want to filter the contents of TreeViewer.
Can someone help me in filtering the contents of TreeViewer?
I…

A.Goel
- 101
- 1
- 10
0
votes
0 answers
Java SWT/Jface TreeColumn freeze
I have create a TreeViewer with data, but the TreeColumn is so much , so I want to ask a question how can freeze the first TreeColumn, thanks

鱼花生
- 1
0
votes
0 answers
Add buttons on a treeViewer
I would like to add a button on some rows of my TreeViewer. To do that, I’ve used a method that I saw on a forum and it was working on a TableViewer.
I‘ve implemented my own Label provider on the column where I want the button to be. So I’ve…

rosemerel
- 1
- 1
0
votes
0 answers
How to call getChildren() without UI event ITreeContentProvider?
@Override
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof List) {
List> arraysList = ((List>) parentElement).stream()
.filter(p -> p instanceof List && !((List>)…

Promod Kumar
- 121
- 1
- 8
0
votes
0 answers
How to make one column as parent column and group other columns based on that in TreeViewer Jface?
I have a table with four columns say A B C D. I am using TableViewer to show the results in a table with corresponding headers. Now, I realize that column C is having duplicate values. So I would like to convert this table to a tree using TreeViewer…

schaturv
- 122
- 8