Questions tagged [treeviewer]

144 questions
1
vote
1 answer

Rename a treeViewer Node with SWT

I have a treeViewer on which I have to implement editing for renaming that should be able to be invoked in two ways: by the F2 key by a single mouse click if a node is selected. More ever as Windows allows folder rename. For this, I have used…
RTA
  • 1,251
  • 2
  • 14
  • 33
1
vote
2 answers

How to create a JFace TreeViewer with multi column?

I was able to create JFace multi column TreeViewer, with a single content provider. SO it causing same data in all columns. How can I set multi column with different data or have multiple content provider?
amrit_neo
  • 1,759
  • 4
  • 19
  • 39
1
vote
1 answer

Scrolling TreeViewer Tree SWT

My dialog have two TreeViewer components. The vertical scroll bars have to be synchronized. I have tried with setSelection and setTopItem methods but both have no effect to other tree. xViewerLeft = createXViewer(leftComposite, this); xViewerRight…
MKK
  • 2,431
  • 20
  • 16
1
vote
0 answers

IStructuredSelection: Use the same Selection in 2 different Views

I'm using a TreeViewer with a list of customers. I added a DoubleClickListener to the TreeViewer. this.treeViewer.addDoubleClickListener(new IDoubleClickListener() { @Override public void doubleClick(DoubleClickEvent event) { …
Lycone
  • 650
  • 9
  • 18
1
vote
0 answers

How to improve performance of expanding the jface treeviewer?

I have a JFace treeviewer with 7000+ nodes, when I perform expand all on the root element, it takes about 2 minutes to expand. I have tried calling expandAll() and expandToLevel(Object, level), still the performance remains the same. Is there a…
Sudeep
  • 153
  • 1
  • 1
  • 12
1
vote
1 answer

JFace TreeViewer expand or collapse on selection

I've implemented a selection listener for my treeviewer to expand or collapse a node on selection. This impementation works fine for collapsing, but does not expand a node. this.getTree().addListener(SWT.Selection, new Listener() { …
user8190738
1
vote
1 answer

TreeViewer doesn't show input

I have a TreeViewer with a content and label provider. When I set the input, the data doesn't show up, I only have a blank view. What am I doing wrong? In the code below I show how I create the TreeViwer and the providers. The parent should be…
Chicony
  • 393
  • 3
  • 17
1
vote
2 answers

How to set two selection providers in one view

I have a view where I have two tree viewers. In the createPartControl() how I can set the selectionProviders for both the views. It takes either one of them. Here is my snippet. The View code: IWorkbenchWindow workbenchWindow =…
Srikant Barik
  • 133
  • 2
  • 12
1
vote
1 answer

how to disable collapsible in JFace TreeViewer

I am using JFace treeviewer, would like to know how to disable the ability to collapse items and how to remove the collapsible icon.
Divya Dev
  • 125
  • 9
1
vote
1 answer

RowFilter on JFace TreeViewer

I have a TreeViewer as shown here: . I have a text field to enter the percentage values. Suppose the percentage entered is 30 %, I should hide all the rows that are below 30% and display only the rows above 30%. Is there any row filter that I can…
anjalli
  • 53
  • 6
1
vote
1 answer

Eclipse RCP: Display.getDefault().asyncExec waits more than 4000ms to execute

I am using TreeViewer and creating Job to refresh Treeview that is added 4k - 5k nodes. In Refresh Job, I call Display.getDefault().asyncExec to execute getTreeViewer().refresh() method. However, I have faced the problem that…
1
vote
1 answer

How to get ToolTip in a ListViewer in JFace?

This is a gridLayout in which the Available side is a Tree Viewer and The Selected side is a ListViewer. Now I have to get a toolTip on the right hand side. Which I am unable to get. I am working on a existing code base , so I am unable to figure…
Saras Arya
  • 3,022
  • 8
  • 41
  • 71
1
vote
3 answers

Columns & FilteredTree in Eclipse

I'm trying to create a FilteredTree with several columns with no luck. If I use a TreeViewer the columns work fine but when I switch to using a FilteredTree I can only get it to work if I remove the columns, so I'm wondering if there is a way to use…
Ozsie
  • 73
  • 5
1
vote
1 answer

Defer Eclipse Treeviewer loading by DeferredTreeContentManager

I understand there is an approach to defer TreeViewer loading by using DeferredTreeContentManager, learnt from this useful tutorial. However, this mechanism requires the model to implement IDeferredWorkbenchAdapter interface, which introduces…
qichuan
  • 620
  • 6
  • 13
1
vote
1 answer

TreeViewer color row alternatively

I am new to eclipse SWT. I am trying to override the getBackground method of ITableColorProvider to color rows alternatively of a treeViewer. I was trying coloring with row index (index%2 == 0). It colors all the rows instead. TreeViewer colors one…
topsyl
  • 53
  • 8
1 2
3
9 10