Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
package org.netbeans.modules.php.dbgp;
import java.awt.Cursor;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.LayoutStyle;
import org.netbeans.modules.php.dbgp.breakpoints.Utils;
import org.netbeans.modules.php.project.api.PhpOptions;
import org.openide.DialogDescriptor;
import org.openide.DialogDisplayer;
import org.openide.NotifyDescriptor;
import org.openide.awt.HtmlBrowser;
import org.openide.util.Exceptions;
import org.openide.util.NbBundle;
/**
*
* @author Radek Matous
*/
public class ConnectionErrMessage extends JPanel {
private static final long serialVersionUID = -2227584113811663220L;
private final String message;
private static final String NEWLINE = System.getProperty("line.separator"); // NOI18N
public static void showMe(int seconds) {
ConnectionErrMessage panel = new ConnectionErrMessage(seconds);
NotifyDescriptor messageDescriptor = new NotifyDescriptor.Message("");//NOI18N
DialogDescriptor descr2 = new DialogDescriptor(panel, messageDescriptor.getTitle(),
true, new Object[]{DialogDescriptor.OK_OPTION}, null, DialogDescriptor.BOTTOM_ALIGN, null, null);
DialogDisplayer.getDefault().createDialog(descr2).setVisible(true);
}
/**
* Creates new form ConnectionErrMessage.
*/
private ConnectionErrMessage(int seconds) {
message = createMessage(seconds);
initComponents();
emptyLabel.setText(" "); // NOI18N to avoid hiding the bottom components
}
@NbBundle.Messages({
"ConnectionErrMessage.xdebug.remote_host=xdebug.remote_host=localhost (or hostname)", // xdebug2
"# {0} - port",
"ConnectionErrMessage.xdebug.remote_port=xdebug.remote_port={0} (default port: 9000)", // xdebug2
"ConnectionErrMessage.xdebug.client_host=xdebug.client_host=localhost (or hostname)", // xdebug3
"# {0} - port",
"ConnectionErrMessage.xdebug.client_port=xdebug.client_port={0} (default port: 9003)", // xdebug3
})
private static String createMessage(int seconds) {
String debuggerPort = String.valueOf(PhpOptions.getInstance().getDebuggerPort());
String xdebugIdekey = String.format("xdebug.idekey=\"%s\"", PhpOptions.getInstance().getDebuggerSessionId()); // NOI18N
StringBuilder sb = new StringBuilder();
sb.append("