Questions tagged [treeviewer]

144 questions
0
votes
2 answers

How to disable the on hover display of expand arrow in GUI treeviewer? I want them to always be visible

How can I disable the on hover display of expand arrow in my GUI's treeviewer? I want the expand arrows to always be visible, I'm not sure but I think this is a feature of Windows GUI. Is there a workaround for this to have the arrows always visible…
kloklo90
  • 81
  • 1
  • 14
0
votes
1 answer

How to disable nodes in JFace CheckboxTreeViewer?

How can I disable a tree node in a CheckboxTreeViewer? Basically what I want is whenever a parent is selected in a check box tree all its children should be disabled and should not be possible to select. Also all the children should get unselected…
Abin Baby
  • 3
  • 2
0
votes
1 answer

refresh on a jface tree item has paint issues

refresh on a jface tree item has paint issues. What I am trying is to refresh when a new item is added. treeviewer.refresh(item) that item has many child items (many) Ultimately it refreshes, however somewhere after 7-10 seconds later. How to…
user1328572
  • 599
  • 1
  • 7
  • 12
0
votes
1 answer

how to refresh 2 nodes at different level in JFaceTree viewer in one go

how to refresh 2 nodes at different level in JFaceTree viewer in one go If we assume, A is one root and B another root, then somewhere down under A, we have C and the same C gets listed somewhere down under B. Now I want to refresh node C at both…
user1328572
  • 599
  • 1
  • 7
  • 12
0
votes
1 answer

Update not happening properly for similar nodes in a TreeViewer

In a TreeViewer, there are two similar nodes. They use the same data object. When I select the bottom node and modify, it updates the top node but there is no change in the bottom node. Before update: After update: I am using…
0
votes
1 answer

Java SWT get bounds of custom element in TreeView

I´ve created a TreeView with a ContentProvider and custom tree elements. I also have a ISelectionChangedListener added to the TreeView. I want to add an MouseListener, do detect if an element of the tree is right-clicked and show a popup menu. If…
Strizzi
  • 59
  • 9
0
votes
0 answers

Get individual cell selection on JFace TreeViewer and cell based contextual menu

I am an eclipse RCP developer. Still kind of a rookie. I have a requirement which says that I have to have a viewer which shows the comparison between 2 objects in the viewer with different categories (columns) and the user should be able to take…
0
votes
0 answers

Java SWT TreeViewer get Selection Event when Selection has not changed but the user clicked it again

I have a TreeViewer with my own Objects and I added an ISelectionChangedListener but now I want to recognize if a user selects the same Object in the tree again. Here is my ISelectionChangedListener: viewer.addSelectionChangedListener(new…
Strizzi
  • 59
  • 9
0
votes
1 answer

How to get the Keyboard curser focus to edit the label text, when we double click on CheckboxTreeViewer selected item

public class MyLabelProvider extends LabelProvider { @Override public Image getImage(Object element) { return createImage(imagePath); } @Override public String getText(Object element) { return…
Priya
  • 15
  • 6
0
votes
1 answer

Set initial input for ContainerCheckedTreeViewer

I have trouble setting the initial input for a ContainerCheckedTreeViewer in an Eclipse ViewPart. I set the initial input inside the createPartControl method, but the content is not rendered/visible. This is only an issue when the view is created…
jasper
  • 521
  • 4
  • 17
0
votes
0 answers

Can a TreeViewer apply different filters to the same data?

I have a tree structure that is added to an XViewer (XViewer is essentially an enhanced TreeViewer). I would like to display the data using two different views (depending on a radio button that the user clicks on). If the user chooses the first…
ekjcfn3902039
  • 1,673
  • 3
  • 29
  • 54
0
votes
1 answer

How to retain the state of a treeviewer in Java RCP application?

I have a simple RCP application having couple of wizards out of which one is having a tree viewer. I want to retain the state of the selected item in the tree viewer next time I open that particular view. As of now I have implemented using static…
Srikant Barik
  • 133
  • 2
  • 12
0
votes
1 answer

Performance improvement of FilteredTree

I'm using FilteredTree class to filter over my TreeViewer contents, but as there is lots of data now, when I type in something to filter the data, it hangs before I enter my next letter. Is there any way that I can improve the performance.
Juseeth
  • 467
  • 1
  • 6
  • 18
0
votes
1 answer

CheckboxTreeViewer with multiple instances of same element in different branches

I have a CheckboxTreeViewer with multiple instances of the same element in different branches. My problem is when implementing the setSubtreeChecked elements in different branches are getting checked if they are under the same element in a different…
GamedaySting
  • 107
  • 10
0
votes
1 answer

SWT TreeViewer with combobox and checkbox

I'm looking for a way to display a tree in the first column of a table/grid with three other columns, one with a combobox and the others with checkboxes. I've been trying to make this work with a TreeViewer but it doesn't quite fit what I'm looking…
GamedaySting
  • 107
  • 10