protected abstract void updateModel();
private void addDeleteAction(Composite parent) {
ImageHyperlink delLink = addImage( parent,
"icons/delete_item_small.gif" );
delLink.addHyperlinkListener( new IHyperlinkListener() {
public void linkActivated(HyperlinkEvent e) {
MessageBox dialog = new MessageBox( Display.getCurrent().getActiveShell(),
SWT.YES | SWT.NO | SWT.ICON_WARNING );
dialog.setMessage( "Remove this DSL sentence?" );
dialog.setText( "Remove this DSL sentence?" );
if ( dialog.open() == SWT.YES ) {
updateModel();
}
}
public void linkEntered(HyperlinkEvent e) {
}
public void linkExited(HyperlinkEvent e) {
}
} );
delLink.setToolTipText( "Remove this condition." );
}