Questions tagged [treeviewer]

144 questions
0
votes
0 answers

Scroll lock for jface TreeViewer

Is it possible to activate a scroll lock to a Jface TreeViewer (like it is for the TableViewer)? I am constantly adding elements to the tree. If an item is selected, this item will move downwards as new elements arrive. But once it reaches the…
user3726374
  • 583
  • 1
  • 4
  • 24
0
votes
0 answers

Java: How to store data for using in Jface/TreeViewer and TableViewer

I would like to show the same data in a SWT/Jface TreeViewer and TableViewer. The question is how to store the data in a good way that both viewers can use the same data? My raw data are stored in an array: Id | Level | Type | Value 1 | 1 |…
Bastian
  • 438
  • 4
  • 11
0
votes
0 answers

How to group elements by type in a JFace TreeViewer?

I am writing a treeviewer which displays my model, which includes three classes Project, Course and Student. Each project can have multiple courses and each course can have multiple students. I am using the TreeViewer class of JFace. To Display this…
rayobanon
  • 43
  • 1
  • 7
0
votes
0 answers

Eclipse Rich Client platform with treeViewer

I want to create a small desktop app with the purpose of querying a database (MongoDB database) and I want my app to show databases and tables list in a tree view, on the left pannel for example: database1 -table1 …
d.haythem10
  • 19
  • 1
  • 7
0
votes
1 answer

Setting scrollbar position of JFace TreeViewer

in my code I have a TreeViewer that is refreshed by periodically calling setInput() and passing the new input. Due to the complexity of the rest of the system I would prefer not to change the code to work with with add, remove and refresh.…
Radioo
  • 422
  • 5
  • 18
0
votes
0 answers

Adding Listener for TreeViewerColumn

I have a treeviewer with dynamic number of columns. I am using ColumnLabelProvider. Every column cell is populated with a image (not text) using getImage() method of labelProvider. I need a listener that will be triggered when i double click on…
Monisha
  • 163
  • 1
  • 1
  • 8
0
votes
1 answer

Treeviewer refresh no working

Refreshing TreeViewer Does Not Work After I Add an Element in the TreeViewer,But Refreshing TreeViewer Work After I Remove an Element in the TreeViewer. my remove/delete action like this,EntityElement is the basic type of tree node: public void…
W.wei
  • 11
  • 2
0
votes
1 answer

background coloring wrong when hovering in with first column in TreeViewer

something strange happens when I switch-off the focus-coloring via LabelProvider and event.detail &= ~SWT.HOT and working with non-white background color. Looks like only the non-text area in the first column becomes white when the mouse is over it…
wandlang
  • 11
  • 3
0
votes
2 answers

Same child, different parents in a TreeViewer

I have a JFace TreeViewer where the structure is such that a child can have several parents. When selecting a child in the viewer, I want to get the parent of that selection. Example, with the following structure: - parent1 - child - parent2 …
afghg
  • 33
  • 1
  • 6
0
votes
1 answer

Set selection on collapsed nodes in tree viewer

I've the following problem: I created a tree viewer and bind a data model. The tree is comlete collapsed. Now I want to select a specific node in the tree: treeViewer.setSelection(new StructuredSelection(person), true); Person is one of my custom…
altralaser
  • 2,035
  • 5
  • 36
  • 55
0
votes
0 answers

How to add a child node to the selected node of a TreeViewer in RCP 3.x

[Working] I have a pre-defined treeviewer, where i am able to add nodes to the tree dynamically, which gets appended at the end. If i select a node and add a new node, that new node should be appended as a child to the selected node. Can anyone help…
Sudeep
  • 153
  • 1
  • 1
  • 12
0
votes
0 answers

CheckBoxTreeviewer set old checked element on creating new set of objects

I have used CheckboxTreeviewer with ICheckStateListener to get a checked elements. if element get checked then create a new set of object and setInut in same CheckboxTreeviewer.but when I put the new set of object in CheckboxTreeviewer previously…
0
votes
1 answer

CheckboxTreeviewer previously set checked elements after reload

I have used JFace CheckboxTreeviewer and added ICheckStateListener to get result of checked elements. Code is as follows private HashSet checkElement=new HashSet(); checkboxTreeViewer.addCheckStateListener(new…
Ankit Sharma
  • 398
  • 1
  • 7
  • 19
0
votes
1 answer

CheckboxTreeViewer on checked Children node get Parent node value

I am using JFace CheckboxTreeViewer and adding on ICheckStateListener to get checked elemets, My CheckboxTreeViewer structure is as follows, P1 ----Child1 ----Child2 ----Child3 ----Child4 P2 ----Child6 ----Child7 ----Child8 ----Child9 My…
0
votes
1 answer

A hybrid version of TableViewer and TreeViewer

I need a Java SWT widget that can help me achieve what is shown in box 3. It should have the indentation of a tree but not display the twistie. Have tried NatTable too.. but it doesn't help. Else, are there any hacks to achieve this?
Divya Dev
  • 125
  • 9