use of org.pentaho.mantle.client.commands.RefreshRepositoryCommand in project pentaho-platform by pentaho.
the class BrowserToolbar method createMenus.
/**
*/
private void createMenus() {
addSpacer(5);
Label label = new Label(Messages.getString("browse"));
label.setStyleName("pentaho-titled-toolbar-label");
// $NON-NLS-1$
add(label);
add(GLUE);
Image refreshImage = ImageUtil.getThemeableImage("icon-small", "icon-refresh");
Image refreshDisabledImage = ImageUtil.getThemeableImage("icon-small", "icon-refresh", "disabled");
refreshBtn = new ToolbarButton(refreshImage, refreshDisabledImage);
refreshBtn.setCommand(new RefreshRepositoryCommand());
// $NON-NLS-1$
refreshBtn.setToolTip(Messages.getString("refresh"));
add(refreshBtn);
}
use of org.pentaho.mantle.client.commands.RefreshRepositoryCommand in project pentaho-platform by pentaho.
the class MantleModel method refreshContent.
@Bindable
public void refreshContent() {
if (PerspectiveManager.SCHEDULES_PERSPECTIVE.equals(PerspectiveManager.getInstance().getActivePerspective().getId())) {
Command cmd = new RefreshSchedulesCommand();
cmd.execute();
} else {
Command cmd = new RefreshRepositoryCommand();
cmd.execute();
}
}
Aggregations