FilteredTree it won't work in Eclipse Kepler [message #1115115] |
Mon, 23 September 2013 17:35 |
Ingo Schult Messages: 2 Registered: September 2013 |
Junior Member |
|
|
Hallo,
I like to use the FilteredTree in my e4 (Eclipse-Kepler) Project.
here is my Code:
@PostConstruct
public void postConstruct(Composite parent) {
parent.setLayout(new GridLayout(1, false));
FilteredTree filteredTree = new FilteredTree(parent, SWT.SINGLE | SWT.BORDER , new FolderFilter(), true);
filteredTree.setQuickSelectionMode(true);
filteredTree.setInitialText("Filter");
viewer = filteredTree.getViewer();
initViewer();
status = new Label(parent, SWT.NONE);
status.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 4, 1));
status.setText("Verzeichnisse gelesen");
}
The Text-Widget, for the Filtertext, is displayed, but when I type text into then Textfield nothing happens.
On Eclipse Indigo (View extends ViewPart) ist work fine.
What is wrong?
Greating
Ingo
|
|
|
|
|
Re: FilteredTree it won't work in Eclipse Kepler [message #1353973 is a reply to message #1116570] |
Wed, 14 May 2014 04:21 |
|
I have the same problem.
FilteredTree internally uses WorkbenchJob:
protected WorkbenchJob doCreateRefreshJob() {
return new WorkbenchJob("Refresh Filter") {
...
};
}
In turn WorkbenchJob overrides shouldSchedule() method:
@Override
public boolean shouldSchedule() {
return super.shouldSchedule() && PlatformUI.isWorkbenchRunning();
}
Oops!!! PlatformUI.isWorkbenchRunning() returns false! Job doesn't run.
I have no ideas.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03892 seconds