Go to the documentation of this file.
19package org.sleuthkit.autopsy.menuactions;
21import java.awt.event.ActionEvent;
22import javax.swing.AbstractAction;
23import org.openide.windows.TopComponent;
24import org.openide.windows.WindowManager;
29class 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();
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.