1 package org.enhydra.shark.swingclient.workflowadmin.definition.actions; 2 3 4 5 import java.awt.event.ActionEvent ; 6 import org.enhydra.shark.swingclient.ActionBase; 7 import org.enhydra.shark.swingclient.ResourceManager; 8 import org.enhydra.shark.swingclient.SplashScreen; 9 import org.enhydra.shark.swingclient.workflowadmin.SharkAdmin; 10 import org.enhydra.shark.swingclient.workflowadmin.definition.PackageManagement; 11 12 18 public class SynchronizePackageCache extends ActionBase { 19 20 public SynchronizePackageCache(PackageManagement pdm) { 21 super(pdm); 22 } 23 24 public void actionPerformed(ActionEvent 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 ex) { 33 ex.printStackTrace(); 34 } 35 ss.hide(); 36 } 37 38 } 39 | Popular Tags |