1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

[222830] ArrayIndexOutOfBoundsException on Restore Defaults on Folder User Actions

This commit is contained in:
Kevin Doyle 2008-04-02 21:20:06 +00:00
parent 69c14379e8
commit c8f6ec9a0b

View file

@ -10,6 +10,7 @@ package org.eclipse.rse.internal.useractions.files.uda;
* Contributors:
* IBM Corporation - initial API and implementation
* Xuan Chen (IBM) - [222263] Need to provide a PropertySet Adapter for System Team View (cleanup some use action stuff)
* Kevin Doyle (IBM) - [222830] ArrayIndexOutOfBoundsException on Restore Defaults on Folder User Actions
*******************************************************************************/
import java.text.DateFormat;
import java.text.SimpleDateFormat;
@ -575,11 +576,13 @@ public class UDActionSubsystemFiles extends SystemUDActionSubsystem {
element.setShow(true);
element.setSingleSelection(actionsArray[match][2].equals("true")); //$NON-NLS-1$
element.setCollect(actionsArray[match][3].equals("true")); //$NON-NLS-1$
if (domain == DOMAIN_FOLDER)
if (domain == DOMAIN_FOLDER) {
element.setFileTypes(new String[] { "ALL" }); //$NON-NLS-1$
else
element.setCommand(actionsArray[match][4]);
} else {
element.setFileTypes(convertStringToArray(actionsArray[match][4]));
element.setCommand(actionsArray[match][5]);
element.setCommand(actionsArray[match][5]);
}
ok = true;
}
return ok;