Skip to main content
Last updated January 26, 2012 15:46, by Merijn
Feedicon  

Delete project action

If you want to be able to delete your project use the following code:

private final class DemoDeleteOperation implements DeleteOperationImplementation {

        public void notifyDeleting() throws IOException {
        }

        public void notifyDeleted() throws IOException {
        }

        public List<FileObject> getMetadataFiles() {
            List<FileObject> dataFiles = new ArrayList<FileObject>();
            return dataFiles;
       }

        public List<FileObject> getDataFiles() {
            List<FileObject> dataFiles = new ArrayList<FileObject>();
            return dataFiles;
        }
    }
return the files you want to delete in getDataFiles and getMetadataFiles

Then put this deleteAction in the lookup of the project.

 
 
Close
loading
Please Confirm
Close