Skip to content

Commit

Permalink
Merge pull request #7757 from matthiasblaesing/lsp_navigator_panel
Browse files Browse the repository at this point in the history
Fix NavigatorPanelImpl for LSP Client after 47d411b
  • Loading branch information
matthiasblaesing authored Oct 1, 2024
2 parents bc6aea9 + 65c3acc commit 3013ef5
Showing 1 changed file with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,13 @@
*/
package org.netbeans.modules.lsp.client.bindings;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import org.eclipse.lsp4j.DocumentSymbol;
import org.eclipse.lsp4j.DocumentSymbolParams;
import org.eclipse.lsp4j.Range;
Expand All @@ -40,17 +34,10 @@
import org.netbeans.modules.lsp.client.LSPBindings;
import org.netbeans.modules.lsp.client.LSPBindings.BackgroundTask;
import org.netbeans.modules.lsp.client.Utils;
import org.netbeans.spi.navigator.NavigatorPanel;
import org.openide.explorer.ExplorerManager;
import org.openide.explorer.view.BeanTreeView;
import org.openide.filesystems.FileObject;
import org.openide.nodes.AbstractNode;
import org.openide.nodes.Children;
import org.openide.nodes.Node;
import org.openide.util.Lookup;
import org.openide.util.LookupEvent;
import org.openide.util.LookupListener;
import org.openide.util.NbBundle.Messages;

/**
*
Expand All @@ -64,12 +51,12 @@ public NavigatorPanelImpl() {

@Override
void addBackgroundTask(FileObject fo) {
LSPBindings.removeBackgroundTask(fo, this);
LSPBindings.addBackgroundTask(fo, this);
}

@Override
void removeBackgroundTask(FileObject fo) {
LSPBindings.addBackgroundTask(fo, this);
LSPBindings.removeBackgroundTask(fo, this);
}

@Override
Expand Down

0 comments on commit 3013ef5

Please sign in to comment.