Go to the documentation of this file.
19package org.sleuthkit.autopsy.corecomponentinterfaces;
21import java.util.Collection;
22import java.util.logging.Level;
23import org.openide.util.Lookup;
24import org.openide.util.NbBundle;
25import org.openide.windows.Mode;
26import org.openide.windows.TopComponent;
27import org.openide.windows.WindowManager;
28import org.sleuthkit.autopsy.corecomponents.DataContentTopComponent;
29import org.sleuthkit.autopsy.coreutils.Logger;
30import org.sleuthkit.autopsy.directorytree.DirectoryTreeTopComponent;
40 @NbBundle.Messages(
"CoreComponentControl.CTL_DirectoryTreeTopComponent=Directory Tree")
41 private static final String
DIRECTORY_TREE = Bundle.CoreComponentControl_CTL_DirectoryTreeTopComponent();
42 @NbBundle.Messages(
"CoreComponentControl.CTL_FavoritesTopComponent=Favorites")
43 private static final String
FAVORITES = Bundle.CoreComponentControl_CTL_FavoritesTopComponent();
59 TopComponent explorerWin = de.getTopComponent();
60 Mode explorerMode = WindowManager.getDefault().findMode(
"explorer");
61 if (explorerMode ==
null) {
62 logger.log(Level.WARNING,
"Could not find explorer mode and dock explorer window");
64 explorerMode.dockInto(explorerWin);
71 Mode outputMode = WindowManager.
getDefault().findMode(
"output");
72 if (outputMode ==
null) {
73 logger.log(Level.WARNING,
"Could not find output mode and dock content window");
75 outputMode.dockInto(contentWin);
90 TopComponent directoryTree =
null;
91 TopComponent favorites =
null;
92 final WindowManager windowManager = WindowManager.getDefault();
96 for (Mode mode : windowManager.getModes()) {
97 for (TopComponent tc : windowManager.getOpenedTopComponents(mode)) {
106 for (Mode mode : windowManager.getModes()) {
108 for (TopComponent tc : windowManager.getOpenedTopComponents(mode)) {
109 String tcName = tc.getName();
111 if (tcName ==
null) {
112 logger.log(Level.INFO,
"tcName was null");
125 if (directoryTree !=
null) {
126 directoryTree.close();
128 if (favorites !=
null) {
static void openCoreWindows()
static final Logger logger
static final String DIRECTORY_TREE
static final String FAVORITES
static void closeCoreWindows()
static synchronized DataContentTopComponent getDefault()
static synchronized DataContentTopComponent findInstance()
synchronized static Logger getLogger(String name)
static synchronized DirectoryTreeTopComponent findInstance()
static synchronized DirectoryTreeTopComponent getDefault()
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.