}
@Override
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof DirectoryItem) {
DirectoryItem item = (DirectoryItem) parentElement;
if (Controller.getInstance().getPreferenceStore().getString(PreferenceConstants.DISKVIEW_DISPLAY_MODE).equals("0")) { //$NON-NLS-1$
return concat(item.getDirectoryList().toArray(), item.getFileList().toArray());
} else {
return concat(item.getFileList().toArray(), item.getDirectoryList().toArray());
}
}
return EMPTY_ARRAY;
}