KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mc4j > console > DisplayConnectionExplorerAction


1 /*
2  * Copyright 2002-2004 Greg Hinkle
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.mc4j.console;
18
19 import org.openide.util.HelpCtx;
20 import org.openide.util.actions.SystemAction;
21 import org.openide.windows.TopComponent;
22
23 import java.awt.event.ActionEvent JavaDoc;
24
25 /**
26  *
27  *
28  * @author Greg Hinkle (ghinkle@users.sourceforge.net), February 2004
29  * @version $Revision: 494 $($Author: ghinkl $ / $Date: 2004-10-13 01:05:33 -0400 (Wed, 13 Oct 2004) $)
30  */

31 public class DisplayConnectionExplorerAction extends SystemAction {
32
33     public String JavaDoc getName() {
34         return "Display Connection Explorer";
35     }
36
37     public HelpCtx getHelpCtx() {
38         return null; //To change body of implemented methods use File | Settings | File Templates.
39
}
40
41     public void actionPerformed(ActionEvent JavaDoc ev) {
42         TopComponent component = ConnectionExplorer.getDefault();
43     }
44 }
45
Popular Tags