FieldDecorationRegistry.getDefault().registerFieldDecoration( getClass().getName(),
"You may enter a filter to restrict the list below", dummy.getImage() );
}
final FieldDecoration fieldDecoration = FieldDecorationRegistry.getDefault().getFieldDecoration(
getClass().getName() );
final DecoratedField availabeObjectClassesInstantSearchField = new DecoratedField(
availableObjectClassesComposite, SWT.BORDER, new IControlCreator()
{
public Control createControl( Composite parent, int style )
{
return BaseWidgetUtils.createText( parent, "", 1 );
}
} );
availabeObjectClassesInstantSearchField.addFieldDecoration( fieldDecoration, SWT.TOP | SWT.LEFT, true );
availabeObjectClassesInstantSearchField.getLayoutControl().setLayoutData(
new GridData( SWT.FILL, SWT.CENTER, true, false ) );
availableObjectClassesInstantSearch = ( Text ) availabeObjectClassesInstantSearchField.getControl();
availableObjectClassesInstantSearch.addModifyListener( new ModifyListener()
{
public void modifyText( ModifyEvent e )
{
availableObjectClassesViewer.refresh();