viewer
.setContentProvider(new AopReferenceModelNavigatorContentProvider());
viewer.setLabelProvider(new AopReferenceModelNavigatorLabelProvider());
viewer.setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS);
viewer.setSorter(new AopReferenceModelNavigatorSorter());
// adding these filters which restrict the contents of
// the view according to what has been typed in the
// text bar
viewer.addFilter(new NamePatternFilter());