19 package org.sleuthkit.autopsy.menuactions;
21 import java.awt.event.ActionEvent;
22 import javax.swing.AbstractAction;
23 import org.openide.windows.TopComponent;
24 import org.openide.windows.WindowManager;
29 class OpenTopComponentAction
extends AbstractAction {
31 private TopComponent tc;
33 OpenTopComponentAction(TopComponent top) {
37 OpenTopComponentAction(String tcId) {
38 this.tc = WindowManager.getDefault().findTopComponent(tcId);
42 public void actionPerformed(ActionEvent e) {
47 if (!this.tc.isOpened()) {
50 this.tc.requestActive();