Commit 5fc5a75a authored by rbioteau's avatar rbioteau
Browse files


Do not delete folder (only files) when applying a look n feel
parent 27b7ea65
......@@ -36,6 +36,7 @@ import;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceVisitor;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Path;
......@@ -495,9 +496,17 @@ public class ApplicationResourceFileStore extends AbstractFileStore implements I
public void clear() {
try {
for (final IResource toDelete : getResourcesApplicationFolder().members()) {
toDelete.delete(true, Repository.NULL_PROGRESS_MONITOR);
getResourcesApplicationFolder().accept(new IResourceVisitor() {
public boolean visit(IResource resource) throws CoreException {
if (resource instanceof IFile) {
resource.delete(true, Repository.NULL_PROGRESS_MONITOR);
BonitaStudioLog.debug(resource.getName() + " has been deleted.", Activator.PLUGIN_ID);
return true;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment