Program: 20888
Project: 20888
Buggy source:
@SuppressWarnings("String_Node_Str") public void actionPerformed(final ActionEvent e){
  new Thread(){
    public void run(){
      this.setName("String_Node_Str");
      if (e.getSource() == DownloadLinksPanel.this.asyncUpdate) {
        fireTableTask();
        return;
      }
      ArrayList<FilePackage> selectedPackages=new ArrayList<FilePackage>();
      ArrayList<DownloadLink> selectedLinks=new ArrayList<DownloadLink>();
      HashMap<String,Object> prop=new HashMap<String,Object>();
      HashSet<String> List=new HashSet<String>();
      StringBuilder build=new StringBuilder();
      String string=null;
      Object obj=null;
      FilePackage fp=null;
      DownloadLink link=null;
      File folder=null;
      int col=0;
      if (e.getSource() instanceof JMenuItem) {
switch (e.getID()) {
case TableAction.EDIT_NAME:
case TableAction.EDIT_DIR:
          selectedPackages=(ArrayList<FilePackage>)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
        break;
case TableAction.SORT:
      col=(Integer)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
    selectedLinks=new ArrayList<DownloadLink>(DownloadLinksPanel.this.internalTable.getSelectedDownloadLinks());
  selectedPackages=new ArrayList<FilePackage>(DownloadLinksPanel.this.internalTable.getSelectedFilePackages());
break;
case TableAction.DOWNLOAD_PRIO:
case TableAction.DE_ACTIVATE:
prop=(HashMap<String,Object>)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
selectedLinks=(ArrayList<DownloadLink>)prop.get("String_Node_Str");
break;
case TableAction.DELETE:
case TableAction.FORCE_DOWNLOAD:
case TableAction.DELETEFILE:
case TableAction.SET_PW:
case TableAction.NEW_PACKAGE:
case TableAction.CHECK:
case TableAction.DOWNLOAD_COPY_URL:
case TableAction.DOWNLOAD_COPY_PASSWORD:
case TableAction.DOWNLOAD_RESET:
case TableAction.DOWNLOAD_DLC:
case TableAction.DOWNLOAD_RESUME:
selectedLinks=(ArrayList<DownloadLink>)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.DOWNLOAD_DIR:
folder=(File)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.DOWNLOAD_BROWSE_LINK:
link=(DownloadLink)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.STOP_MARK:
obj=((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
}
}
 else if (e.getSource() instanceof TableAction) {
switch (e.getID()) {
case TableAction.SORT_ALL:
col=(Integer)((TableAction)e.getSource()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.DELETE:
selectedLinks=(ArrayList<DownloadLink>)((TableAction)e.getSource()).getProperty().getProperty("String_Node_Str");
break;
}
}
switch (e.getID()) {
case TableAction.FORCE_DOWNLOAD:
{
DownloadWatchDog.getInstance().forceDownload(selectedLinks);
break;
}
case TableAction.STOP_MARK:
DownloadWatchDog.getInstance().toggleStopMark(obj);
break;
case TableAction.EDIT_DIR:
final ArrayList<FilePackage> selected_packages2=new ArrayList<FilePackage>(selectedPackages);
new GuiRunnable<Object>(){
public Object runSave(){
JDFileChooser fc=new JDFileChooser();
fc.setApproveButtonText(JDL.L("String_Node_Str","String_Node_Str"));
fc.setFileSelectionMode(JDFileChooser.DIRECTORIES_ONLY);
fc.setCurrentDirectory(selected_packages2.get(0).getDownloadDirectory() != null ? new File(selected_packages2.get(0).getDownloadDirectory()) : JDUtilities.getResourceFile("String_Node_Str"));
if (fc.showOpenDialog(DownloadLinksPanel.this) == JDFileChooser.APPROVE_OPTION) {
File ret=fc.getSelectedFile();
if (ret != null) {
for (int i=0; i < selected_packages2.size(); i++) {
selected_packages2.get(i).setDownloadDirectory(ret.getAbsolutePath());
}
}
}
return null;
}
}
.start();
break;
case TableAction.EDIT_NAME:
String name=UserIO.getInstance().requestInputDialog(0,JDL.L("String_Node_Str","String_Node_Str"),selectedPackages.get(0).getName());
if (name != null) {
for (int i=0; i < selectedPackages.size(); i++) {
selectedPackages.get(i).setName(name);
}
}
break;
case TableAction.DOWNLOAD_RESUME:
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).getLinkStatus().setStatus(LinkStatus.TODO);
selectedLinks.get(i).getLinkStatus().resetWaitTime();
selectedLinks.get(i).getLinkStatus().setStatusText(JDL.L("String_Node_Str","String_Node_Str"));
}
Set<String> hosts=DownloadLink.getHosterList(selectedLinks);
for (String host : hosts) {
DownloadWatchDog.getInstance().resetIPBlockWaittime(host);
DownloadWatchDog.getInstance().resetTempUnavailWaittime(host);
}
break;
case TableAction.DOWNLOAD_BROWSE_LINK:
if (link.getLinkType() == DownloadLink.LINKTYPE_NORMAL) {
try {
JLink.openURL(link.getBrowserUrl());
}
 catch (Exception e1) {
JDLogger.exception(e1);
}
}
break;
case TableAction.DOWNLOAD_DIR:
JDUtilities.openExplorer(folder);
break;
case TableAction.DOWNLOAD_DLC:
GuiRunnable<File> temp=new GuiRunnable<File>(){
public File runSave(){
JDFileChooser fc=new JDFileChooser("String_Node_Str");
fc.setFileFilter(new JDFileFilter(null,"String_Node_Str",true));
if (fc.showSaveDialog(SwingGui.getInstance().getMainFrame()) == JDFileChooser.APPROVE_OPTION) return fc.getSelectedFile();
return null;
}
}
;
File ret=temp.getReturnValue();
if (ret == null) return;
if (JDIO.getFileExtension(ret) == null || !JDIO.getFileExtension(ret).equalsIgnoreCase("String_Node_Str")) {
ret=new File(ret.getAbsolutePath() + "String_Node_Str");
}
JDUtilities.getController().saveDLC(ret,selectedLinks);
break;
case TableAction.DOWNLOAD_RESET:
final ArrayList<DownloadLink> links=selectedLinks;
new Thread(){
public void run(){
if (JDFlags.hasSomeFlags(UserIO.getInstance().requestConfirmDialog(0,JDL.L("String_Node_Str","String_Node_Str") + "String_Node_Str" + JDL.LF("String_Node_Str","String_Node_Str",links.size())+ "String_Node_Str"),UserIO.RETURN_OK,UserIO.RETURN_DONT_SHOW_AGAIN)) {
for (int i=0; i < links.size(); i++) {
links.get(i).reset();
}
}
}
}
.start();
break;
case TableAction.DOWNLOAD_COPY_PASSWORD:
string=getPasswordSelectedLinks(selectedLinks);
ClipboardHandler.getClipboard().copyTextToClipboard(string);
break;
case TableAction.DOWNLOAD_COPY_URL:
for (int i=0; i < selectedLinks.size(); i++) {
if (selectedLinks.get(i).getLinkType() == DownloadLink.LINKTYPE_NORMAL) {
String url=selectedLinks.get(i).getBrowserUrl();
if (!List.contains(url)) {
if (List.size() > 0) build.append("String_Node_Str");
List.add(url);
build.append(url);
}
}
}
string=build.toString();
ClipboardHandler.getClipboard().copyTextToClipboard(string);
break;
case TableAction.DOWNLOAD_PRIO:
int prio=(Integer)prop.get("String_Node_Str");
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setPriority(prio);
}
DownloadController.getInstance().fireDownloadLinkUpdate(selectedLinks);
break;
case TableAction.CHECK:
LinkCheck.getLinkChecker().checkLinks(selectedLinks,true);
LinkCheck.getLinkChecker().getBroadcaster().addListener(DownloadLinksPanel.this);
break;
case TableAction.SORT_ALL:
if (DownloadController.getInstance().size() == 1) {
DownloadController.getInstance().getPackages().get(0).sort(col);
}
 else sort(col);
break;
case TableAction.SORT:
if (selectedLinks.size() > 0) {
selectedLinks.get(0).getFilePackage().sort(col);
break;
}
for (int i=0; i < selectedPackages.size(); i++) {
selectedPackages.get(i).sort(col);
}
break;
case TableAction.DE_ACTIVATE:
Boolean b=(Boolean)prop.get("String_Node_Str");
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setEnabled(b);
}
JDUtilities.getDownloadController().fireStructureUpdate();
break;
case TableAction.NEW_PACKAGE:
fp=selectedLinks.get(0).getFilePackage();
string=UserIO.getInstance().requestInputDialog(0,JDL.L("String_Node_Str","String_Node_Str"),fp.getName());
if (string != null) {
FilePackage nfp=FilePackage.getInstance();
nfp.setName(string);
nfp.setDownloadDirectory(fp.getDownloadDirectory());
nfp.setExtractAfterDownload(fp.isExtractAfterDownload());
nfp.setComment(fp.getComment());
for (DownloadLink link2 : selectedLinks) {
FilePackage fp2=link2.getFilePackage();
link2.addSourcePluginPassword(fp2.getPassword());
}
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setFilePackage(nfp);
}
if (GUIUtils.getConfig().getBooleanProperty(JDGuiConstants.PARAM_INSERT_NEW_LINKS_AT,false)) {
JDUtilities.getDownloadController().addPackageAt(nfp,0,0);
}
 else {
JDUtilities.getDownloadController().addPackage(nfp);
}
}
break;
case TableAction.SET_PW:
String pw=UserIO.getInstance().requestInputDialog(0,JDL.L("String_Node_Str","String_Node_Str"),null);
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setProperty("String_Node_Str",pw);
}
break;
case TableAction.DELETE:
{
if (JDFlags.hasSomeFlags(UserIO.getInstance().requestConfirmDialog(UserIO.DONT_SHOW_AGAIN | UserIO.DONT_SHOW_AGAIN_IGNORES_CANCEL,JDL.L("String_Node_Str","String_Node_Str") + "String_Node_Str" + JDL.LF("String_Node_Str","String_Node_Str",selectedLinks.size())+ "String_Node_Str"),UserIO.RETURN_OK,UserIO.RETURN_DONT_SHOW_AGAIN)) {
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setEnabled(false);
}
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).deleteFile(true,false);
selectedLinks.get(i).getFilePackage().remove(selectedLinks.get(i));
}
}
return;
}
case TableAction.DELETEFILE:
{
int counter=0;
for (DownloadLink tmp : selectedLinks) {
if (tmp.existsFile()) counter++;
}
if (JDFlags.hasSomeFlags(UserIO.getInstance().requestConfirmDialog(UserIO.DONT_SHOW_AGAIN | UserIO.DONT_SHOW_AGAIN_IGNORES_CANCEL,JDL.L("String_Node_Str","String_Node_Str") + "String_Node_Str" + JDL.LF("String_Node_Str","String_Node_Str",selectedLinks.size())+ "String_Node_Str"+ "String_Node_Str"+ JDL.LF("String_Node_Str","String_Node_Str",counter)+ "String_Node_Str"),UserIO.RETURN_OK,UserIO.RETURN_DONT_SHOW_AGAIN)) {
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setEnabled(false);
}
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).deleteFile(true,true);
selectedLinks.get(i).getFilePackage().remove(selectedLinks.get(i));
}
}
return;
}
}
}
}
.start();
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void actionPerformed(final ActionEvent e){
  new Thread(){
    public void run(){
      this.setName("String_Node_Str");
      if (e.getSource() == DownloadLinksPanel.this.asyncUpdate) {
        fireTableTask();
        return;
      }
      ArrayList<FilePackage> selectedPackages=new ArrayList<FilePackage>();
      ArrayList<DownloadLink> selectedLinks=new ArrayList<DownloadLink>();
      HashMap<String,Object> prop=new HashMap<String,Object>();
      HashSet<String> List=new HashSet<String>();
      StringBuilder build=new StringBuilder();
      String string=null;
      Object obj=null;
      FilePackage fp=null;
      DownloadLink link=null;
      File folder=null;
      int col=0;
      if (e.getSource() instanceof JMenuItem) {
switch (e.getID()) {
case TableAction.EDIT_NAME:
case TableAction.EDIT_DIR:
          selectedPackages=(ArrayList<FilePackage>)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
        break;
case TableAction.SORT:
      col=(Integer)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
    selectedLinks=new ArrayList<DownloadLink>(DownloadLinksPanel.this.internalTable.getSelectedDownloadLinks());
  selectedPackages=new ArrayList<FilePackage>(DownloadLinksPanel.this.internalTable.getSelectedFilePackages());
break;
case TableAction.DOWNLOAD_PRIO:
case TableAction.DE_ACTIVATE:
prop=(HashMap<String,Object>)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
selectedLinks=(ArrayList<DownloadLink>)prop.get("String_Node_Str");
break;
case TableAction.DELETE:
case TableAction.FORCE_DOWNLOAD:
case TableAction.DELETEFILE:
case TableAction.SET_PW:
case TableAction.NEW_PACKAGE:
case TableAction.CHECK:
case TableAction.DOWNLOAD_COPY_URL:
case TableAction.DOWNLOAD_COPY_PASSWORD:
case TableAction.DOWNLOAD_RESET:
case TableAction.DOWNLOAD_DLC:
case TableAction.DOWNLOAD_RESUME:
selectedLinks=(ArrayList<DownloadLink>)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.DOWNLOAD_DIR:
folder=(File)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.DOWNLOAD_BROWSE_LINK:
link=(DownloadLink)((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.STOP_MARK:
obj=((TableAction)((JMenuItem)e.getSource()).getAction()).getProperty().getProperty("String_Node_Str");
break;
}
}
 else if (e.getSource() instanceof TableAction) {
switch (e.getID()) {
case TableAction.SORT_ALL:
col=(Integer)((TableAction)e.getSource()).getProperty().getProperty("String_Node_Str");
break;
case TableAction.DELETE:
selectedLinks=(ArrayList<DownloadLink>)((TableAction)e.getSource()).getProperty().getProperty("String_Node_Str");
break;
}
}
switch (e.getID()) {
case TableAction.FORCE_DOWNLOAD:
{
DownloadWatchDog.getInstance().forceDownload(selectedLinks);
break;
}
case TableAction.STOP_MARK:
DownloadWatchDog.getInstance().toggleStopMark(obj);
break;
case TableAction.EDIT_DIR:
final ArrayList<FilePackage> selected_packages2=new ArrayList<FilePackage>(selectedPackages);
new GuiRunnable<Object>(){
public Object runSave(){
JDFileChooser fc=new JDFileChooser();
fc.setApproveButtonText(JDL.L("String_Node_Str","String_Node_Str"));
fc.setFileSelectionMode(JDFileChooser.DIRECTORIES_ONLY);
fc.setCurrentDirectory(selected_packages2.get(0).getDownloadDirectory() != null ? new File(selected_packages2.get(0).getDownloadDirectory()) : JDUtilities.getResourceFile("String_Node_Str"));
if (fc.showOpenDialog(DownloadLinksPanel.this) == JDFileChooser.APPROVE_OPTION) {
File ret=fc.getSelectedFile();
if (ret != null) {
for (int i=0; i < selected_packages2.size(); i++) {
selected_packages2.get(i).setDownloadDirectory(ret.getAbsolutePath());
}
}
}
return null;
}
}
.start();
break;
case TableAction.EDIT_NAME:
String name=UserIO.getInstance().requestInputDialog(0,JDL.L("String_Node_Str","String_Node_Str"),selectedPackages.get(0).getName());
if (name != null) {
for (int i=0; i < selectedPackages.size(); i++) {
selectedPackages.get(i).setName(name);
}
}
break;
case TableAction.DOWNLOAD_RESUME:
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).getLinkStatus().setStatus(LinkStatus.TODO);
selectedLinks.get(i).getLinkStatus().resetWaitTime();
selectedLinks.get(i).getLinkStatus().setStatusText(JDL.L("String_Node_Str","String_Node_Str"));
}
Set<String> hosts=DownloadLink.getHosterList(selectedLinks);
for (String host : hosts) {
DownloadWatchDog.getInstance().resetIPBlockWaittime(host);
DownloadWatchDog.getInstance().resetTempUnavailWaittime(host);
}
break;
case TableAction.DOWNLOAD_BROWSE_LINK:
if (link.getLinkType() == DownloadLink.LINKTYPE_NORMAL) {
try {
JLink.openURL(link.getBrowserUrl());
}
 catch (Exception e1) {
JDLogger.exception(e1);
}
}
break;
case TableAction.DOWNLOAD_DIR:
JDUtilities.openExplorer(folder);
break;
case TableAction.DOWNLOAD_DLC:
GuiRunnable<File> temp=new GuiRunnable<File>(){
public File runSave(){
JDFileChooser fc=new JDFileChooser("String_Node_Str");
fc.setFileFilter(new JDFileFilter(null,"String_Node_Str",true));
if (fc.showSaveDialog(SwingGui.getInstance().getMainFrame()) == JDFileChooser.APPROVE_OPTION) return fc.getSelectedFile();
return null;
}
}
;
File ret=temp.getReturnValue();
if (ret == null) return;
if (JDIO.getFileExtension(ret) == null || !JDIO.getFileExtension(ret).equalsIgnoreCase("String_Node_Str")) {
ret=new File(ret.getAbsolutePath() + "String_Node_Str");
}
JDUtilities.getController().saveDLC(ret,selectedLinks);
break;
case TableAction.DOWNLOAD_RESET:
final ArrayList<DownloadLink> links=selectedLinks;
new Thread(){
public void run(){
if (JDFlags.hasSomeFlags(UserIO.getInstance().requestConfirmDialog(0,JDL.L("String_Node_Str","String_Node_Str") + "String_Node_Str" + JDL.LF("String_Node_Str","String_Node_Str",links.size())+ "String_Node_Str"),UserIO.RETURN_OK,UserIO.RETURN_DONT_SHOW_AGAIN)) {
for (int i=0; i < links.size(); i++) {
links.get(i).reset();
}
}
}
}
.start();
break;
case TableAction.DOWNLOAD_COPY_PASSWORD:
string=getPasswordSelectedLinks(selectedLinks);
ClipboardHandler.getClipboard().copyTextToClipboard(string);
break;
case TableAction.DOWNLOAD_COPY_URL:
for (int i=0; i < selectedLinks.size(); i++) {
if (selectedLinks.get(i).getLinkType() == DownloadLink.LINKTYPE_NORMAL) {
String url=selectedLinks.get(i).getBrowserUrl();
if (!List.contains(url)) {
if (List.size() > 0) build.append("String_Node_Str");
List.add(url);
build.append(url);
}
}
}
string=build.toString();
ClipboardHandler.getClipboard().copyTextToClipboard(string);
break;
case TableAction.DOWNLOAD_PRIO:
int prio=(Integer)prop.get("String_Node_Str");
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setPriority(prio);
}
DownloadController.getInstance().fireDownloadLinkUpdate(selectedLinks);
break;
case TableAction.CHECK:
LinkCheck.getLinkChecker().checkLinks(selectedLinks,true);
LinkCheck.getLinkChecker().getBroadcaster().addListener(DownloadLinksPanel.this);
break;
case TableAction.SORT_ALL:
if (DownloadController.getInstance().size() == 1) {
DownloadController.getInstance().getPackages().get(0).sort(col);
}
 else sort(col);
break;
case TableAction.SORT:
if (selectedLinks.size() > 0) {
selectedLinks.get(0).getFilePackage().sort(col);
break;
}
for (int i=0; i < selectedPackages.size(); i++) {
selectedPackages.get(i).sort(col);
}
break;
case TableAction.DE_ACTIVATE:
Boolean b=(Boolean)prop.get("String_Node_Str");
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setEnabled(b);
}
JDUtilities.getDownloadController().fireStructureUpdate();
break;
case TableAction.NEW_PACKAGE:
fp=selectedLinks.get(0).getFilePackage();
string=UserIO.getInstance().requestInputDialog(0,JDL.L("String_Node_Str","String_Node_Str"),fp.getName());
if (string != null) {
FilePackage nfp=FilePackage.getInstance();
nfp.setName(string);
nfp.setDownloadDirectory(fp.getDownloadDirectory());
nfp.setExtractAfterDownload(fp.isExtractAfterDownload());
nfp.setComment(fp.getComment());
for (DownloadLink link2 : selectedLinks) {
FilePackage fp2=link2.getFilePackage();
link2.addSourcePluginPassword(fp2.getPassword());
}
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setFilePackage(nfp);
}
if (GUIUtils.getConfig().getBooleanProperty(JDGuiConstants.PARAM_INSERT_NEW_LINKS_AT,false)) {
JDUtilities.getDownloadController().addPackageAt(nfp,0,0);
}
 else {
JDUtilities.getDownloadController().addPackage(nfp);
}
}
break;
case TableAction.SET_PW:
String pw=UserIO.getInstance().requestInputDialog(0,JDL.L("String_Node_Str","String_Node_Str"),null);
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setProperty("String_Node_Str",pw);
}
break;
case TableAction.DELETE:
{
if (selectedLinks.size() > 0 && JDFlags.hasSomeFlags(UserIO.getInstance().requestConfirmDialog(UserIO.DONT_SHOW_AGAIN | UserIO.DONT_SHOW_AGAIN_IGNORES_CANCEL,JDL.L("String_Node_Str","String_Node_Str") + "String_Node_Str" + JDL.LF("String_Node_Str","String_Node_Str",selectedLinks.size())+ "String_Node_Str"),UserIO.RETURN_OK,UserIO.RETURN_DONT_SHOW_AGAIN)) {
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setEnabled(false);
}
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).deleteFile(true,false);
selectedLinks.get(i).getFilePackage().remove(selectedLinks.get(i));
}
}
return;
}
case TableAction.DELETEFILE:
{
if (selectedLinks.size() > 0) {
int counter=0;
for (DownloadLink tmp : selectedLinks) {
if (tmp.existsFile()) counter++;
}
if (JDFlags.hasSomeFlags(UserIO.getInstance().requestConfirmDialog(UserIO.DONT_SHOW_AGAIN | UserIO.DONT_SHOW_AGAIN_IGNORES_CANCEL,JDL.L("String_Node_Str","String_Node_Str") + "String_Node_Str" + JDL.LF("String_Node_Str","String_Node_Str",selectedLinks.size())+ "String_Node_Str"+ "String_Node_Str"+ JDL.LF("String_Node_Str","String_Node_Str",counter)+ "String_Node_Str"),UserIO.RETURN_OK,UserIO.RETURN_DONT_SHOW_AGAIN)) {
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).setEnabled(false);
}
for (int i=0; i < selectedLinks.size(); i++) {
selectedLinks.get(i).deleteFile(true,true);
selectedLinks.get(i).getFilePackage().remove(selectedLinks.get(i));
}
}
}
return;
}
}
}
}
.start();
}