diff --git a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/view/CurrentAnalysisEditorBean.java b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/view/CurrentAnalysisEditorBean.java index 46546c7d184a90eef105792ce802f0b3cc95a24d..8d924e7e8e1c5c8b5d37887742d718243c82336f 100644 --- a/Kieker.WebGUI/src/main/java/kieker/webgui/beans/view/CurrentAnalysisEditorBean.java +++ b/Kieker.WebGUI/src/main/java/kieker/webgui/beans/view/CurrentAnalysisEditorBean.java @@ -660,7 +660,9 @@ public final class CurrentAnalysisEditorBean { // Update our class loader and the available plugins & repositories this.reloadClassLoader(); this.reloadClassesAndMethods(); - this.addContentsToToolPalette(lib); + + // We have to reinitialize the tool palette completely! This is necessary as some of the already existing classes could need the newly loaded classes. + this.initializeToolPalette(); } catch (final LibraryAlreadyExistingException ex) { CurrentAnalysisEditorBean.LOG.info("A library with the same name exists already.", ex); CurrentAnalysisEditorBean.showMessage(FacesMessage.SEVERITY_WARN, "A library with the same name exists already.");