19 package org.sleuthkit.autopsy.corecomponentinterfaces;
21 import java.util.Collection;
22 import java.util.Iterator;
24 import java.util.logging.Level;
26 import org.openide.util.NbBundle;
28 import org.openide.util.Lookup;
29 import org.openide.windows.Mode;
30 import org.openide.windows.TopComponent;
31 import org.openide.windows.WindowManager;
44 "CoreComponentControl.CTL_DirectoryTreeTopComponent");
46 "CoreComponentControl.CTL_FavoritesTopComponent");
56 Collection<? extends DataExplorer> dataExplorers = Lookup.getDefault().lookupAll(
DataExplorer.class);
58 TopComponent explorerWin = de.getTopComponent();
59 Mode m = WindowManager.getDefault().findMode(
"explorer");
61 m.dockInto(explorerWin);
63 logger.log(Level.WARNING,
"Could not find explorer mode and dock explorer window");
70 Mode m = WindowManager.
getDefault().findMode(
"output");
72 m.dockInto(contentWin);
74 logger.log(Level.WARNING,
"Could not find output mode and dock content window");
89 WindowManager wm = WindowManager.getDefault();
90 Set<? extends Mode> modes = wm.getModes();
91 Iterator<? extends Mode> iter = wm.getModes().iterator();
93 TopComponent directoryTree = null;
94 TopComponent favorites = null;
96 while (iter.hasNext()) {
97 Mode mode = iter.next();
98 for (TopComponent tc : mode.getTopComponents()) {
99 tcName = tc.getName();
100 if (tcName == null) {
101 logger.log(Level.INFO,
"tcName was null");
105 if (DIRECTORY_TREE.equals(tcName)) {
107 }
else if (FAVORITES.equals(tcName)) {
115 if (directoryTree != null) {
116 directoryTree.close();
118 if (favorites != null) {
static final String DIRECTORY_TREE
static synchronized DataContentTopComponent getDefault()
static void openCoreWindows()
static synchronized DataContentTopComponent findInstance()
static void closeCoreWindows()
static final Logger logger
synchronized static Logger getLogger(String name)
static final String FAVORITES