private void setupComboOutputFormatContent() {
   comboOutputFormat.removeAll();
   for (IOutputFormat of : reportTypes[comboReportType.getSelectionIndex()].getOutputFormats()) {
     comboOutputFormat.add(of.getLabel());
   }
   ;
   comboOutputFormat.select(0);
   if (chosenReportType != null) {
     chosenOutputFormat =
         chosenReportType.getOutputFormats()[comboOutputFormat.getSelectionIndex()];
   }
 }
예제 #2
0
 private void setupComboOutputFormatContent() {
   comboOutputFormat.removeAll();
   if (reportTemplates.length > 0) {
     for (IOutputFormat of :
         getDepositService()
             .getOutputFormats(
                 reportTemplates[comboReportType.getSelectionIndex()].getOutputFormats())) {
       comboOutputFormat.add(of.getLabel());
     }
     comboOutputFormat.select(0);
     if (chosenReportMetaData != null) {
       chosenOutputFormat =
           getDepositService()
               .getOutputFormat(
                   chosenReportMetaData.getOutputFormats()[comboOutputFormat.getSelectionIndex()]);
     }
   } else {
     showNoReportsExistant();
     return;
   }
 }