Skip to content
Snippets Groups Projects
Commit a57ac5fb authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Updated the kieker-jar; Used the new methods of the registry to remove unnecessary elements

parent f9a03f38
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -863,6 +863,8 @@ public final class CurrentAnalysisEditorBean { ...@@ -863,6 +863,8 @@ public final class CurrentAnalysisEditorBean {
conn.getOutputPort().setRepository(null); conn.getOutputPort().setRepository(null);
} }
this.repositoryMap.remove(repository);
if (this.selectedRepository == repository) { if (this.selectedRepository == repository) {
this.selectedRepository = null; // NOPMD this.selectedRepository = null; // NOPMD
} }
...@@ -901,7 +903,17 @@ public final class CurrentAnalysisEditorBean { ...@@ -901,7 +903,17 @@ public final class CurrentAnalysisEditorBean {
} }
} }
this.filter2repositoryConnections.removeAll(fRDelList); this.filter2repositoryConnections.removeAll(fRDelList);
this.pluginMap.remove(plugin);
// Remove the ports from the registry
for (final MIPort mPort : plugin.getOutputPorts()) {
this.portMap.remove(mPort);
}
if (plugin instanceof MIFilter) {
for (final MIPort mPort : ((MIFilter) plugin).getInputPorts()) {
this.portMap.remove(mPort);
}
}
if (this.selectedPlugin == plugin) { if (this.selectedPlugin == plugin) {
this.selectedPlugin = null; // NOPMD this.selectedPlugin = null; // NOPMD
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment