mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -112,7 +112,7 @@ public class InspectionResultsView extends JPanel implements Disposable, DataPro
|
||||
myScope = globalInspectionContext.getCurrentScope();
|
||||
myGlobalInspectionContext = globalInspectionContext;
|
||||
myProvider = provider;
|
||||
myTree = new InspectionTree(globalInspectionContext, this);
|
||||
myTree = new InspectionTree(this);
|
||||
|
||||
mySplitter = new OnePixelSplitter(false, AnalysisUIOptions.getInstance(globalInspectionContext.getProject()).SPLITTER_PROPORTION);
|
||||
mySplitter.setFirstComponent(ScrollPaneFactory.createScrollPane(myTree, SideBorder.LEFT));
|
||||
|
||||
@@ -66,8 +66,7 @@ public class InspectionTree extends Tree {
|
||||
private final OccurenceNavigator myOccurenceNavigator = new MyOccurrenceNavigator();
|
||||
private final InspectionResultsView myView;
|
||||
|
||||
public InspectionTree(@NotNull GlobalInspectionContextImpl context,
|
||||
@NotNull InspectionResultsView view) {
|
||||
public InspectionTree(@NotNull InspectionResultsView view) {
|
||||
myView = view;
|
||||
myModel = new InspectionTreeModel();
|
||||
Disposer.register(view, myModel);
|
||||
@@ -93,7 +92,7 @@ public class InspectionTree extends Tree {
|
||||
@Override
|
||||
public void keyPressed(KeyEvent e) {
|
||||
if (e.getKeyCode() == KeyEvent.VK_ENTER) {
|
||||
if (myView != null && !myView.isDisposed()) {
|
||||
if (!myView.isDisposed()) {
|
||||
OpenSourceUtil.openSourcesFrom(DataManager.getInstance().getDataContext(myView), false);
|
||||
}
|
||||
}
|
||||
@@ -114,7 +113,7 @@ public class InspectionTree extends Tree {
|
||||
EdtInvocationManager.getInstance().invokeLater(() -> {
|
||||
expandPath(new TreePath(myModel.getRoot()));
|
||||
SmartExpander.installOn(InspectionTree.this);
|
||||
if (myView != null && !myView.isDisposed()) {
|
||||
if (!myView.isDisposed()) {
|
||||
myView.syncRightPanel();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user