1 23 package org.objectweb.clif.scenario.util.isac.gui.action; 24 25 import java.net.URL ; 26 27 import org.apache.log4j.Category; 28 import org.eclipse.jface.action.Action; 29 import org.eclipse.jface.resource.ImageDescriptor; 30 import org.eclipse.jface.window.ApplicationWindow; 31 import org.objectweb.clif.scenario.util.isac.FileName; 32 import org.objectweb.clif.scenario.util.isac.loadprofile.LoadProfileManager; 33 39 public class EditRampDescriptionAction extends Action { 40 43 ApplicationWindow window; 44 static Category cat = Category.getInstance(EditRampDescriptionAction.class.getName()); 45 46 50 public EditRampDescriptionAction(ApplicationWindow w) { 51 cat.debug("-> constructor") ; 52 this.window = w; 53 this.setText("Edit Ramp Description"); 54 this.setToolTipText("Edit the current ramp description selected"); 55 try { 56 this.setImageDescriptor(ImageDescriptor.createFromURL( 57 new URL ("file:" + FileName.PASTE_ICON))); 58 } catch (Exception e) { 59 cat.warn("Unable to find icon file"); 60 } 61 } 62 63 public void run() { 64 cat.debug("-> run") ; 65 LoadProfileManager.getInstance().editGroupSelectedDescription() ; 66 } 67 68 } 69 | Popular Tags |