use of org.pentaho.mantle.client.events.SolutionBrowserUndefinedEvent in project pentaho-platform by pentaho.
the class MantleTabPanel method setContentEditSelected.
public void setContentEditSelected(boolean selected) {
IFrameTabPanel panel = getCurrentFrame();
if (panel != null) {
panel.setEditSelected(selected);
Widget selectTabContent = null;
if (getTab(getSelectedTabIndex()) != null) {
selectTabContent = getTab(getSelectedTabIndex()).getContent();
}
List<FileItem> selectedItems = SolutionBrowserPanel.getInstance().getFilesListPanel().getSelectedFileItems();
EventBusUtil.EVENT_BUS.fireEvent(new SolutionBrowserUndefinedEvent(selectTabContent, selectedItems));
}
}
use of org.pentaho.mantle.client.events.SolutionBrowserUndefinedEvent in project pentaho-platform by pentaho.
the class MantleTabPanel method enableContentEdit.
public void enableContentEdit(boolean enable) {
IFrameTabPanel panel = getCurrentFrame();
if (panel != null) {
panel.setEditEnabled(enable);
Widget selectTabContent = null;
if (getTab(getSelectedTabIndex()) != null) {
selectTabContent = getTab(getSelectedTabIndex()).getContent();
}
List<FileItem> selectedItems = SolutionBrowserPanel.getInstance().getFilesListPanel().getSelectedFileItems();
EventBusUtil.EVENT_BUS.fireEvent(new SolutionBrowserUndefinedEvent(selectTabContent, selectedItems));
}
}
Aggregations