Removed debug statement

This commit is contained in:
dragonmacher
2020-10-08 14:03:01 -04:00
parent 3cd26120a3
commit e4f61fa06d
2 changed files with 6 additions and 31 deletions

View File

@@ -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);
}

View File

@@ -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);
}
});