Button newCat = new Button( constants.NewCategory() );
newCat.setTitle( constants.CreateANewCategory() );
newCat.addClickHandler( new ClickHandler() {
public void onClick(ClickEvent w) {
CategoryEditor newCat = new CategoryEditor( explorer.getSelectedPath(),
new Command() {
public void execute() {
explorer.refresh();
}
} );
newCat.show();
}
} );
actions.add( newCat );