Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/aspectj/tools/ajde/netbeans/AJDebugAction.java


1   
2   /* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
3    *
4    * This file is part of the IDE support for the AspectJ(tm)
5    * programming language; see http://aspectj.org
6    *
7    * The contents of this file are subject to the Mozilla Public License
8    * Version 1.1 (the "License"); you may not use this file except in
9    * compliance with the License. You may obtain a copy of the License at
10   * either http://www.mozilla.org/MPL/ or http://aspectj.org/MPL/.
11   *
12   * Software distributed under the License is distributed on an "AS IS" basis,
13   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14   * for the specific language governing rights and limitations under the
15   * License.
16   *
17   * The Original Code is AspectJ.
18   *
19   * The Initial Developer of the Original Code is Xerox Corporation. Portions
20   * created by Xerox Corporation are Copyright (C) 1999-2002 Xerox Corporation.
21   * All Rights Reserved.
22   *
23   * Contributor(s): Phil Sager (psager@mb.sympatico.ca)
24   */
25  
26  package org.aspectj.tools.ajde.netbeans;
27  
28  import org.openide.util.HelpCtx;
29  import org.openide.util.NbBundle;
30  import org.openide.util.actions.CallbackSystemAction;
31  
32  /** Action that can always be invoked and work procedurally.
33   *
34   * @author  Phil Sager
35   */
36  public class AJDebugAction extends CallbackSystemAction {
37      
38      public void performAction() {
39          NbManager.INSTANCE.debug();
40      }
41      
42      public String getName() {
43          return NbBundle.getMessage(AJDebugAction.class, "LBL_DebugAction");
44      }
45      
46      protected String iconResource() {
47          return "/org/aspectj/ajde/resources/actions/debug.gif";
48      }
49      
50      public HelpCtx getHelpCtx() {
51          return HelpCtx.DEFAULT_HELP;
52          // If you will provide context help then use:
53          // return new HelpCtx (DebugAction.class);
54      }
55      
56      /** Perform extra initialization of this action's singleton. 
57       * PLEASE do not use constructors for this purpose! */
58        protected void initialize () {
59              super.setEnabled(false);
60        }
61      
62  }