From 1f0792a1c8f56d53d078f524c8e70087655fd168 Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Mon, 3 Aug 2020 13:29:20 +0300 Subject: [PATCH] removed obsolete get jdwp libs dialog (there's no easy way to get them now anyway) IDEA-CR-65735 GitOrigin-RevId: be97d26fc2c4ba982ad24a769f31fdc11a9acd64 --- .../intellij/debugger/ui/GetJPDADialog.java | 80 ------------------- 1 file changed, 80 deletions(-) delete mode 100644 java/debugger/impl/src/com/intellij/debugger/ui/GetJPDADialog.java diff --git a/java/debugger/impl/src/com/intellij/debugger/ui/GetJPDADialog.java b/java/debugger/impl/src/com/intellij/debugger/ui/GetJPDADialog.java deleted file mode 100644 index 8bd1768e2b6a..000000000000 --- a/java/debugger/impl/src/com/intellij/debugger/ui/GetJPDADialog.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2000-2012 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 - * - * 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. - */ - -/* - * @author: Eugene Zhuravlev - */ -package com.intellij.debugger.ui; - -import com.intellij.debugger.JavaDebuggerBundle; -import com.intellij.ide.BrowserUtil; -import com.intellij.openapi.ui.DialogWrapper; -import com.intellij.openapi.util.NlsSafe; -import com.intellij.ui.DoubleClickListener; -import com.intellij.ui.JBColor; -import org.jetbrains.annotations.NonNls; -import org.jetbrains.annotations.NotNull; - -import javax.swing.*; -import java.awt.*; -import java.awt.event.MouseEvent; - -public class GetJPDADialog extends DialogWrapper { - private static final @NlsSafe String JPDA_URL = "http://java.sun.com/products/jpda"; - - public GetJPDADialog() { - super(false); - setTitle(JavaDebuggerBundle.message("get.jpda.dialog.title")); - setResizable(false); - init(); - } - - @Override - protected Action @NotNull [] createActions() { - return new Action[]{getOKAction()}; - } - - @Override - protected JComponent createCenterPanel() { - final JPanel _panel1 = new JPanel(new BorderLayout()); - - JPanel _panel2 = new JPanel(new BorderLayout()); - _panel2.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); - //"Debug libraries are missig from JDK home.\nIn order for debugger to start, the libraries should be installed.\nPlease visit http://java.sun.com/products/jpda" - JLabel label1 = new JLabel(JavaDebuggerBundle.message("label.get.jpda.dialog.prompt")); - //label1.setForeground(Color.black); - JLabel label2 = new JLabel(JPDA_URL); - new DoubleClickListener() { - @Override - protected boolean onDoubleClick(@NotNull MouseEvent e) { - BrowserUtil.browse(JPDA_URL); - return true; - } - }.installOn(label2); - label2.setForeground(JBColor.BLUE.darker()); - label2.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); - _panel2.add(new JLabel(JavaDebuggerBundle.message("label.get.jpda.dialog.error.description")), BorderLayout.NORTH); - _panel2.add(label1, BorderLayout.WEST); - _panel2.add(label2, BorderLayout.EAST); - _panel1.add(_panel2, BorderLayout.NORTH); - - JPanel content = new JPanel(new GridLayout(2, 1, 10, 10)); - - _panel1.add(content, BorderLayout.CENTER); - return _panel1; - } -} -