Improved JDT Filtered PackageExplorer (for Eclipse 4.2.1)

I updated my JDT Filtered Package Explorer. It should now also work with ‘Top Level Elements > Working Sets’ as top level and should also the native “Cancel” button of the platform.

Just for reference to use the native cancel you can implement your text fields with the following flags.

[code type=”java”]

filtertext= new Text(newParent, SWT.SEARCH | SWT.ICON_CANCEL);
filtertext.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true,

filtertext.addSelectionListener(new SelectionAdapter() {
public void widgetDefaultSelected(SelectionEvent e) {

I basically re-wrote the whole code to use a ViewerFilter, so you may want to de-install the old one before installing the new one.

p2 Update Site:

About Lars Vogel

Lars Vogel is the founder and CEO of the vogella GmbH and works as Eclipse and Android consultant, trainer and book author. He is a regular speaker at international conferences, He is the primary author of With more than one million visitors per month this website is one of the central sources for Java, Eclipse and Android programming information.
This entry was posted in Eclipse and tagged . Bookmark the permalink.

9 Responses to Improved JDT Filtered PackageExplorer (for Eclipse 4.2.1)

Comments are closed.