mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup, prepare to fix WEB-9756 Quick evaluate expression popup: long values are cut and cannot be copy correctly
SimpleColoredComponent — add getFragmentTagAt AbstractBaseTagMouseListener — remove duplicated code
This commit is contained in:
@@ -27,6 +27,7 @@ import com.intellij.ui.components.JBLabel;
|
||||
import com.intellij.util.NullableFunction;
|
||||
import com.jetbrains.python.sdk.PythonSdkAdditionalData;
|
||||
import com.jetbrains.python.sdk.PythonSdkType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
import javax.swing.event.DocumentEvent;
|
||||
@@ -82,7 +83,7 @@ public class EditSdkDialog extends DialogWrapper {
|
||||
init();
|
||||
new ClickListener() {
|
||||
@Override
|
||||
public boolean onClick(MouseEvent e, int clickCount) {
|
||||
public boolean onClick(@NotNull MouseEvent e, int clickCount) {
|
||||
myAssociateCheckbox.setSelected(false);
|
||||
myAssociateCheckbox.setEnabled(true);
|
||||
myAssociateCheckbox.setText("Associate this environment with current project");
|
||||
|
||||
+2
-1
@@ -19,6 +19,7 @@ import com.intellij.ide.DataManager;
|
||||
import com.intellij.openapi.options.newEditor.OptionsEditor;
|
||||
import com.intellij.ui.ClickListener;
|
||||
import com.intellij.ui.components.JBLabel;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
@@ -36,7 +37,7 @@ public class PyConfigureInterpretersLinkPanel extends JPanel {
|
||||
myConfigureLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
|
||||
new ClickListener() {
|
||||
@Override
|
||||
public boolean onClick(MouseEvent e, int clickCount) {
|
||||
public boolean onClick(@NotNull MouseEvent e, int clickCount) {
|
||||
if (clickCount == 1) {
|
||||
final OptionsEditor optionsEditor = OptionsEditor.KEY.getData(DataManager.getInstance().getDataContext(parentPanel));
|
||||
if (optionsEditor != null) {
|
||||
|
||||
Reference in New Issue
Block a user