//Help panel
//**********************************************************
textHelp.setText(synchronizer.getHelpText());
textHelp.setBorder(null);
JScrollPane helpScroller = new JScrollPane(textHelp);
helpScroller.setBorder(null);
helpScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
helpScroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);
textHelp.setEditable(false);
//**********************************************************
//Settings panel
//**********************************************************
JPanel panelSettings = new JPanel();
panelSettings.setLayout(Layout.getGBL());
panelSettings.setBorder(ComponentFactory.getTitleBorder(DcResources.getText("lblSettings")));
panelSettings.add(ComponentFactory.getLabel(DcResources.getText("lblUpdatingWhichItems")),
Layout.getGBC(0, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.NORTHWEST, GridBagConstraints.NONE,
new Insets(5, 5, 5, 5), 0, 0));
panelSettings.add(cbItemPickMode,
Layout.getGBC(1, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
new Insets(5, 5, 5, 5), 0, 0));
cbItemPickMode.addItem(DcResources.getText("lblAllItemsInView"));
cbItemPickMode.addItem(DcResources.getText("lblSelectedItemsOnly"));
cbItemPickMode.setSelectedIndex(DcSettings.getInt(DcRepository.Settings.stMassUpdateItemPickMode));
//**********************************************************
//Online Server panel
//**********************************************************
panelServer = new OnlineServicePanel(servers, true, canParseFiles ? true : false);
Settings settings = DcModules.get(module).getSettings();
panelServer.setServer(settings.getString(DcRepository.ModuleSettings.stMassUpdateServer));
panelServer.setMode(settings.getString(DcRepository.ModuleSettings.stMassUpdateMode));
panelServer.setRegion(settings.getString(DcRepository.ModuleSettings.stMassUpdateRegion));
//**********************************************************
//Online Server Settings panel
//**********************************************************
panelOnlineServiceSettings = new OnlineServiceSettingsPanel(null, false, false, true, true, module);
//**********************************************************
//Re-parse panel
//**********************************************************
JPanel panelReparse = new JPanel();
if (canParseFiles) {
panelReparse.setLayout(Layout.getGBL());
panelReparse.setBorder(ComponentFactory.getTitleBorder(DcResources.getText("lblMusicFileProcessingConfig")));
panelReparse.add(checkReparseFiles, Layout.getGBC(0, 0, 1, 1, 1.0, 1.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.HORIZONTAL,
new Insets(5, 5, 5, 5), 0, 0));
checkReparseFiles.setSelected(true);
}
//**********************************************************
//Log panel
//**********************************************************
JPanel panelLog = new JPanel();
panelLog.setLayout(Layout.getGBL());
JScrollPane logScroller = new JScrollPane(textLog);
logScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
panelLog.setBorder(ComponentFactory.getTitleBorder(DcResources.getText("lblLog")));
panelLog.add(logScroller, Layout.getGBC(0, 0, 1, 1, 1.0, 1.0
,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
new Insets(5, 5, 5, 5), 0, 0));