KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > corbaclient > workflowadmin > definition > actions > SynchronizePackageCache


1 package org.enhydra.shark.corbaclient.workflowadmin.definition.actions;
2
3
4
5 import java.awt.event.ActionEvent JavaDoc;
6 import org.enhydra.shark.corbaclient.ActionBase;
7 import org.enhydra.shark.corbaclient.ResourceManager;
8 import org.enhydra.shark.corbaclient.SplashScreen;
9 import org.enhydra.shark.corbaclient.workflowadmin.SharkAdmin;
10 import org.enhydra.shark.corbaclient.workflowadmin.definition.PackageManagement;
11
12 /**
13  * Synchronizes engine's XPDL cache.
14  *
15  * @author Sasa Bojanic
16  * @version 1.0
17  */

18 public class SynchronizePackageCache extends ActionBase {
19
20    public SynchronizePackageCache(PackageManagement pdm) {
21       super(pdm);
22    }
23
24    public void actionPerformed(ActionEvent JavaDoc e) {
25       PackageManagement pdm=(PackageManagement)actionPanel;
26       SplashScreen ss=pdm.getWorkflowAdmin().getSplashScreen();
27       ss.show("WaitImage",
28             pdm.getWorkflowAdmin().getFullUserName(),
29             ResourceManager.getLanguageDependentString("MessagePleaseWait"));
30       try {
31          SharkAdmin.getPackageAmin().synchronizeXPDLCache();
32       } catch (Exception JavaDoc ex) {
33          ex.printStackTrace();
34       }
35       ss.hide();
36    }
37
38 }
39
Popular Tags