mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Removed debug statement
This commit is contained in:
@@ -26,9 +26,10 @@ public interface ComponentLoadedListener {
|
||||
/**
|
||||
* Called when the component is made displayable
|
||||
*
|
||||
* @param windowManager the window manager associated with the loaded component
|
||||
* @param provider the provider that is the parent of the given component; null if this
|
||||
* component is not the child of a component provider
|
||||
* @param windowManager the window manager associated with the loaded component; null if the
|
||||
* component for this listener is not parented by a docking window manager
|
||||
* @param provider the provider that is the parent of the given component; null if the
|
||||
* component for this listener is not the child of a component provider
|
||||
*/
|
||||
public void componentLoaded(DockingWindowManager windowManager, ComponentProvider provider);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,6 @@ import ghidra.util.datastruct.*;
|
||||
import ghidra.util.exception.AssertException;
|
||||
import ghidra.util.task.SwingUpdateManager;
|
||||
import util.CollectionUtils;
|
||||
import utilities.util.reflection.ReflectionUtilities;
|
||||
|
||||
/**
|
||||
* Manages the "Docking" arrangement of a set of components and actions. The components can be "docked"
|
||||
@@ -2237,33 +2236,8 @@ public class DockingWindowManager implements PropertyChangeListener, Placeholder
|
||||
|
||||
component.removeHierarchyListener(this);
|
||||
DockingWindowManager dwm = getInstance(component);
|
||||
if (dwm != null) {
|
||||
ComponentProvider provider = dwm.getComponentProvider(component);
|
||||
listener.componentLoaded(dwm, provider);
|
||||
return;
|
||||
}
|
||||
|
||||
// Unable to find the manager. This can happen during testing; only report if
|
||||
// it is unexpected
|
||||
maybeReportMissingManager();
|
||||
}
|
||||
|
||||
private void maybeReportMissingManager() {
|
||||
if (instances.isEmpty()) {
|
||||
return; // not manager means no tool; assume testing
|
||||
}
|
||||
|
||||
if (instances.size() == 1) {
|
||||
DockingWindowManager dwm = instances.get(0);
|
||||
if (!dwm.isVisible()) {
|
||||
return; // not showing; assume testing with tool not shown
|
||||
}
|
||||
}
|
||||
|
||||
Msg.debug(DockingWindowManager.class,
|
||||
"Unable to find Docking Window Manager for " +
|
||||
component.getClass().getSimpleName(),
|
||||
ReflectionUtilities.createJavaFilteredThrowable());
|
||||
ComponentProvider provider = dwm.getComponentProvider(component);
|
||||
listener.componentLoaded(dwm, provider);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user