mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup. Use ScrollingUtil
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.intellij.tasks.actions;
|
||||
@@ -29,7 +29,7 @@ import com.intellij.openapi.ui.popup.*;
|
||||
import com.intellij.openapi.util.Computable;
|
||||
import com.intellij.tasks.Task;
|
||||
import com.intellij.ui.EditorTextField;
|
||||
import com.intellij.ui.ListScrollingUtil;
|
||||
import com.intellij.ui.ScrollingUtil;
|
||||
import com.intellij.ui.SortedListModel;
|
||||
import com.intellij.ui.components.JBList;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -141,17 +141,17 @@ public abstract class SearchSupport<T extends Task> {
|
||||
|
||||
if ("selectNextRow".equals(action)) {
|
||||
if (ensureSelectionExists()) {
|
||||
ListScrollingUtil.moveDown(myList, e.getModifiersEx());
|
||||
ScrollingUtil.moveDown(myList, e.getModifiersEx());
|
||||
}
|
||||
}
|
||||
else if ("selectPreviousRow".equals(action)) {
|
||||
ListScrollingUtil.moveUp(myList, e.getModifiersEx());
|
||||
ScrollingUtil.moveUp(myList, e.getModifiersEx());
|
||||
}
|
||||
else if ("scrollDown".equals(action)) {
|
||||
ListScrollingUtil.movePageDown(myList);
|
||||
ScrollingUtil.movePageDown(myList);
|
||||
}
|
||||
else if ("scrollUp".equals(action)) {
|
||||
ListScrollingUtil.movePageUp(myList);
|
||||
ScrollingUtil.movePageUp(myList);
|
||||
}
|
||||
else if ((e.getKeyCode() == KeyEvent.VK_ENTER || e.getKeyCode() == KeyEvent.VK_TAB) && e.getModifiers() == 0) {
|
||||
hideCurrentPopup();
|
||||
|
||||
Reference in New Issue
Block a user