Questions tagged [treeviewer]

144 questions
0
votes
1 answer

Remove items from a TreeViewer based on the suffix of the string(List items)

I have a TreeViewer and a List inside the TreeViewer containing a list of items(String), for example : Subtask one one \\first item in the TreeViewer Subtask two one Subtask three one Subtask four two Subtask four three I want to remove the…
Sangli
  • 373
  • 4
  • 20
0
votes
1 answer

How to set selection for treeviewer without firing selectionChanged()?

I am working on an eclipse RCP project. It has several views with TreeViewer and I use selectionChanged() method to handle selection events. However, at times I need to set selection programmatically.For this, in selectionChanged() method, I invoke…
SaurabhJinturkar
  • 554
  • 7
  • 20
0
votes
1 answer

TreeViewer Expand-/Collapse-ToLevel Bug

I have a TreeViewer whose items I am trying to expand or collapse one level. My TreeViewer contains items that have the same name. For example: Node 1 -> Node A -> Node B -> Node C Node 2 -> Node A -> Node B -> Node…
schmimona
  • 849
  • 3
  • 20
  • 40
0
votes
0 answers

JFace::TreeViewer::setInput() -> long processing and hourglass-cursor - even with null as argument

I'am writing an Eclipse-JFace-TreeViewer and noticed recently, that everytime I call setInput() the UI threads is occupied for at least 10~30ms, regardless what input is set. It also takes very long to process when setInput(null) is called. I also…
0
votes
1 answer

Composite not grabbing excess horizontal space for TreeViewer

I'm trying to fill a composite horizontally from data coming from a TreeViewer, without success. If you have any suggestions, I would me most thankful. Here's the code I'm using: private Composite composite; private ScrolledComposite…
Mihai Galos
  • 1,707
  • 1
  • 19
  • 38
0
votes
1 answer

How delete an item from SWT TreeViewer?

I'm working with Eclipse Standard Widget Toolkit (SWT), I have a TreeView object with items and an double click event (addDoubleClickListener) works fine, but I don't know how implement the right click for delete an item.
Miguel Ángel
  • 693
  • 1
  • 6
  • 10
0
votes
1 answer

org.eclipse.jface.viewers.TreeViewer shows nothing

Why doesn't example below work? TreeNodeEx class is one that allows LISP-like syntax initialization: (Life, Archaea, (Bacteria), (Eukarya, Fungi, Plantae, Plantae, Protista)) I.e. first element in the list means parent and tail means it's…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Eclipse RCP Adapters

I have a view with a TableViewer of cities. I also have another view with a TreeViewer of persons. Can someone explain or give me a tip on how can I update the TreeViewer with persons from the city selected in TableViewer using adapter factory?
0
votes
1 answer

JFace TreeViewer: a column with different types of data

I would like to create a tree with a column which contains various data types, such as some cells are date, some cells are number, some cells are SWT color, etc. Then I will apply different cell editors for different types, so there will be date…
Qinjin
  • 401
  • 4
  • 12
0
votes
2 answers

JFace TreeViewer, setting the element on top programatically

I have spent hours and didn't find the solution for something which for me seems natural operation: How can I force the TreeViewer to show in the visiple part of the Tree a given element? In other words, how can I scroll it to the point where the…
0
votes
1 answer

To drop some text onto a treeitem of treeViewer and further populate it into treeitem

I want to drag text from a tableViewer, drop onto a TreeViewer, and populate the dragged text into the selected treeitem. Drag source and drop target is set. The first encountered problem is that the item of DropTargetEvent is null, so I can't…
0
votes
1 answer

TreeViewer no longer sizes properly when using StyledCellLabels

I was using a JFace TreeViewer perfectly well for a while. It has a bunch of branches of varying lengths, but at the end of the day, the entire tree stretched to the size of its longest string. This was great. Recently, I decided that the TreeItems…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
0
votes
1 answer

SWT TreeViewer resize issue

I have 3 treeviewer objects in one view in a column like disposition and I want their size to increase equally if I maximize/minimize the view/eclipse window. Here is my code: Composite composite = new Composite(parent,…
0
votes
1 answer

JFace TreeViewer restore selection

I'm doing my first RCP example using the TreeViewer for directory browsing. My work did start from the example http://www.ibm.com/developerworks/opensource/library/os-ecgui1/ For the TreeViewer of file entries I want to make the last selection…
Wolfgang R.
  • 333
  • 1
  • 2
  • 10
0
votes
1 answer

Programmatically open a view eclipse view

I want to programmatically open an eclipse view, I tried this code: PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(view.ID); It opens the view but it only instantiate it once.. I need to open a view on a double click…
kamel
  • 45
  • 4
1 2 3
9
10