mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
run contentSelected only on add to selection (not remove)
This commit is contained in:
@@ -155,8 +155,10 @@ public class RunContentManagerImpl implements RunContentManager, Disposable {
|
||||
contentManager.addContentManagerListener(new ContentManagerAdapter() {
|
||||
@Override
|
||||
public void selectionChanged(final ContentManagerEvent event) {
|
||||
Content content = event.getContent();
|
||||
getSyncPublisher().contentSelected(content == null ? null : getRunContentDescriptorByContent(content), executor);
|
||||
if (event.getOperation() == ContentManagerEvent.ContentOperation.add) {
|
||||
Content content = event.getContent();
|
||||
getSyncPublisher().contentSelected(content == null ? null : getRunContentDescriptorByContent(content), executor);
|
||||
}
|
||||
}
|
||||
});
|
||||
myToolwindowIdToContentManagerMap.put(toolWindowId, contentManager);
|
||||
|
||||
Reference in New Issue
Block a user