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