// If we are only showing selected items, we need to redo the filter after text filtering is applied. The only selected filter uses the tree's check state, which hasn't been restored correctly at filter time.

WorkbenchJob job = super.doCreateRefreshJob();

job.addJobChangeListener(new JobChangeAdapter() {

+ @Override

public void done(IJobChangeEvent event) {

if (event.getResult().isOK()) {

getDisplay().asyncExec(new Runnable() {

@@ -923,6 +932,7 @@ public class FeatureBlock {

}

});

fTree.getTree().addKeyListener(new KeyAdapter() {

+ @Override

public void keyReleased(KeyEvent e) {

if (e.keyCode == SWT.DEL) {

// Any changes here need to be reflected in the remove button handling

@@ -1173,8 +1183,7 @@ public class FeatureBlock {

tree.setInput(models);

// Loop through the saved config to determine location settings and selection