KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > bull > eclipse > jonas > actions > rar > BuildRarActionDelegate


1 package com.bull.eclipse.jonas.actions.rar;
2
3 /*
4  * (c) Copyright Bull SA 2003.
5  * All Rights Reserved.
6  */

7
8 import org.eclipse.core.resources.IFolder;
9 import org.eclipse.core.resources.IResource;
10
11 import com.bull.eclipse.jonas.actions.JonasFolderAbstractActionDelegate;
12 import com.bull.eclipse.jonas.utils.RarManagement;
13
14
15 public class BuildRarActionDelegate extends JonasFolderAbstractActionDelegate {
16  
17     public boolean doActionOn(IFolder fold) throws Exception JavaDoc {
18         RarManagement.buildRarFile(fold.getLocation().toOSString(),fold.getProject());
19         fold.getParent().getProject().refreshLocal( IResource.DEPTH_INFINITE, null );
20         return true;
21     }
22
23
24 }
25
Popular Tags