Program: 170791
Project: 170791
Buggy source:
@Override public Composite configSectionCreate(final Composite parent){
  int userMode=COConfigurationManager.getIntParameter("String_Node_Str");
  boolean isAZ3=COConfigurationManager.getStringParameter("String_Node_Str").equals("String_Node_Str");
  Label label;
  GridLayout layout;
  GridData gridData;
  Composite cSection=new Composite(parent,SWT.NULL);
  Utils.setLayoutData(cSection,new GridData(GridData.FILL_BOTH));
  layout=new GridLayout();
  layout.numColumns=1;
  cSection.setLayout(layout);
  Group gVarious=new Group(cSection,SWT.NULL);
  layout=new GridLayout();
  layout.numColumns=1;
  gVarious.setLayout(layout);
  Utils.setLayoutData(gVarious,new GridData(GridData.FILL_HORIZONTAL));
  gVarious.setText(MessageText.getString("String_Node_Str"));
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  if (!Constants.isUnix) {
    new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  }
  if (Constants.isWindowsXP) {
    final Button enableXPStyle=new Button(gVarious,SWT.CHECK);
    Messages.setLanguageText(enableXPStyle,"String_Node_Str");
    boolean enabled=false;
    boolean valid=false;
    try {
      File f=new File(System.getProperty("String_Node_Str") + "String_Node_Str");
      if (f.exists()) {
        enabled=true;
      }
      f=FileUtil.getApplicationFile("String_Node_Str");
      if (f.exists()) {
        valid=true;
      }
    }
 catch (    Exception e) {
      Debug.printStackTrace(e);
      valid=false;
    }
    enableXPStyle.setEnabled(valid);
    enableXPStyle.setSelection(enabled);
    enableXPStyle.addListener(SWT.Selection,new Listener(){
      @Override public void handleEvent(      Event arg0){
        if (enableXPStyle.getSelection()) {
          try {
            File fDest=new File(System.getProperty("String_Node_Str") + "String_Node_Str");
            File fOrigin=new File("String_Node_Str");
            if (!fDest.exists() && fOrigin.exists()) {
              FileUtil.copyFile(fOrigin,fDest);
            }
          }
 catch (          Exception e) {
            Debug.printStackTrace(e);
          }
        }
 else {
          try {
            File fDest=new File(System.getProperty("String_Node_Str") + "String_Node_Str");
            fDest.delete();
          }
 catch (          Exception e) {
            Debug.printStackTrace(e);
          }
        }
      }
    }
);
  }
  if (Constants.isOSX) {
    new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  }
  if (PlatformManagerFactory.getPlatformManager().hasCapability(PlatformManagerCapabilities.ShowFileInBrowser)) {
    BooleanParameter bp=new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
    Messages.setLanguageText(bp.getControl(),"String_Node_Str",new String[]{MessageText.getString("String_Node_Str"),MessageText.getString("String_Node_Str")});
    if (Constants.isOSX) {
      new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
    }
  }
  if (userMode > 0) {
    final BooleanParameter paramEnableForceDPI=new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
    paramEnableForceDPI.setLayoutData(new GridData());
    IntParameter forceDPI=new IntParameter(gVarious,"String_Node_Str",0,Integer.MAX_VALUE);
    forceDPI.setLayoutData(new GridData());
    paramEnableForceDPI.setAdditionalActionPerformer(new ChangeSelectionActionPerformer(forceDPI.getControl()));
  }
{
    Group gToolBar=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(gToolBar,"String_Node_Str");
    int gToolBarSpan=4 + (isAZ3 ? 1 : 2);
    layout=new GridLayout();
    layout.numColumns=gToolBarSpan;
    gToolBar.setLayout(layout);
    Utils.setLayoutData(gToolBar,new GridData(GridData.FILL_HORIZONTAL));
    BooleanParameter enabled=null;
    if (!isAZ3) {
      enabled=new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
      GridData gd=new GridData();
      gd.horizontalSpan=gToolBarSpan;
      enabled.setLayoutData(gd);
    }
    if (isAZ3) {
      new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    }
    new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    if (!isAZ3) {
      new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    }
    new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    if (!isAZ3) {
      new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    }
    BooleanParameter sss=new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    GridData gd=new GridData();
    gd.horizontalSpan=gToolBarSpan;
    sss.setLayoutData(gd);
  }
  if (isAZ3) {
    Group gSideBar=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(gSideBar,"String_Node_Str");
    layout=new GridLayout();
    layout.numColumns=2;
    gSideBar.setLayout(layout);
    Utils.setLayoutData(gSideBar,new GridData(GridData.FILL_HORIZONTAL));
    new BooleanParameter(gSideBar,"String_Node_Str","String_Node_Str");
    label=new Label(gSideBar,SWT.NULL);
    label=new Label(gSideBar,SWT.NULL);
    Messages.setLanguageText(label,"String_Node_Str");
    new IntParameter(gSideBar,"String_Node_Str",0,5);
    new BooleanParameter(gSideBar,"String_Node_Str","String_Node_Str");
    label=new Label(gSideBar,SWT.NULL);
  }
  Group cStatusBar=new Group(cSection,SWT.NULL);
  Messages.setLanguageText(cStatusBar,"String_Node_Str");
  layout=new GridLayout();
  layout.numColumns=1;
  cStatusBar.setLayout(layout);
  Utils.setLayoutData(cStatusBar,new GridData(GridData.FILL_HORIZONTAL));
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  if (userMode > 0) {
    Group cUnits=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(cUnits,"String_Node_Str");
    layout=new GridLayout();
    layout.numColumns=1;
    cUnits.setLayout(layout);
    Utils.setLayoutData(cUnits,new GridData(GridData.FILL_HORIZONTAL));
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
  }
  if (userMode > 0) {
    Group formatters_group=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(formatters_group,"String_Node_Str");
    layout=new GridLayout();
    formatters_group.setLayout(layout);
    Utils.setLayoutData(formatters_group,new GridData(GridData.FILL_HORIZONTAL));
    StringAreaParameter formatters=new StringAreaParameter(formatters_group,"String_Node_Str");
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    gridData.heightHint=formatters.getPreferredHeight(3);
    formatters.setLayoutData(gridData);
    Composite format_info=new Composite(formatters_group,SWT.NULL);
    layout=new GridLayout();
    layout.marginHeight=0;
    layout.marginWidth=0;
    layout.numColumns=3;
    format_info.setLayout(layout);
    Utils.setLayoutData(format_info,new GridData(GridData.FILL_HORIZONTAL));
    new LinkLabel(format_info,"String_Node_Str",MessageText.getString("String_Node_Str"));
    label=new Label(format_info,SWT.NULL);
    Messages.setLanguageText(label,"String_Node_Str");
    InfoParameter info_param=new InfoParameter(format_info,"String_Node_Str");
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    info_param.setLayoutData(gridData);
  }
  if (userMode > 0) {
    Group gExternalBrowser=new Group(cSection,SWT.NULL);
    layout=new GridLayout();
    layout.numColumns=1;
    gExternalBrowser.setLayout(layout);
    Utils.setLayoutData(gExternalBrowser,new GridData(GridData.FILL_HORIZONTAL));
    gExternalBrowser.setText(MessageText.getString("String_Node_Str"));
    label=new Label(gExternalBrowser,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    Utils.setLayoutData(label,Utils.getWrappableLabelGridData(1,0));
    label=new Label(gExternalBrowser,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    Utils.setLayoutData(label,Utils.getWrappableLabelGridData(1,0));
    final java.util.List<String[]> browser_choices=new ArrayList<>();
    browser_choices.add(new String[]{"String_Node_Str",MessageText.getString("String_Node_Str")});
    browser_choices.add(new String[]{"String_Node_Str",MessageText.getString("String_Node_Str")});
    java.util.List<PluginInterface> pis=CoreFactory.getSingleton().getPluginManager().getPluginsWithMethod("String_Node_Str",new Class[]{URL.class,boolean.class,Runnable.class});
    String pi_names="String_Node_Str";
    for (    PluginInterface pi : pis) {
      String pi_name=pi.getPluginName();
      pi_names+=(pi_names.length() == 0 ? "String_Node_Str" : "String_Node_Str") + pi_name;
      browser_choices.add(new String[]{"String_Node_Str" + pi.getPluginID(),pi_name});
    }
    final Composite cEBArea=new Composite(gExternalBrowser,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cEBArea,gridData);
    layout=new GridLayout();
    layout.numColumns=2;
    layout.marginHeight=0;
    cEBArea.setLayout(layout);
    label=new Label(cEBArea,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    final Composite cEB=new Group(cEBArea,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cEB,gridData);
    layout=new GridLayout();
    layout.numColumns=browser_choices.size();
    layout.marginHeight=0;
    cEB.setLayout(layout);
    java.util.List<Button> buttons=new ArrayList<>();
    for (int i=0; i < browser_choices.size(); i++) {
      Button button=new Button(cEB,SWT.RADIO);
      button.setText(browser_choices.get(i)[1]);
      button.setData("String_Node_Str",String.valueOf(i));
      buttons.add(button);
    }
    String existing=COConfigurationManager.getStringParameter("String_Node_Str",browser_choices.get(0)[0]);
    int existing_index=-1;
    for (int i=0; i < browser_choices.size(); i++) {
      if (browser_choices.get(i)[0].equals(existing)) {
        existing_index=i;
        break;
      }
    }
    if (existing_index == -1) {
      existing_index=0;
      COConfigurationManager.setParameter("String_Node_Str",browser_choices.get(0)[0]);
    }
    buttons.get(existing_index).setSelection(true);
    Messages.setLanguageText(new Label(cEBArea,SWT.WRAP),"String_Node_Str");
    Composite manualArea=new Composite(cEBArea,SWT.NULL);
    layout=new GridLayout(2,false);
    layout.marginHeight=0;
    layout.marginWidth=0;
    manualArea.setLayout(layout);
    Utils.setLayoutData(manualArea,new GridData(GridData.FILL_HORIZONTAL));
    final Parameter manualProg=new FileParameter(manualArea,"String_Node_Str","String_Node_Str",new String[]{});
    manualProg.setEnabled(existing_index == 1);
    Listener radioListener=new Listener(){
      @Override public void handleEvent(      Event event){
        Button button=(Button)event.widget;
        if (button.getSelection()) {
          Control[] children=cEB.getChildren();
          for (int j=0; j < children.length; j++) {
            Control child=children[j];
            if (child != button && child instanceof Button) {
              Button b=(Button)child;
              b.setSelection(false);
            }
          }
          int index=Integer.parseInt((String)button.getData("String_Node_Str"));
          COConfigurationManager.setParameter("String_Node_Str",browser_choices.get(index)[0]);
          manualProg.setEnabled(index == 1);
        }
      }
    }
;
    for (    Button b : buttons) {
      b.addListener(SWT.Selection,radioListener);
    }
    if (pis.size() > 0) {
      Composite nonPubArea=new Composite(gExternalBrowser,SWT.NULL);
      layout=new GridLayout(2,false);
      layout.marginHeight=0;
      nonPubArea.setLayout(layout);
      Utils.setLayoutData(nonPubArea,new GridData(GridData.FILL_HORIZONTAL));
      String temp=MessageText.getString("String_Node_Str",new String[]{pi_names});
      BooleanParameter non_pub=new BooleanParameter(nonPubArea,"String_Node_Str",true,"String_Node_Str" + temp + "String_Node_Str");
    }
    Composite testArea=new Composite(gExternalBrowser,SWT.NULL);
    layout=new GridLayout(4,false);
    layout.marginHeight=0;
    testArea.setLayout(layout);
    Utils.setLayoutData(testArea,new GridData(GridData.FILL_HORIZONTAL));
    label=new Label(testArea,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    final Button test_button=new Button(testArea,SWT.PUSH);
    Messages.setLanguageText(test_button,"String_Node_Str");
    final Text test_url=new Text(testArea,SWT.BORDER);
    Utils.setLayoutData(test_url,new GridData(GridData.FILL_HORIZONTAL));
    test_url.setText("String_Node_Str");
    test_button.addListener(SWT.Selection,new Listener(){
      @Override public void handleEvent(      Event event){
        test_button.setEnabled(false);
        final String url_str=test_url.getText().trim();
        new AEThread2("String_Node_Str"){
          @Override public void run(){
            try {
              Utils.launch(url_str,true);
            }
  finally {
              Utils.execSWTThread(new Runnable(){
                @Override public void run(){
                  if (!test_button.isDisposed()) {
                    test_button.setEnabled(true);
                  }
                }
              }
);
            }
          }
        }
.start();
      }
    }
);
    label=new Label(testArea,SWT.NULL);
    Utils.setLayoutData(label,new GridData(GridData.FILL_HORIZONTAL));
  }
  if (userMode > 1) {
    Group gInternalBrowser=new Group(cSection,SWT.NULL);
    layout=new GridLayout();
    layout.numColumns=1;
    gInternalBrowser.setLayout(layout);
    Utils.setLayoutData(gInternalBrowser,new GridData(GridData.FILL_HORIZONTAL));
    gInternalBrowser.setText(MessageText.getString("String_Node_Str"));
    label=new Label(gInternalBrowser,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    final BooleanParameter intbrow_disable=new BooleanParameter(gInternalBrowser,"String_Node_Str","String_Node_Str");
    label=new Label(gInternalBrowser,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    gridData.horizontalIndent=15;
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    label=new Label(gInternalBrowser,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    java.util.List<PluginInterface> pis=AEProxyFactory.getPluginHTTPProxyProviders(true);
    final java.util.List<String[]> proxy_choices=new ArrayList<>();
    proxy_choices.add(new String[]{"String_Node_Str",MessageText.getString("String_Node_Str")});
    for (    PluginInterface pi : pis) {
      proxy_choices.add(new String[]{"String_Node_Str" + pi.getPluginID(),pi.getPluginName()});
    }
    final Composite cIPArea=new Composite(gInternalBrowser,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cIPArea,gridData);
    layout=new GridLayout();
    layout.numColumns=2;
    layout.marginHeight=0;
    cIPArea.setLayout(layout);
    label=new Label(cIPArea,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    final Composite cIP=new Group(cIPArea,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cIP,gridData);
    layout=new GridLayout();
    layout.numColumns=proxy_choices.size();
    layout.marginHeight=0;
    cIP.setLayout(layout);
    java.util.List<Button> buttons=new ArrayList<>();
    for (int i=0; i < proxy_choices.size(); i++) {
      Button button=new Button(cIP,SWT.RADIO);
      button.setText(proxy_choices.get(i)[1]);
      button.setData("String_Node_Str",String.valueOf(i));
      buttons.add(button);
    }
    String existing=COConfigurationManager.getStringParameter("String_Node_Str",proxy_choices.get(0)[0]);
    int existing_index=-1;
    for (int i=0; i < proxy_choices.size(); i++) {
      if (proxy_choices.get(i)[0].equals(existing)) {
        existing_index=i;
        break;
      }
    }
    if (existing_index == -1) {
      existing_index=0;
      COConfigurationManager.setParameter("String_Node_Str",proxy_choices.get(0)[0]);
    }
    buttons.get(existing_index).setSelection(true);
    Listener radioListener=new Listener(){
      @Override public void handleEvent(      Event event){
        Button button=(Button)event.widget;
        if (button.getSelection()) {
          Control[] children=cIP.getChildren();
          for (int j=0; j < children.length; j++) {
            Control child=children[j];
            if (child != button && child instanceof Button) {
              Button b=(Button)child;
              b.setSelection(false);
            }
          }
          int index=Integer.parseInt((String)button.getData("String_Node_Str"));
          COConfigurationManager.setParameter("String_Node_Str",proxy_choices.get(index)[0]);
        }
      }
    }
;
    for (    Button b : buttons) {
      b.addListener(SWT.Selection,radioListener);
    }
  }
  Group gRefresh=new Group(cSection,SWT.NULL);
  gRefresh.setText(MessageText.getString("String_Node_Str"));
  layout=new GridLayout();
  layout.numColumns=2;
  gRefresh.setLayout(layout);
  Utils.setLayoutData(gRefresh,new GridData(GridData.FILL_HORIZONTAL));
  label=new Label(gRefresh,SWT.NULL);
  Messages.setLanguageText(label,"String_Node_Str");
  int[] values={10,25,50,100,250,500,1000,2000,5000,10000,15000};
  String[] labels={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  new IntListParameter(gRefresh,"String_Node_Str",1000,labels,values);
  label=new Label(gRefresh,SWT.NULL);
  Messages.setLanguageText(label,"String_Node_Str");
  gridData=new GridData();
  IntParameter inactiveUpdate=new IntParameter(gRefresh,"String_Node_Str",1,Integer.MAX_VALUE);
  inactiveUpdate.setLayoutData(gridData);
  label=new Label(gRefresh,SWT.NULL);
  Messages.setLanguageText(label,"String_Node_Str");
  gridData=new GridData();
  IntParameter graphicUpdate=new IntParameter(gRefresh,"String_Node_Str",1,Integer.MAX_VALUE);
  graphicUpdate.setLayoutData(gridData);
  return cSection;
}

Fixed version (ground truth):
@Override public Composite configSectionCreate(final Composite parent){
  int userMode=COConfigurationManager.getIntParameter("String_Node_Str");
  boolean isAZ3=COConfigurationManager.getStringParameter("String_Node_Str").equals("String_Node_Str");
  Label label;
  GridLayout layout;
  GridData gridData;
  Composite cSection=new Composite(parent,SWT.NULL);
  Utils.setLayoutData(cSection,new GridData(GridData.FILL_BOTH));
  layout=new GridLayout();
  layout.numColumns=1;
  cSection.setLayout(layout);
  Group gVarious=new Group(cSection,SWT.NULL);
  layout=new GridLayout();
  layout.numColumns=1;
  gVarious.setLayout(layout);
  Utils.setLayoutData(gVarious,new GridData(GridData.FILL_HORIZONTAL));
  gVarious.setText(MessageText.getString("String_Node_Str"));
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  if (!Constants.isUnix) {
    new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  }
  if (Constants.isWindowsXP) {
    final Button enableXPStyle=new Button(gVarious,SWT.CHECK);
    Messages.setLanguageText(enableXPStyle,"String_Node_Str");
    boolean enabled=false;
    boolean valid=false;
    try {
      File f=new File(System.getProperty("String_Node_Str") + "String_Node_Str");
      if (f.exists()) {
        enabled=true;
      }
      f=FileUtil.getApplicationFile("String_Node_Str");
      if (f.exists()) {
        valid=true;
      }
    }
 catch (    Exception e) {
      Debug.printStackTrace(e);
      valid=false;
    }
    enableXPStyle.setEnabled(valid);
    enableXPStyle.setSelection(enabled);
    enableXPStyle.addListener(SWT.Selection,new Listener(){
      @Override public void handleEvent(      Event arg0){
        if (enableXPStyle.getSelection()) {
          try {
            File fDest=new File(System.getProperty("String_Node_Str") + "String_Node_Str");
            File fOrigin=new File("String_Node_Str");
            if (!fDest.exists() && fOrigin.exists()) {
              FileUtil.copyFile(fOrigin,fDest);
            }
          }
 catch (          Exception e) {
            Debug.printStackTrace(e);
          }
        }
 else {
          try {
            File fDest=new File(System.getProperty("String_Node_Str") + "String_Node_Str");
            fDest.delete();
          }
 catch (          Exception e) {
            Debug.printStackTrace(e);
          }
        }
      }
    }
);
  }
  if (Constants.isOSX) {
    new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
  }
  if (PlatformManagerFactory.getPlatformManager().hasCapability(PlatformManagerCapabilities.ShowFileInBrowser)) {
    BooleanParameter bp=new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
    Messages.setLanguageText(bp.getControl(),"String_Node_Str",new String[]{MessageText.getString("String_Node_Str"),MessageText.getString("String_Node_Str")});
    if (Constants.isOSX) {
      new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
    }
  }
  if (userMode > 0) {
    final BooleanParameter paramEnableForceDPI=new BooleanParameter(gVarious,"String_Node_Str","String_Node_Str");
    paramEnableForceDPI.setLayoutData(new GridData());
    IntParameter forceDPI=new IntParameter(gVarious,"String_Node_Str",0,Integer.MAX_VALUE);
    forceDPI.setLayoutData(new GridData());
    paramEnableForceDPI.setAdditionalActionPerformer(new ChangeSelectionActionPerformer(forceDPI.getControl()));
  }
{
    Group gToolBar=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(gToolBar,"String_Node_Str");
    int gToolBarSpan=5 + (isAZ3 ? 1 : 2);
    layout=new GridLayout();
    layout.numColumns=gToolBarSpan;
    gToolBar.setLayout(layout);
    Utils.setLayoutData(gToolBar,new GridData(GridData.FILL_HORIZONTAL));
    BooleanParameter enabled=null;
    if (!isAZ3) {
      enabled=new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
      GridData gd=new GridData();
      gd.horizontalSpan=gToolBarSpan;
      enabled.setLayoutData(gd);
    }
    if (isAZ3) {
      new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    }
    new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    if (!isAZ3) {
      new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    }
    new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    if (!isAZ3) {
      new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    }
    new BooleanParameter(gToolBar,"String_Node_Str" + TorrentUtil.TU_ITEM_RECHECK,"String_Node_Str");
    BooleanParameter sss=new BooleanParameter(gToolBar,"String_Node_Str","String_Node_Str");
    GridData gd=new GridData();
    gd.horizontalSpan=gToolBarSpan;
    sss.setLayoutData(gd);
  }
  if (isAZ3) {
    Group gSideBar=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(gSideBar,"String_Node_Str");
    layout=new GridLayout();
    layout.numColumns=2;
    gSideBar.setLayout(layout);
    Utils.setLayoutData(gSideBar,new GridData(GridData.FILL_HORIZONTAL));
    new BooleanParameter(gSideBar,"String_Node_Str","String_Node_Str");
    label=new Label(gSideBar,SWT.NULL);
    label=new Label(gSideBar,SWT.NULL);
    Messages.setLanguageText(label,"String_Node_Str");
    new IntParameter(gSideBar,"String_Node_Str",0,5);
    new BooleanParameter(gSideBar,"String_Node_Str","String_Node_Str");
    label=new Label(gSideBar,SWT.NULL);
  }
  Group cStatusBar=new Group(cSection,SWT.NULL);
  Messages.setLanguageText(cStatusBar,"String_Node_Str");
  layout=new GridLayout();
  layout.numColumns=1;
  cStatusBar.setLayout(layout);
  Utils.setLayoutData(cStatusBar,new GridData(GridData.FILL_HORIZONTAL));
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  new BooleanParameter(cStatusBar,"String_Node_Str","String_Node_Str");
  if (userMode > 0) {
    Group cUnits=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(cUnits,"String_Node_Str");
    layout=new GridLayout();
    layout.numColumns=1;
    cUnits.setLayout(layout);
    Utils.setLayoutData(cUnits,new GridData(GridData.FILL_HORIZONTAL));
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
    new BooleanParameter(cUnits,"String_Node_Str","String_Node_Str");
  }
  if (userMode > 0) {
    Group formatters_group=new Group(cSection,SWT.NULL);
    Messages.setLanguageText(formatters_group,"String_Node_Str");
    layout=new GridLayout();
    formatters_group.setLayout(layout);
    Utils.setLayoutData(formatters_group,new GridData(GridData.FILL_HORIZONTAL));
    StringAreaParameter formatters=new StringAreaParameter(formatters_group,"String_Node_Str");
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    gridData.heightHint=formatters.getPreferredHeight(3);
    formatters.setLayoutData(gridData);
    Composite format_info=new Composite(formatters_group,SWT.NULL);
    layout=new GridLayout();
    layout.marginHeight=0;
    layout.marginWidth=0;
    layout.numColumns=3;
    format_info.setLayout(layout);
    Utils.setLayoutData(format_info,new GridData(GridData.FILL_HORIZONTAL));
    new LinkLabel(format_info,"String_Node_Str",MessageText.getString("String_Node_Str"));
    label=new Label(format_info,SWT.NULL);
    Messages.setLanguageText(label,"String_Node_Str");
    InfoParameter info_param=new InfoParameter(format_info,"String_Node_Str");
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    info_param.setLayoutData(gridData);
  }
  if (userMode > 0) {
    Group gExternalBrowser=new Group(cSection,SWT.NULL);
    layout=new GridLayout();
    layout.numColumns=1;
    gExternalBrowser.setLayout(layout);
    Utils.setLayoutData(gExternalBrowser,new GridData(GridData.FILL_HORIZONTAL));
    gExternalBrowser.setText(MessageText.getString("String_Node_Str"));
    label=new Label(gExternalBrowser,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    Utils.setLayoutData(label,Utils.getWrappableLabelGridData(1,0));
    label=new Label(gExternalBrowser,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    Utils.setLayoutData(label,Utils.getWrappableLabelGridData(1,0));
    final java.util.List<String[]> browser_choices=new ArrayList<>();
    browser_choices.add(new String[]{"String_Node_Str",MessageText.getString("String_Node_Str")});
    browser_choices.add(new String[]{"String_Node_Str",MessageText.getString("String_Node_Str")});
    java.util.List<PluginInterface> pis=CoreFactory.getSingleton().getPluginManager().getPluginsWithMethod("String_Node_Str",new Class[]{URL.class,boolean.class,Runnable.class});
    String pi_names="String_Node_Str";
    for (    PluginInterface pi : pis) {
      String pi_name=pi.getPluginName();
      pi_names+=(pi_names.length() == 0 ? "String_Node_Str" : "String_Node_Str") + pi_name;
      browser_choices.add(new String[]{"String_Node_Str" + pi.getPluginID(),pi_name});
    }
    final Composite cEBArea=new Composite(gExternalBrowser,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cEBArea,gridData);
    layout=new GridLayout();
    layout.numColumns=2;
    layout.marginHeight=0;
    cEBArea.setLayout(layout);
    label=new Label(cEBArea,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    final Composite cEB=new Group(cEBArea,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cEB,gridData);
    layout=new GridLayout();
    layout.numColumns=browser_choices.size();
    layout.marginHeight=0;
    cEB.setLayout(layout);
    java.util.List<Button> buttons=new ArrayList<>();
    for (int i=0; i < browser_choices.size(); i++) {
      Button button=new Button(cEB,SWT.RADIO);
      button.setText(browser_choices.get(i)[1]);
      button.setData("String_Node_Str",String.valueOf(i));
      buttons.add(button);
    }
    String existing=COConfigurationManager.getStringParameter("String_Node_Str",browser_choices.get(0)[0]);
    int existing_index=-1;
    for (int i=0; i < browser_choices.size(); i++) {
      if (browser_choices.get(i)[0].equals(existing)) {
        existing_index=i;
        break;
      }
    }
    if (existing_index == -1) {
      existing_index=0;
      COConfigurationManager.setParameter("String_Node_Str",browser_choices.get(0)[0]);
    }
    buttons.get(existing_index).setSelection(true);
    Messages.setLanguageText(new Label(cEBArea,SWT.WRAP),"String_Node_Str");
    Composite manualArea=new Composite(cEBArea,SWT.NULL);
    layout=new GridLayout(2,false);
    layout.marginHeight=0;
    layout.marginWidth=0;
    manualArea.setLayout(layout);
    Utils.setLayoutData(manualArea,new GridData(GridData.FILL_HORIZONTAL));
    final Parameter manualProg=new FileParameter(manualArea,"String_Node_Str","String_Node_Str",new String[]{});
    manualProg.setEnabled(existing_index == 1);
    Listener radioListener=new Listener(){
      @Override public void handleEvent(      Event event){
        Button button=(Button)event.widget;
        if (button.getSelection()) {
          Control[] children=cEB.getChildren();
          for (int j=0; j < children.length; j++) {
            Control child=children[j];
            if (child != button && child instanceof Button) {
              Button b=(Button)child;
              b.setSelection(false);
            }
          }
          int index=Integer.parseInt((String)button.getData("String_Node_Str"));
          COConfigurationManager.setParameter("String_Node_Str",browser_choices.get(index)[0]);
          manualProg.setEnabled(index == 1);
        }
      }
    }
;
    for (    Button b : buttons) {
      b.addListener(SWT.Selection,radioListener);
    }
    if (pis.size() > 0) {
      Composite nonPubArea=new Composite(gExternalBrowser,SWT.NULL);
      layout=new GridLayout(2,false);
      layout.marginHeight=0;
      nonPubArea.setLayout(layout);
      Utils.setLayoutData(nonPubArea,new GridData(GridData.FILL_HORIZONTAL));
      String temp=MessageText.getString("String_Node_Str",new String[]{pi_names});
      BooleanParameter non_pub=new BooleanParameter(nonPubArea,"String_Node_Str",true,"String_Node_Str" + temp + "String_Node_Str");
    }
    Composite testArea=new Composite(gExternalBrowser,SWT.NULL);
    layout=new GridLayout(4,false);
    layout.marginHeight=0;
    testArea.setLayout(layout);
    Utils.setLayoutData(testArea,new GridData(GridData.FILL_HORIZONTAL));
    label=new Label(testArea,SWT.WRAP);
    Messages.setLanguageText(label,"String_Node_Str");
    final Button test_button=new Button(testArea,SWT.PUSH);
    Messages.setLanguageText(test_button,"String_Node_Str");
    final Text test_url=new Text(testArea,SWT.BORDER);
    Utils.setLayoutData(test_url,new GridData(GridData.FILL_HORIZONTAL));
    test_url.setText("String_Node_Str");
    test_button.addListener(SWT.Selection,new Listener(){
      @Override public void handleEvent(      Event event){
        test_button.setEnabled(false);
        final String url_str=test_url.getText().trim();
        new AEThread2("String_Node_Str"){
          @Override public void run(){
            try {
              Utils.launch(url_str,true);
            }
  finally {
              Utils.execSWTThread(new Runnable(){
                @Override public void run(){
                  if (!test_button.isDisposed()) {
                    test_button.setEnabled(true);
                  }
                }
              }
);
            }
          }
        }
.start();
      }
    }
);
    label=new Label(testArea,SWT.NULL);
    Utils.setLayoutData(label,new GridData(GridData.FILL_HORIZONTAL));
  }
  if (userMode > 1) {
    Group gInternalBrowser=new Group(cSection,SWT.NULL);
    layout=new GridLayout();
    layout.numColumns=1;
    gInternalBrowser.setLayout(layout);
    Utils.setLayoutData(gInternalBrowser,new GridData(GridData.FILL_HORIZONTAL));
    gInternalBrowser.setText(MessageText.getString("String_Node_Str"));
    label=new Label(gInternalBrowser,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    final BooleanParameter intbrow_disable=new BooleanParameter(gInternalBrowser,"String_Node_Str","String_Node_Str");
    label=new Label(gInternalBrowser,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    gridData.horizontalIndent=15;
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    label=new Label(gInternalBrowser,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    java.util.List<PluginInterface> pis=AEProxyFactory.getPluginHTTPProxyProviders(true);
    final java.util.List<String[]> proxy_choices=new ArrayList<>();
    proxy_choices.add(new String[]{"String_Node_Str",MessageText.getString("String_Node_Str")});
    for (    PluginInterface pi : pis) {
      proxy_choices.add(new String[]{"String_Node_Str" + pi.getPluginID(),pi.getPluginName()});
    }
    final Composite cIPArea=new Composite(gInternalBrowser,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cIPArea,gridData);
    layout=new GridLayout();
    layout.numColumns=2;
    layout.marginHeight=0;
    cIPArea.setLayout(layout);
    label=new Label(cIPArea,SWT.WRAP);
    gridData=Utils.getWrappableLabelGridData(1,GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(label,gridData);
    Messages.setLanguageText(label,"String_Node_Str");
    final Composite cIP=new Group(cIPArea,SWT.WRAP);
    gridData=new GridData(GridData.FILL_HORIZONTAL);
    Utils.setLayoutData(cIP,gridData);
    layout=new GridLayout();
    layout.numColumns=proxy_choices.size();
    layout.marginHeight=0;
    cIP.setLayout(layout);
    java.util.List<Button> buttons=new ArrayList<>();
    for (int i=0; i < proxy_choices.size(); i++) {
      Button button=new Button(cIP,SWT.RADIO);
      button.setText(proxy_choices.get(i)[1]);
      button.setData("String_Node_Str",String.valueOf(i));
      buttons.add(button);
    }
    String existing=COConfigurationManager.getStringParameter("String_Node_Str",proxy_choices.get(0)[0]);
    int existing_index=-1;
    for (int i=0; i < proxy_choices.size(); i++) {
      if (proxy_choices.get(i)[0].equals(existing)) {
        existing_index=i;
        break;
      }
    }
    if (existing_index == -1) {
      existing_index=0;
      COConfigurationManager.setParameter("String_Node_Str",proxy_choices.get(0)[0]);
    }
    buttons.get(existing_index).setSelection(true);
    Listener radioListener=new Listener(){
      @Override public void handleEvent(      Event event){
        Button button=(Button)event.widget;
        if (button.getSelection()) {
          Control[] children=cIP.getChildren();
          for (int j=0; j < children.length; j++) {
            Control child=children[j];
            if (child != button && child instanceof Button) {
              Button b=(Button)child;
              b.setSelection(false);
            }
          }
          int index=Integer.parseInt((String)button.getData("String_Node_Str"));
          COConfigurationManager.setParameter("String_Node_Str",proxy_choices.get(index)[0]);
        }
      }
    }
;
    for (    Button b : buttons) {
      b.addListener(SWT.Selection,radioListener);
    }
  }
  Group gRefresh=new Group(cSection,SWT.NULL);
  gRefresh.setText(MessageText.getString("String_Node_Str"));
  layout=new GridLayout();
  layout.numColumns=2;
  gRefresh.setLayout(layout);
  Utils.setLayoutData(gRefresh,new GridData(GridData.FILL_HORIZONTAL));
  label=new Label(gRefresh,SWT.NULL);
  Messages.setLanguageText(label,"String_Node_Str");
  int[] values={10,25,50,100,250,500,1000,2000,5000,10000,15000};
  String[] labels={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  new IntListParameter(gRefresh,"String_Node_Str",1000,labels,values);
  label=new Label(gRefresh,SWT.NULL);
  Messages.setLanguageText(label,"String_Node_Str");
  gridData=new GridData();
  IntParameter inactiveUpdate=new IntParameter(gRefresh,"String_Node_Str",1,Integer.MAX_VALUE);
  inactiveUpdate.setLayoutData(gridData);
  label=new Label(gRefresh,SWT.NULL);
  Messages.setLanguageText(label,"String_Node_Str");
  gridData=new GridData();
  IntParameter graphicUpdate=new IntParameter(gRefresh,"String_Node_Str",1,Integer.MAX_VALUE);
  graphicUpdate.setLayoutData(gridData);
  return cSection;
}