示例#1
0
  private void showRepoTree(Repository repo) {
    if (repo == null) {
      return;
    }

    repoTreePanel.setHeading((String) repo.get("name") + " Repository Content");
    repoTreeBinding.selectRepository(repo);

    repoPanel.removeAll();
    repoPanel.add(repoTree);
  }
示例#2
0
 private void emptyDataSetPanel() {
   // Only do when visible to enhance performance
   if (viewDsInfoPanel.isExpanded()) {
     viewDsInfoPanel.removeAll();
     LabelToolItem noDsSelectedLabel =
         new LabelToolItem(HarvesterUI.CONSTANTS.noDataSetSelected());
     noDsSelectedLabel.setStyleName("noDataSetSelected");
     viewDsInfoPanel.setLayout(new CenterLayout());
     viewDsInfoPanel.setHeading(HarvesterUI.CONSTANTS.viewDataSetInformation());
     viewDsInfoPanel.add(noDsSelectedLabel);
   }
 }
示例#3
0
 /**
  * ******************************************************* View Info Side Panel Functions
  * ********************************************************
  */
 private void editPanelInfo(DataSourceUI dataSourceUI) {
   // Only do when visible to enhance performance
   if (viewDsInfoPanel.isExpanded()) {
     DataSetSideViewInfo dataSetViewInfo = new DataSetSideViewInfo();
     dataSetViewInfo.createForm(dataSourceUI);
     viewDsInfoPanel.removeAll();
     viewDsInfoPanel.setLayout(new FitLayout());
     viewDsInfoPanel.add(dataSetViewInfo);
     viewDsInfoPanel.setHeading(
         HarvesterUI.CONSTANTS.viewDataSet()
             + ": "
             + dataSourceUI.getDataSourceSet()
             + " ("
             + HarvesterUI.CONSTANTS.dataProvider()
             + ": "
             + dataSourceUI.getDataSetParent().getName()
             + ")");
   }
 }
示例#4
0
 private void showRepoHelp() {
   repoPanel.removeAll();
   repoPanel.addText("Select a repository to view it").setStyleName("st-little-padding");
 }
 public void setCenterContent(Widget w) {
   centerPanel.removeAll();
   if (w != null) centerPanel.add(w);
   centerPanel.layout();
 }
 public void refreshTree() {
   westPanel.removeAll();
   westPanel.add(new MenuTreePanel(new MenuDataStore()));
   westPanel.layout();
 }