1 package org.telscenter.pas.authortool.actions;
2
3 import java.awt.event.ActionEvent;
4
5 import javax.swing.AbstractAction;
6 import javax.swing.ImageIcon;
7
8 import org.telscenter.pas.authortool.cards.CardProvider;
9 import org.telscenter.pas.authortool.cards.customizer.pas.PasCustomizerCardX;
10 import org.telscenter.pas.authortool.context.CurnitAuthoringContext;
11
12 public class PasCustomizerAction extends AbstractAction {
13
14 /***
15 *
16 */
17 private static final long serialVersionUID = 1L;
18
19 private CurnitAuthoringContext curnitAuthoringContext;
20
21 public PasCustomizerAction(final CurnitAuthoringContext cac) {
22 super("Customizer", new ImageIcon(PasCustomizerAction.class
23 .getResource("icons/customizer16.png")));
24 curnitAuthoringContext = cac;
25 this.putValue(SHORT_DESCRIPTION, "Customize a PAS Project.");
26 }
27
28 public void actionPerformed(final ActionEvent e) {
29 final CardProvider cardProvider = curnitAuthoringContext
30 .getCardProvider();
31 cardProvider.showCard(PasCustomizerCardX.class);
32 }
33 }