org.netbeans.modules.cnd.debugger.gdbserver was in the wrong location after 43d670d11986, breaking 'ant init'.
authorJesse Glick <jglick@netbeans.org>
Sat, 19 Feb 2011 10:49:39 -0500
changeset 17299a24e8c3c6888
parent 17298 c3adaaf132c5
child 17300 10f652314988
org.netbeans.modules.cnd.debugger.gdbserver was in the wrong location after 43d670d11986, breaking 'ant init'.
cnd.debugger.gdbserver/build.xml
cnd.debugger.gdbserver/manifest.mf
cnd.debugger.gdbserver/nbproject/build-impl.xml
cnd.debugger.gdbserver/nbproject/genfiles.properties
cnd.debugger.gdbserver/nbproject/platform.properties
cnd.debugger.gdbserver/nbproject/project.properties
cnd.debugger.gdbserver/nbproject/project.xml
cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/Bundle.properties
cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.form
cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.java
cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachType.java
cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/layer.xml
cnd.gdbserver/build.xml
cnd.gdbserver/manifest.mf
cnd.gdbserver/nbproject/build-impl.xml
cnd.gdbserver/nbproject/genfiles.properties
cnd.gdbserver/nbproject/platform.properties
cnd.gdbserver/nbproject/project.properties
cnd.gdbserver/nbproject/project.xml
cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/Bundle.properties
cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.form
cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.java
cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachType.java
cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/layer.xml
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/cnd.debugger.gdbserver/build.xml	Sat Feb 19 10:49:39 2011 -0500
     1.3 @@ -0,0 +1,8 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
     1.6 +<!-- for some information on what you could do (e.g. targets to override). -->
     1.7 +<!-- If you delete this file and reopen the project it will be recreated. -->
     1.8 +<project name="org.netbeans.modules.cnd.debugger.gdbserver" default="netbeans" basedir=".">
     1.9 +    <description>Builds, tests, and runs the project org.netbeans.modules.cnd.debugger.gdbserver.</description>
    1.10 +    <import file="nbproject/build-impl.xml"/>
    1.11 +</project>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/cnd.debugger.gdbserver/manifest.mf	Sat Feb 19 10:49:39 2011 -0500
     2.3 @@ -0,0 +1,6 @@
     2.4 +Manifest-Version: 1.0
     2.5 +OpenIDE-Module: org.netbeans.modules.cnd.debugger.gdbserver
     2.6 +OpenIDE-Module-Layer: org/netbeans/modules/cnd/debugger/gdbserver/layer.xml
     2.7 +OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/cnd/debugger/gdbserver/Bundle.properties
     2.8 +OpenIDE-Module-Specification-Version: 1.0
     2.9 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/cnd.debugger.gdbserver/nbproject/build-impl.xml	Sat Feb 19 10:49:39 2011 -0500
     3.3 @@ -0,0 +1,42 @@
     3.4 +<?xml version="1.0" encoding="UTF-8"?>
     3.5 +<!--
     3.6 +*** GENERATED FROM project.xml - DO NOT EDIT  ***
     3.7 +***         EDIT ../build.xml INSTEAD         ***
     3.8 +-->
     3.9 +<project name="org.netbeans.modules.cnd.debugger.gdbserver-impl" basedir="..">
    3.10 +    <fail message="Please build using Ant 1.7.1 or higher.">
    3.11 +        <condition>
    3.12 +            <not>
    3.13 +                <antversion atleast="1.7.1"/>
    3.14 +            </not>
    3.15 +        </condition>
    3.16 +    </fail>
    3.17 +    <property file="nbproject/private/platform-private.properties"/>
    3.18 +    <property file="nbproject/platform.properties"/>
    3.19 +    <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
    3.20 +        <attribute name="name"/>
    3.21 +        <attribute name="value"/>
    3.22 +        <sequential>
    3.23 +            <property name="@{name}" value="${@{value}}"/>
    3.24 +        </sequential>
    3.25 +    </macrodef>
    3.26 +    <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
    3.27 +        <attribute name="property"/>
    3.28 +        <attribute name="value"/>
    3.29 +        <sequential>
    3.30 +            <property name="@{property}" value="@{value}"/>
    3.31 +        </sequential>
    3.32 +    </macrodef>
    3.33 +    <property file="${user.properties.file}"/>
    3.34 +    <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
    3.35 +    <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
    3.36 +    <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
    3.37 +    <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
    3.38 +        <condition>
    3.39 +            <not>
    3.40 +                <contains string="${cluster.path.evaluated}" substring="platform"/>
    3.41 +            </not>
    3.42 +        </condition>
    3.43 +    </fail>
    3.44 +    <import file="${harness.dir}/build.xml"/>
    3.45 +</project>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/cnd.debugger.gdbserver/nbproject/genfiles.properties	Sat Feb 19 10:49:39 2011 -0500
     4.3 @@ -0,0 +1,8 @@
     4.4 +build.xml.data.CRC32=36687699
     4.5 +build.xml.script.CRC32=e0335d2d
     4.6 +build.xml.stylesheet.CRC32=a56c6a5b@1.44.1
     4.7 +# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
     4.8 +# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
     4.9 +nbproject/build-impl.xml.data.CRC32=36687699
    4.10 +nbproject/build-impl.xml.script.CRC32=fe464ee1
    4.11 +nbproject/build-impl.xml.stylesheet.CRC32=238281d1@1.44.1
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/cnd.debugger.gdbserver/nbproject/platform.properties	Sat Feb 19 10:49:39 2011 -0500
     5.3 @@ -0,0 +1,8 @@
     5.4 +cluster.path=\
     5.5 +    ${nbplatform.active.dir}/platform:\
     5.6 +    ${nbplatform.active.dir}/dlight:\
     5.7 +    ${nbplatform.active.dir}/cnd:\
     5.8 +    ${nbplatform.active.dir}/nb:\
     5.9 +    ${nbplatform.active.dir}/ide:\
    5.10 +    ${nbplatform.active.dir}/harness
    5.11 +nbplatform.active=NetBeans_IDE_CND_Dev
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/cnd.debugger.gdbserver/nbproject/project.properties	Sat Feb 19 10:49:39 2011 -0500
     6.3 @@ -0,0 +1,2 @@
     6.4 +javac.source=1.6
     6.5 +javac.compilerargs=-Xlint -Xlint:-serial
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/cnd.debugger.gdbserver/nbproject/project.xml	Sat Feb 19 10:49:39 2011 -0500
     7.3 @@ -0,0 +1,56 @@
     7.4 +<?xml version="1.0" encoding="UTF-8"?>
     7.5 +<project xmlns="http://www.netbeans.org/ns/project/1">
     7.6 +    <type>org.netbeans.modules.apisupport.project</type>
     7.7 +    <configuration>
     7.8 +        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
     7.9 +            <code-name-base>org.netbeans.modules.cnd.debugger.gdbserver</code-name-base>
    7.10 +            <standalone/>
    7.11 +            <module-dependencies>
    7.12 +                <dependency>
    7.13 +                    <code-name-base>org.netbeans.modules.cnd.debugger.common2</code-name-base>
    7.14 +                    <build-prerequisite/>
    7.15 +                    <compile-dependency/>
    7.16 +                    <run-dependency>
    7.17 +                        <release-version>3</release-version>
    7.18 +                        <specification-version>3.1.0.3</specification-version>
    7.19 +                    </run-dependency>
    7.20 +                </dependency>
    7.21 +                <dependency>
    7.22 +                    <code-name-base>org.netbeans.modules.projectapi</code-name-base>
    7.23 +                    <build-prerequisite/>
    7.24 +                    <compile-dependency/>
    7.25 +                    <run-dependency>
    7.26 +                        <release-version>1</release-version>
    7.27 +                        <specification-version>1.35</specification-version>
    7.28 +                    </run-dependency>
    7.29 +                </dependency>
    7.30 +                <dependency>
    7.31 +                    <code-name-base>org.netbeans.spi.debugger.ui</code-name-base>
    7.32 +                    <build-prerequisite/>
    7.33 +                    <compile-dependency/>
    7.34 +                    <run-dependency>
    7.35 +                        <release-version>1</release-version>
    7.36 +                        <specification-version>2.26</specification-version>
    7.37 +                    </run-dependency>
    7.38 +                </dependency>
    7.39 +                <dependency>
    7.40 +                    <code-name-base>org.openide.dialogs</code-name-base>
    7.41 +                    <build-prerequisite/>
    7.42 +                    <compile-dependency/>
    7.43 +                    <run-dependency>
    7.44 +                        <specification-version>7.18</specification-version>
    7.45 +                    </run-dependency>
    7.46 +                </dependency>
    7.47 +                <dependency>
    7.48 +                    <code-name-base>org.openide.util</code-name-base>
    7.49 +                    <build-prerequisite/>
    7.50 +                    <compile-dependency/>
    7.51 +                    <run-dependency>
    7.52 +                        <specification-version>8.14</specification-version>
    7.53 +                    </run-dependency>
    7.54 +                </dependency>
    7.55 +            </module-dependencies>
    7.56 +            <public-packages/>
    7.57 +        </data>
    7.58 +    </configuration>
    7.59 +</project>
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/Bundle.properties	Sat Feb 19 10:49:39 2011 -0500
     8.3 @@ -0,0 +1,11 @@
     8.4 +OpenIDE-Module-Display-Category=C/C++
     8.5 +OpenIDE-Module-Long-Description=\
     8.6 +    Support for gdbserver
     8.7 +OpenIDE-Module-Name=gdbserver
     8.8 +OpenIDE-Module-Short-Description=gdbserver support
     8.9 +
    8.10 +CTL_GdbServerAttachPanel_name=gdbserver
    8.11 +GdbServerAttachPanel.projectLabel.text=Project:
    8.12 +GdbServerAttachPanel.jLabel1.text=Host:
    8.13 +GdbServerAttachPanel.jLabel2.text=Port:
    8.14 +GdbServerAttachPanel.portTF.text=
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.form	Sat Feb 19 10:49:39 2011 -0500
     9.3 @@ -0,0 +1,94 @@
     9.4 +<?xml version="1.0" encoding="UTF-8" ?>
     9.5 +
     9.6 +<Form version="1.4" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
     9.7 +  <AuxValues>
     9.8 +    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
     9.9 +    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
    9.10 +    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
    9.11 +    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
    9.12 +    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
    9.13 +    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
    9.14 +    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
    9.15 +    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
    9.16 +    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
    9.17 +  </AuxValues>
    9.18 +
    9.19 +  <Layout>
    9.20 +    <DimensionLayout dim="0">
    9.21 +      <Group type="103" groupAlignment="0" attributes="0">
    9.22 +          <Group type="102" alignment="0" attributes="0">
    9.23 +              <Group type="103" groupAlignment="0" attributes="0">
    9.24 +                  <Component id="projectLabel" alignment="0" min="-2" max="-2" attributes="0"/>
    9.25 +                  <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
    9.26 +                  <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
    9.27 +              </Group>
    9.28 +              <EmptySpace max="-2" attributes="0"/>
    9.29 +              <Group type="103" groupAlignment="0" attributes="0">
    9.30 +                  <Component id="portTF" alignment="0" pref="335" max="32767" attributes="0"/>
    9.31 +                  <Component id="hostTF" alignment="0" pref="335" max="32767" attributes="0"/>
    9.32 +                  <Component id="projectCB" alignment="0" pref="335" max="32767" attributes="0"/>
    9.33 +              </Group>
    9.34 +          </Group>
    9.35 +      </Group>
    9.36 +    </DimensionLayout>
    9.37 +    <DimensionLayout dim="1">
    9.38 +      <Group type="103" groupAlignment="0" attributes="0">
    9.39 +          <Group type="102" alignment="0" attributes="0">
    9.40 +              <Group type="103" groupAlignment="3" attributes="0">
    9.41 +                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
    9.42 +                  <Component id="hostTF" alignment="3" min="-2" max="-2" attributes="0"/>
    9.43 +              </Group>
    9.44 +              <EmptySpace max="-2" attributes="0"/>
    9.45 +              <Group type="103" groupAlignment="3" attributes="0">
    9.46 +                  <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
    9.47 +                  <Component id="portTF" alignment="3" min="-2" max="-2" attributes="0"/>
    9.48 +              </Group>
    9.49 +              <EmptySpace max="-2" attributes="0"/>
    9.50 +              <Group type="103" groupAlignment="3" attributes="0">
    9.51 +                  <Component id="projectLabel" alignment="3" min="-2" max="-2" attributes="0"/>
    9.52 +                  <Component id="projectCB" alignment="3" min="-2" max="-2" attributes="0"/>
    9.53 +              </Group>
    9.54 +          </Group>
    9.55 +      </Group>
    9.56 +    </DimensionLayout>
    9.57 +  </Layout>
    9.58 +  <SubComponents>
    9.59 +    <Component class="javax.swing.JLabel" name="projectLabel">
    9.60 +      <Properties>
    9.61 +        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
    9.62 +          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.projectLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
    9.63 +        </Property>
    9.64 +      </Properties>
    9.65 +    </Component>
    9.66 +    <Component class="javax.swing.JComboBox" name="projectCB">
    9.67 +      <Properties>
    9.68 +        <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
    9.69 +          <StringArray count="0"/>
    9.70 +        </Property>
    9.71 +      </Properties>
    9.72 +    </Component>
    9.73 +    <Component class="javax.swing.JLabel" name="jLabel1">
    9.74 +      <Properties>
    9.75 +        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
    9.76 +          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
    9.77 +        </Property>
    9.78 +      </Properties>
    9.79 +    </Component>
    9.80 +    <Component class="javax.swing.JTextField" name="hostTF">
    9.81 +    </Component>
    9.82 +    <Component class="javax.swing.JLabel" name="jLabel2">
    9.83 +      <Properties>
    9.84 +        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
    9.85 +          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.jLabel2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
    9.86 +        </Property>
    9.87 +      </Properties>
    9.88 +    </Component>
    9.89 +    <Component class="javax.swing.JTextField" name="portTF">
    9.90 +      <Properties>
    9.91 +        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
    9.92 +          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.portTF.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
    9.93 +        </Property>
    9.94 +      </Properties>
    9.95 +    </Component>
    9.96 +  </SubComponents>
    9.97 +</Form>
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.java	Sat Feb 19 10:49:39 2011 -0500
    10.3 @@ -0,0 +1,200 @@
    10.4 +/*
    10.5 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    10.6 + *
    10.7 + * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
    10.8 + *
    10.9 + * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
   10.10 + * Other names may be trademarks of their respective owners.
   10.11 + *
   10.12 + * The contents of this file are subject to the terms of either the GNU
   10.13 + * General Public License Version 2 only ("GPL") or the Common
   10.14 + * Development and Distribution License("CDDL") (collectively, the
   10.15 + * "License"). You may not use this file except in compliance with the
   10.16 + * License. You can obtain a copy of the License at
   10.17 + * http://www.netbeans.org/cddl-gplv2.html
   10.18 + * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
   10.19 + * specific language governing permissions and limitations under the
   10.20 + * License.  When distributing the software, include this License Header
   10.21 + * Notice in each file and include the License file at
   10.22 + * nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
   10.23 + * particular file as subject to the "Classpath" exception as provided
   10.24 + * by Oracle in the GPL Version 2 section of the License file that
   10.25 + * accompanied this code. If applicable, add the following below the
   10.26 + * License Header, with the fields enclosed by brackets [] replaced by
   10.27 + * your own identifying information:
   10.28 + * "Portions Copyrighted [year] [name of copyright owner]"
   10.29 + *
   10.30 + * If you wish your version of this file to be governed by only the CDDL
   10.31 + * or only the GPL Version 2, indicate your decision by adding
   10.32 + * "[Contributor] elects to include this software in this distribution
   10.33 + * under the [CDDL or GPL Version 2] license." If you do not indicate a
   10.34 + * single choice of license, a recipient has the option to distribute
   10.35 + * your version of this file under either the CDDL, the GPL Version 2 or
   10.36 + * to extend the choice of license to its licensees as provided above.
   10.37 + * However, if you add GPL Version 2 code and therefore, elected the GPL
   10.38 + * Version 2 license, then the option applies only if the new code is
   10.39 + * made subject to such option by the copyright holder.
   10.40 + *
   10.41 + * Contributor(s):
   10.42 + *
   10.43 + * Portions Copyrighted 2009 Sun Microsystems, Inc.
   10.44 + */
   10.45 +
   10.46 +/*
   10.47 + * GdbServerAttachPanel.java
   10.48 + *
   10.49 + * Created on Aug 14, 2009, 7:39:50 PM
   10.50 + */
   10.51 +
   10.52 +package org.netbeans.modules.cnd.debugger.gdbserver;
   10.53 +
   10.54 +import java.beans.PropertyChangeListener;
   10.55 +import org.netbeans.modules.cnd.debugger.common2.debugger.actions.ExecutableProjectPanel;
   10.56 +import org.netbeans.modules.cnd.debugger.common2.debugger.actions.ExecutableProjectPanel.ProjectCBItem;
   10.57 +import org.netbeans.spi.debugger.ui.Controller;
   10.58 +import org.openide.DialogDisplayer;
   10.59 +import org.openide.NotifyDescriptor;
   10.60 +import org.openide.util.NbBundle;
   10.61 +import org.openide.util.NbPreferences;
   10.62 +
   10.63 +/**
   10.64 + *
   10.65 + * @author Egor Ushakov
   10.66 + */
   10.67 +public class GdbServerAttachPanel extends javax.swing.JPanel {
   10.68 +    private final Controller controller;
   10.69 +
   10.70 +    private static final String HOST_KEY = "last-gdbserver-host"; //NOI18N
   10.71 +    private static final String PORT_KEY = "last-gdbserver-port"; //NOI18N
   10.72 +
   10.73 +    /** Creates new form GdbServerAttachPanel */
   10.74 +    public GdbServerAttachPanel() {
   10.75 +        controller = new GdbServerAttachController();
   10.76 +        initComponents();
   10.77 +        // Fill the Projects combo box
   10.78 +        ExecutableProjectPanel.fillProjectsCombo(projectCB, null);
   10.79 +        hostTF.setText(NbPreferences.forModule(GdbServerAttachPanel.class).get(HOST_KEY, "")); //NOI18N
   10.80 +        portTF.setText(NbPreferences.forModule(GdbServerAttachPanel.class).get(PORT_KEY, "")); //NOI18N
   10.81 +    }
   10.82 +
   10.83 +    Controller getController() {
   10.84 +        return controller;
   10.85 +    }
   10.86 +
   10.87 +    /** This method is called from within the constructor to
   10.88 +     * initialize the form.
   10.89 +     * WARNING: Do NOT modify this code. The content of this method is
   10.90 +     * always regenerated by the Form Editor.
   10.91 +     */
   10.92 +    @SuppressWarnings("unchecked")
   10.93 +    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
   10.94 +    private void initComponents() {
   10.95 +
   10.96 +        projectLabel = new javax.swing.JLabel();
   10.97 +        projectCB = new javax.swing.JComboBox();
   10.98 +        jLabel1 = new javax.swing.JLabel();
   10.99 +        hostTF = new javax.swing.JTextField();
  10.100 +        jLabel2 = new javax.swing.JLabel();
  10.101 +        portTF = new javax.swing.JTextField();
  10.102 +
  10.103 +        projectLabel.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.projectLabel.text")); // NOI18N
  10.104 +
  10.105 +        jLabel1.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.jLabel1.text")); // NOI18N
  10.106 +
  10.107 +        jLabel2.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.jLabel2.text")); // NOI18N
  10.108 +
  10.109 +        portTF.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.portTF.text")); // NOI18N
  10.110 +
  10.111 +        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
  10.112 +        this.setLayout(layout);
  10.113 +        layout.setHorizontalGroup(
  10.114 +            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  10.115 +            .addGroup(layout.createSequentialGroup()
  10.116 +                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  10.117 +                    .addComponent(projectLabel)
  10.118 +                    .addComponent(jLabel1)
  10.119 +                    .addComponent(jLabel2))
  10.120 +                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  10.121 +                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  10.122 +                    .addComponent(portTF, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)
  10.123 +                    .addComponent(hostTF, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)
  10.124 +                    .addComponent(projectCB, 0, 335, Short.MAX_VALUE)))
  10.125 +        );
  10.126 +        layout.setVerticalGroup(
  10.127 +            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  10.128 +            .addGroup(layout.createSequentialGroup()
  10.129 +                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  10.130 +                    .addComponent(jLabel1)
  10.131 +                    .addComponent(hostTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  10.132 +                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  10.133 +                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  10.134 +                    .addComponent(jLabel2)
  10.135 +                    .addComponent(portTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  10.136 +                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  10.137 +                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  10.138 +                    .addComponent(projectLabel)
  10.139 +                    .addComponent(projectCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
  10.140 +        );
  10.141 +    }// </editor-fold>//GEN-END:initComponents
  10.142 +
  10.143 +
  10.144 +    // Variables declaration - do not modify//GEN-BEGIN:variables
  10.145 +    private javax.swing.JTextField hostTF;
  10.146 +    private javax.swing.JLabel jLabel1;
  10.147 +    private javax.swing.JLabel jLabel2;
  10.148 +    private javax.swing.JTextField portTF;
  10.149 +    private javax.swing.JComboBox projectCB;
  10.150 +    private javax.swing.JLabel projectLabel;
  10.151 +    // End of variables declaration//GEN-END:variables
  10.152 +
  10.153 +    private class GdbServerAttachController implements Controller {
  10.154 +
  10.155 +        @Override
  10.156 +        public boolean cancel() {
  10.157 +            return true;
  10.158 +        }
  10.159 +
  10.160 +        @Override
  10.161 +        public boolean ok() {
  10.162 +            String hostValue = hostTF.getText();
  10.163 +            if (hostValue.length() == 0) {
  10.164 +                return false;
  10.165 +            }
  10.166 +            String portValue = portTF.getText();
  10.167 +            if (portValue.length() == 0) {
  10.168 +                return false;
  10.169 +            }
  10.170 +            
  10.171 +            //store last values
  10.172 +            NbPreferences.forModule(GdbServerAttachPanel.class).put(HOST_KEY, hostValue);
  10.173 +            NbPreferences.forModule(GdbServerAttachPanel.class).put(PORT_KEY, portValue);
  10.174 +
  10.175 +            ProjectCBItem pi = (ProjectCBItem) projectCB.getSelectedItem();
  10.176 +            if (pi != null) {
  10.177 +                String target = hostValue + ':' + portValue;
  10.178 +//                try {
  10.179 +//                    GdbDebugger.attachGdbServer(target, pi.getProjectInformation());
  10.180 +//                } catch (DebuggerStartException dse) {
  10.181 +//                    DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(
  10.182 +//                            NbBundle.getMessage(GdbServerAttachPanel.class,
  10.183 +//                           "ERR_UnexpecedAttachGdbServerFailure", target))); // NOI18N
  10.184 +//                }
  10.185 +            }
  10.186 +            return true;
  10.187 +        }
  10.188 +        
  10.189 +        @Override
  10.190 +        public boolean isValid() {
  10.191 +            return projectCB.getItemCount() > 0;
  10.192 +        }
  10.193 +
  10.194 +        @Override
  10.195 +        public void addPropertyChangeListener(PropertyChangeListener l) {
  10.196 +        }
  10.197 +
  10.198 +        @Override
  10.199 +        public void removePropertyChangeListener(PropertyChangeListener l) {
  10.200 +        }
  10.201 +
  10.202 +    }
  10.203 +}
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachType.java	Sat Feb 19 10:49:39 2011 -0500
    11.3 @@ -0,0 +1,74 @@
    11.4 +/*
    11.5 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    11.6 + *
    11.7 + * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
    11.8 + *
    11.9 + * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
   11.10 + * Other names may be trademarks of their respective owners.
   11.11 + *
   11.12 + * The contents of this file are subject to the terms of either the GNU
   11.13 + * General Public License Version 2 only ("GPL") or the Common
   11.14 + * Development and Distribution License("CDDL") (collectively, the
   11.15 + * "License"). You may not use this file except in compliance with the
   11.16 + * License. You can obtain a copy of the License at
   11.17 + * http://www.netbeans.org/cddl-gplv2.html
   11.18 + * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
   11.19 + * specific language governing permissions and limitations under the
   11.20 + * License.  When distributing the software, include this License Header
   11.21 + * Notice in each file and include the License file at
   11.22 + * nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
   11.23 + * particular file as subject to the "Classpath" exception as provided
   11.24 + * by Oracle in the GPL Version 2 section of the License file that
   11.25 + * accompanied this code. If applicable, add the following below the
   11.26 + * License Header, with the fields enclosed by brackets [] replaced by
   11.27 + * your own identifying information:
   11.28 + * "Portions Copyrighted [year] [name of copyright owner]"
   11.29 + *
   11.30 + * If you wish your version of this file to be governed by only the CDDL
   11.31 + * or only the GPL Version 2, indicate your decision by adding
   11.32 + * "[Contributor] elects to include this software in this distribution
   11.33 + * under the [CDDL or GPL Version 2] license." If you do not indicate a
   11.34 + * single choice of license, a recipient has the option to distribute
   11.35 + * your version of this file under either the CDDL, the GPL Version 2 or
   11.36 + * to extend the choice of license to its licensees as provided above.
   11.37 + * However, if you add GPL Version 2 code and therefore, elected the GPL
   11.38 + * Version 2 license, then the option applies only if the new code is
   11.39 + * made subject to such option by the copyright holder.
   11.40 + *
   11.41 + * Contributor(s):
   11.42 + *
   11.43 + * Portions Copyrighted 2009 Sun Microsystems, Inc.
   11.44 + */
   11.45 +
   11.46 +package org.netbeans.modules.cnd.debugger.gdbserver;
   11.47 +
   11.48 +import java.lang.ref.Reference;
   11.49 +import java.lang.ref.WeakReference;
   11.50 +import javax.swing.JComponent;
   11.51 +import org.netbeans.spi.debugger.ui.AttachType;
   11.52 +import org.netbeans.spi.debugger.ui.Controller;
   11.53 +
   11.54 +/**
   11.55 + *
   11.56 + * @author Egor Ushakov
   11.57 + */
   11.58 +@AttachType.Registration(displayName="#CTL_GdbServerAttachPanel_name")
   11.59 +public class GdbServerAttachType extends AttachType {
   11.60 +    private Reference<GdbServerAttachPanel> customizerRef = new WeakReference<GdbServerAttachPanel>(null);
   11.61 +
   11.62 +    public JComponent getCustomizer () {
   11.63 +        GdbServerAttachPanel panel = new GdbServerAttachPanel();
   11.64 +        customizerRef = new WeakReference<GdbServerAttachPanel>(panel);
   11.65 +        return panel;
   11.66 +    }
   11.67 +
   11.68 +    @Override
   11.69 +    public Controller getController() {
   11.70 +        GdbServerAttachPanel panel = customizerRef.get();
   11.71 +        if (panel != null) {
   11.72 +            return panel.getController();
   11.73 +        } else {
   11.74 +            return null;
   11.75 +        }
   11.76 +    }
   11.77 +}
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/cnd.debugger.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/layer.xml	Sat Feb 19 10:49:39 2011 -0500
    12.3 @@ -0,0 +1,3 @@
    12.4 +<?xml version="1.0" encoding="UTF-8"?>
    12.5 +<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
    12.6 +<filesystem/>
    13.1 --- a/cnd.gdbserver/build.xml	Sat Feb 19 11:57:49 2011 +0800
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,8 +0,0 @@
    13.4 -<?xml version="1.0" encoding="UTF-8"?>
    13.5 -<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
    13.6 -<!-- for some information on what you could do (e.g. targets to override). -->
    13.7 -<!-- If you delete this file and reopen the project it will be recreated. -->
    13.8 -<project name="org.netbeans.modules.cnd.debugger.gdbserver" default="netbeans" basedir=".">
    13.9 -    <description>Builds, tests, and runs the project org.netbeans.modules.cnd.debugger.gdbserver.</description>
   13.10 -    <import file="nbproject/build-impl.xml"/>
   13.11 -</project>
    14.1 --- a/cnd.gdbserver/manifest.mf	Sat Feb 19 11:57:49 2011 +0800
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,6 +0,0 @@
    14.4 -Manifest-Version: 1.0
    14.5 -OpenIDE-Module: org.netbeans.modules.cnd.debugger.gdbserver
    14.6 -OpenIDE-Module-Layer: org/netbeans/modules/cnd/debugger/gdbserver/layer.xml
    14.7 -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/cnd/debugger/gdbserver/Bundle.properties
    14.8 -OpenIDE-Module-Specification-Version: 1.0
    14.9 -
    15.1 --- a/cnd.gdbserver/nbproject/build-impl.xml	Sat Feb 19 11:57:49 2011 +0800
    15.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.3 @@ -1,42 +0,0 @@
    15.4 -<?xml version="1.0" encoding="UTF-8"?>
    15.5 -<!--
    15.6 -*** GENERATED FROM project.xml - DO NOT EDIT  ***
    15.7 -***         EDIT ../build.xml INSTEAD         ***
    15.8 --->
    15.9 -<project name="org.netbeans.modules.cnd.debugger.gdbserver-impl" basedir="..">
   15.10 -    <fail message="Please build using Ant 1.7.1 or higher.">
   15.11 -        <condition>
   15.12 -            <not>
   15.13 -                <antversion atleast="1.7.1"/>
   15.14 -            </not>
   15.15 -        </condition>
   15.16 -    </fail>
   15.17 -    <property file="nbproject/private/platform-private.properties"/>
   15.18 -    <property file="nbproject/platform.properties"/>
   15.19 -    <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2">
   15.20 -        <attribute name="name"/>
   15.21 -        <attribute name="value"/>
   15.22 -        <sequential>
   15.23 -            <property name="@{name}" value="${@{value}}"/>
   15.24 -        </sequential>
   15.25 -    </macrodef>
   15.26 -    <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2">
   15.27 -        <attribute name="property"/>
   15.28 -        <attribute name="value"/>
   15.29 -        <sequential>
   15.30 -            <property name="@{property}" value="@{value}"/>
   15.31 -        </sequential>
   15.32 -    </macrodef>
   15.33 -    <property file="${user.properties.file}"/>
   15.34 -    <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
   15.35 -    <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
   15.36 -    <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
   15.37 -    <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness).">
   15.38 -        <condition>
   15.39 -            <not>
   15.40 -                <contains string="${cluster.path.evaluated}" substring="platform"/>
   15.41 -            </not>
   15.42 -        </condition>
   15.43 -    </fail>
   15.44 -    <import file="${harness.dir}/build.xml"/>
   15.45 -</project>
    16.1 --- a/cnd.gdbserver/nbproject/genfiles.properties	Sat Feb 19 11:57:49 2011 +0800
    16.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.3 @@ -1,8 +0,0 @@
    16.4 -build.xml.data.CRC32=36687699
    16.5 -build.xml.script.CRC32=e0335d2d
    16.6 -build.xml.stylesheet.CRC32=a56c6a5b@1.44.1
    16.7 -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
    16.8 -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
    16.9 -nbproject/build-impl.xml.data.CRC32=36687699
   16.10 -nbproject/build-impl.xml.script.CRC32=fe464ee1
   16.11 -nbproject/build-impl.xml.stylesheet.CRC32=238281d1@1.44.1
    17.1 --- a/cnd.gdbserver/nbproject/platform.properties	Sat Feb 19 11:57:49 2011 +0800
    17.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.3 @@ -1,8 +0,0 @@
    17.4 -cluster.path=\
    17.5 -    ${nbplatform.active.dir}/platform:\
    17.6 -    ${nbplatform.active.dir}/dlight:\
    17.7 -    ${nbplatform.active.dir}/cnd:\
    17.8 -    ${nbplatform.active.dir}/nb:\
    17.9 -    ${nbplatform.active.dir}/ide:\
   17.10 -    ${nbplatform.active.dir}/harness
   17.11 -nbplatform.active=NetBeans_IDE_CND_Dev
    18.1 --- a/cnd.gdbserver/nbproject/project.properties	Sat Feb 19 11:57:49 2011 +0800
    18.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.3 @@ -1,2 +0,0 @@
    18.4 -javac.source=1.6
    18.5 -javac.compilerargs=-Xlint -Xlint:-serial
    19.1 --- a/cnd.gdbserver/nbproject/project.xml	Sat Feb 19 11:57:49 2011 +0800
    19.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.3 @@ -1,56 +0,0 @@
    19.4 -<?xml version="1.0" encoding="UTF-8"?>
    19.5 -<project xmlns="http://www.netbeans.org/ns/project/1">
    19.6 -    <type>org.netbeans.modules.apisupport.project</type>
    19.7 -    <configuration>
    19.8 -        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3">
    19.9 -            <code-name-base>org.netbeans.modules.cnd.debugger.gdbserver</code-name-base>
   19.10 -            <standalone/>
   19.11 -            <module-dependencies>
   19.12 -                <dependency>
   19.13 -                    <code-name-base>org.netbeans.modules.cnd.debugger.common2</code-name-base>
   19.14 -                    <build-prerequisite/>
   19.15 -                    <compile-dependency/>
   19.16 -                    <run-dependency>
   19.17 -                        <release-version>3</release-version>
   19.18 -                        <specification-version>3.1.0.3</specification-version>
   19.19 -                    </run-dependency>
   19.20 -                </dependency>
   19.21 -                <dependency>
   19.22 -                    <code-name-base>org.netbeans.modules.projectapi</code-name-base>
   19.23 -                    <build-prerequisite/>
   19.24 -                    <compile-dependency/>
   19.25 -                    <run-dependency>
   19.26 -                        <release-version>1</release-version>
   19.27 -                        <specification-version>1.35</specification-version>
   19.28 -                    </run-dependency>
   19.29 -                </dependency>
   19.30 -                <dependency>
   19.31 -                    <code-name-base>org.netbeans.spi.debugger.ui</code-name-base>
   19.32 -                    <build-prerequisite/>
   19.33 -                    <compile-dependency/>
   19.34 -                    <run-dependency>
   19.35 -                        <release-version>1</release-version>
   19.36 -                        <specification-version>2.26</specification-version>
   19.37 -                    </run-dependency>
   19.38 -                </dependency>
   19.39 -                <dependency>
   19.40 -                    <code-name-base>org.openide.dialogs</code-name-base>
   19.41 -                    <build-prerequisite/>
   19.42 -                    <compile-dependency/>
   19.43 -                    <run-dependency>
   19.44 -                        <specification-version>7.18</specification-version>
   19.45 -                    </run-dependency>
   19.46 -                </dependency>
   19.47 -                <dependency>
   19.48 -                    <code-name-base>org.openide.util</code-name-base>
   19.49 -                    <build-prerequisite/>
   19.50 -                    <compile-dependency/>
   19.51 -                    <run-dependency>
   19.52 -                        <specification-version>8.14</specification-version>
   19.53 -                    </run-dependency>
   19.54 -                </dependency>
   19.55 -            </module-dependencies>
   19.56 -            <public-packages/>
   19.57 -        </data>
   19.58 -    </configuration>
   19.59 -</project>
    20.1 --- a/cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/Bundle.properties	Sat Feb 19 11:57:49 2011 +0800
    20.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.3 @@ -1,11 +0,0 @@
    20.4 -OpenIDE-Module-Display-Category=C/C++
    20.5 -OpenIDE-Module-Long-Description=\
    20.6 -    Support for gdbserver
    20.7 -OpenIDE-Module-Name=gdbserver
    20.8 -OpenIDE-Module-Short-Description=gdbserver support
    20.9 -
   20.10 -CTL_GdbServerAttachPanel_name=gdbserver
   20.11 -GdbServerAttachPanel.projectLabel.text=Project:
   20.12 -GdbServerAttachPanel.jLabel1.text=Host:
   20.13 -GdbServerAttachPanel.jLabel2.text=Port:
   20.14 -GdbServerAttachPanel.portTF.text=
    21.1 --- a/cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.form	Sat Feb 19 11:57:49 2011 +0800
    21.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.3 @@ -1,94 +0,0 @@
    21.4 -<?xml version="1.0" encoding="UTF-8" ?>
    21.5 -
    21.6 -<Form version="1.4" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
    21.7 -  <AuxValues>
    21.8 -    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
    21.9 -    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
   21.10 -    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
   21.11 -    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
   21.12 -    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
   21.13 -    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
   21.14 -    <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
   21.15 -    <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
   21.16 -    <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
   21.17 -  </AuxValues>
   21.18 -
   21.19 -  <Layout>
   21.20 -    <DimensionLayout dim="0">
   21.21 -      <Group type="103" groupAlignment="0" attributes="0">
   21.22 -          <Group type="102" alignment="0" attributes="0">
   21.23 -              <Group type="103" groupAlignment="0" attributes="0">
   21.24 -                  <Component id="projectLabel" alignment="0" min="-2" max="-2" attributes="0"/>
   21.25 -                  <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
   21.26 -                  <Component id="jLabel2" alignment="0" min="-2" max="-2" attributes="0"/>
   21.27 -              </Group>
   21.28 -              <EmptySpace max="-2" attributes="0"/>
   21.29 -              <Group type="103" groupAlignment="0" attributes="0">
   21.30 -                  <Component id="portTF" alignment="0" pref="335" max="32767" attributes="0"/>
   21.31 -                  <Component id="hostTF" alignment="0" pref="335" max="32767" attributes="0"/>
   21.32 -                  <Component id="projectCB" alignment="0" pref="335" max="32767" attributes="0"/>
   21.33 -              </Group>
   21.34 -          </Group>
   21.35 -      </Group>
   21.36 -    </DimensionLayout>
   21.37 -    <DimensionLayout dim="1">
   21.38 -      <Group type="103" groupAlignment="0" attributes="0">
   21.39 -          <Group type="102" alignment="0" attributes="0">
   21.40 -              <Group type="103" groupAlignment="3" attributes="0">
   21.41 -                  <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
   21.42 -                  <Component id="hostTF" alignment="3" min="-2" max="-2" attributes="0"/>
   21.43 -              </Group>
   21.44 -              <EmptySpace max="-2" attributes="0"/>
   21.45 -              <Group type="103" groupAlignment="3" attributes="0">
   21.46 -                  <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
   21.47 -                  <Component id="portTF" alignment="3" min="-2" max="-2" attributes="0"/>
   21.48 -              </Group>
   21.49 -              <EmptySpace max="-2" attributes="0"/>
   21.50 -              <Group type="103" groupAlignment="3" attributes="0">
   21.51 -                  <Component id="projectLabel" alignment="3" min="-2" max="-2" attributes="0"/>
   21.52 -                  <Component id="projectCB" alignment="3" min="-2" max="-2" attributes="0"/>
   21.53 -              </Group>
   21.54 -          </Group>
   21.55 -      </Group>
   21.56 -    </DimensionLayout>
   21.57 -  </Layout>
   21.58 -  <SubComponents>
   21.59 -    <Component class="javax.swing.JLabel" name="projectLabel">
   21.60 -      <Properties>
   21.61 -        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
   21.62 -          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.projectLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
   21.63 -        </Property>
   21.64 -      </Properties>
   21.65 -    </Component>
   21.66 -    <Component class="javax.swing.JComboBox" name="projectCB">
   21.67 -      <Properties>
   21.68 -        <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
   21.69 -          <StringArray count="0"/>
   21.70 -        </Property>
   21.71 -      </Properties>
   21.72 -    </Component>
   21.73 -    <Component class="javax.swing.JLabel" name="jLabel1">
   21.74 -      <Properties>
   21.75 -        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
   21.76 -          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
   21.77 -        </Property>
   21.78 -      </Properties>
   21.79 -    </Component>
   21.80 -    <Component class="javax.swing.JTextField" name="hostTF">
   21.81 -    </Component>
   21.82 -    <Component class="javax.swing.JLabel" name="jLabel2">
   21.83 -      <Properties>
   21.84 -        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
   21.85 -          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.jLabel2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
   21.86 -        </Property>
   21.87 -      </Properties>
   21.88 -    </Component>
   21.89 -    <Component class="javax.swing.JTextField" name="portTF">
   21.90 -      <Properties>
   21.91 -        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
   21.92 -          <ResourceString bundle="org/netbeans/modules/cnd/debugger/gdb/attach/Bundle.properties" key="GdbServerAttachPanel.portTF.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
   21.93 -        </Property>
   21.94 -      </Properties>
   21.95 -    </Component>
   21.96 -  </SubComponents>
   21.97 -</Form>
    22.1 --- a/cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachPanel.java	Sat Feb 19 11:57:49 2011 +0800
    22.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.3 @@ -1,200 +0,0 @@
    22.4 -/*
    22.5 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    22.6 - *
    22.7 - * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
    22.8 - *
    22.9 - * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
   22.10 - * Other names may be trademarks of their respective owners.
   22.11 - *
   22.12 - * The contents of this file are subject to the terms of either the GNU
   22.13 - * General Public License Version 2 only ("GPL") or the Common
   22.14 - * Development and Distribution License("CDDL") (collectively, the
   22.15 - * "License"). You may not use this file except in compliance with the
   22.16 - * License. You can obtain a copy of the License at
   22.17 - * http://www.netbeans.org/cddl-gplv2.html
   22.18 - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
   22.19 - * specific language governing permissions and limitations under the
   22.20 - * License.  When distributing the software, include this License Header
   22.21 - * Notice in each file and include the License file at
   22.22 - * nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
   22.23 - * particular file as subject to the "Classpath" exception as provided
   22.24 - * by Oracle in the GPL Version 2 section of the License file that
   22.25 - * accompanied this code. If applicable, add the following below the
   22.26 - * License Header, with the fields enclosed by brackets [] replaced by
   22.27 - * your own identifying information:
   22.28 - * "Portions Copyrighted [year] [name of copyright owner]"
   22.29 - *
   22.30 - * If you wish your version of this file to be governed by only the CDDL
   22.31 - * or only the GPL Version 2, indicate your decision by adding
   22.32 - * "[Contributor] elects to include this software in this distribution
   22.33 - * under the [CDDL or GPL Version 2] license." If you do not indicate a
   22.34 - * single choice of license, a recipient has the option to distribute
   22.35 - * your version of this file under either the CDDL, the GPL Version 2 or
   22.36 - * to extend the choice of license to its licensees as provided above.
   22.37 - * However, if you add GPL Version 2 code and therefore, elected the GPL
   22.38 - * Version 2 license, then the option applies only if the new code is
   22.39 - * made subject to such option by the copyright holder.
   22.40 - *
   22.41 - * Contributor(s):
   22.42 - *
   22.43 - * Portions Copyrighted 2009 Sun Microsystems, Inc.
   22.44 - */
   22.45 -
   22.46 -/*
   22.47 - * GdbServerAttachPanel.java
   22.48 - *
   22.49 - * Created on Aug 14, 2009, 7:39:50 PM
   22.50 - */
   22.51 -
   22.52 -package org.netbeans.modules.cnd.debugger.gdbserver;
   22.53 -
   22.54 -import java.beans.PropertyChangeListener;
   22.55 -import org.netbeans.modules.cnd.debugger.common2.debugger.actions.ExecutableProjectPanel;
   22.56 -import org.netbeans.modules.cnd.debugger.common2.debugger.actions.ExecutableProjectPanel.ProjectCBItem;
   22.57 -import org.netbeans.spi.debugger.ui.Controller;
   22.58 -import org.openide.DialogDisplayer;
   22.59 -import org.openide.NotifyDescriptor;
   22.60 -import org.openide.util.NbBundle;
   22.61 -import org.openide.util.NbPreferences;
   22.62 -
   22.63 -/**
   22.64 - *
   22.65 - * @author Egor Ushakov
   22.66 - */
   22.67 -public class GdbServerAttachPanel extends javax.swing.JPanel {
   22.68 -    private final Controller controller;
   22.69 -
   22.70 -    private static final String HOST_KEY = "last-gdbserver-host"; //NOI18N
   22.71 -    private static final String PORT_KEY = "last-gdbserver-port"; //NOI18N
   22.72 -
   22.73 -    /** Creates new form GdbServerAttachPanel */
   22.74 -    public GdbServerAttachPanel() {
   22.75 -        controller = new GdbServerAttachController();
   22.76 -        initComponents();
   22.77 -        // Fill the Projects combo box
   22.78 -        ExecutableProjectPanel.fillProjectsCombo(projectCB, null);
   22.79 -        hostTF.setText(NbPreferences.forModule(GdbServerAttachPanel.class).get(HOST_KEY, "")); //NOI18N
   22.80 -        portTF.setText(NbPreferences.forModule(GdbServerAttachPanel.class).get(PORT_KEY, "")); //NOI18N
   22.81 -    }
   22.82 -
   22.83 -    Controller getController() {
   22.84 -        return controller;
   22.85 -    }
   22.86 -
   22.87 -    /** This method is called from within the constructor to
   22.88 -     * initialize the form.
   22.89 -     * WARNING: Do NOT modify this code. The content of this method is
   22.90 -     * always regenerated by the Form Editor.
   22.91 -     */
   22.92 -    @SuppressWarnings("unchecked")
   22.93 -    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
   22.94 -    private void initComponents() {
   22.95 -
   22.96 -        projectLabel = new javax.swing.JLabel();
   22.97 -        projectCB = new javax.swing.JComboBox();
   22.98 -        jLabel1 = new javax.swing.JLabel();
   22.99 -        hostTF = new javax.swing.JTextField();
  22.100 -        jLabel2 = new javax.swing.JLabel();
  22.101 -        portTF = new javax.swing.JTextField();
  22.102 -
  22.103 -        projectLabel.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.projectLabel.text")); // NOI18N
  22.104 -
  22.105 -        jLabel1.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.jLabel1.text")); // NOI18N
  22.106 -
  22.107 -        jLabel2.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.jLabel2.text")); // NOI18N
  22.108 -
  22.109 -        portTF.setText(org.openide.util.NbBundle.getMessage(GdbServerAttachPanel.class, "GdbServerAttachPanel.portTF.text")); // NOI18N
  22.110 -
  22.111 -        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
  22.112 -        this.setLayout(layout);
  22.113 -        layout.setHorizontalGroup(
  22.114 -            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  22.115 -            .addGroup(layout.createSequentialGroup()
  22.116 -                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  22.117 -                    .addComponent(projectLabel)
  22.118 -                    .addComponent(jLabel1)
  22.119 -                    .addComponent(jLabel2))
  22.120 -                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  22.121 -                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  22.122 -                    .addComponent(portTF, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)
  22.123 -                    .addComponent(hostTF, javax.swing.GroupLayout.DEFAULT_SIZE, 335, Short.MAX_VALUE)
  22.124 -                    .addComponent(projectCB, 0, 335, Short.MAX_VALUE)))
  22.125 -        );
  22.126 -        layout.setVerticalGroup(
  22.127 -            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  22.128 -            .addGroup(layout.createSequentialGroup()
  22.129 -                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  22.130 -                    .addComponent(jLabel1)
  22.131 -                    .addComponent(hostTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  22.132 -                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  22.133 -                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  22.134 -                    .addComponent(jLabel2)
  22.135 -                    .addComponent(portTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  22.136 -                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  22.137 -                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  22.138 -                    .addComponent(projectLabel)
  22.139 -                    .addComponent(projectCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
  22.140 -        );
  22.141 -    }// </editor-fold>//GEN-END:initComponents
  22.142 -
  22.143 -
  22.144 -    // Variables declaration - do not modify//GEN-BEGIN:variables
  22.145 -    private javax.swing.JTextField hostTF;
  22.146 -    private javax.swing.JLabel jLabel1;
  22.147 -    private javax.swing.JLabel jLabel2;
  22.148 -    private javax.swing.JTextField portTF;
  22.149 -    private javax.swing.JComboBox projectCB;
  22.150 -    private javax.swing.JLabel projectLabel;
  22.151 -    // End of variables declaration//GEN-END:variables
  22.152 -
  22.153 -    private class GdbServerAttachController implements Controller {
  22.154 -
  22.155 -        @Override
  22.156 -        public boolean cancel() {
  22.157 -            return true;
  22.158 -        }
  22.159 -
  22.160 -        @Override
  22.161 -        public boolean ok() {
  22.162 -            String hostValue = hostTF.getText();
  22.163 -            if (hostValue.length() == 0) {
  22.164 -                return false;
  22.165 -            }
  22.166 -            String portValue = portTF.getText();
  22.167 -            if (portValue.length() == 0) {
  22.168 -                return false;
  22.169 -            }
  22.170 -            
  22.171 -            //store last values
  22.172 -            NbPreferences.forModule(GdbServerAttachPanel.class).put(HOST_KEY, hostValue);
  22.173 -            NbPreferences.forModule(GdbServerAttachPanel.class).put(PORT_KEY, portValue);
  22.174 -
  22.175 -            ProjectCBItem pi = (ProjectCBItem) projectCB.getSelectedItem();
  22.176 -            if (pi != null) {
  22.177 -                String target = hostValue + ':' + portValue;
  22.178 -//                try {
  22.179 -//                    GdbDebugger.attachGdbServer(target, pi.getProjectInformation());
  22.180 -//                } catch (DebuggerStartException dse) {
  22.181 -//                    DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(
  22.182 -//                            NbBundle.getMessage(GdbServerAttachPanel.class,
  22.183 -//                           "ERR_UnexpecedAttachGdbServerFailure", target))); // NOI18N
  22.184 -//                }
  22.185 -            }
  22.186 -            return true;
  22.187 -        }
  22.188 -        
  22.189 -        @Override
  22.190 -        public boolean isValid() {
  22.191 -            return projectCB.getItemCount() > 0;
  22.192 -        }
  22.193 -
  22.194 -        @Override
  22.195 -        public void addPropertyChangeListener(PropertyChangeListener l) {
  22.196 -        }
  22.197 -
  22.198 -        @Override
  22.199 -        public void removePropertyChangeListener(PropertyChangeListener l) {
  22.200 -        }
  22.201 -
  22.202 -    }
  22.203 -}
    23.1 --- a/cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/GdbServerAttachType.java	Sat Feb 19 11:57:49 2011 +0800
    23.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.3 @@ -1,74 +0,0 @@
    23.4 -/*
    23.5 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
    23.6 - *
    23.7 - * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
    23.8 - *
    23.9 - * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
   23.10 - * Other names may be trademarks of their respective owners.
   23.11 - *
   23.12 - * The contents of this file are subject to the terms of either the GNU
   23.13 - * General Public License Version 2 only ("GPL") or the Common
   23.14 - * Development and Distribution License("CDDL") (collectively, the
   23.15 - * "License"). You may not use this file except in compliance with the
   23.16 - * License. You can obtain a copy of the License at
   23.17 - * http://www.netbeans.org/cddl-gplv2.html
   23.18 - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
   23.19 - * specific language governing permissions and limitations under the
   23.20 - * License.  When distributing the software, include this License Header
   23.21 - * Notice in each file and include the License file at
   23.22 - * nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
   23.23 - * particular file as subject to the "Classpath" exception as provided
   23.24 - * by Oracle in the GPL Version 2 section of the License file that
   23.25 - * accompanied this code. If applicable, add the following below the
   23.26 - * License Header, with the fields enclosed by brackets [] replaced by
   23.27 - * your own identifying information:
   23.28 - * "Portions Copyrighted [year] [name of copyright owner]"
   23.29 - *
   23.30 - * If you wish your version of this file to be governed by only the CDDL
   23.31 - * or only the GPL Version 2, indicate your decision by adding
   23.32 - * "[Contributor] elects to include this software in this distribution
   23.33 - * under the [CDDL or GPL Version 2] license." If you do not indicate a
   23.34 - * single choice of license, a recipient has the option to distribute
   23.35 - * your version of this file under either the CDDL, the GPL Version 2 or
   23.36 - * to extend the choice of license to its licensees as provided above.
   23.37 - * However, if you add GPL Version 2 code and therefore, elected the GPL
   23.38 - * Version 2 license, then the option applies only if the new code is
   23.39 - * made subject to such option by the copyright holder.
   23.40 - *
   23.41 - * Contributor(s):
   23.42 - *
   23.43 - * Portions Copyrighted 2009 Sun Microsystems, Inc.
   23.44 - */
   23.45 -
   23.46 -package org.netbeans.modules.cnd.debugger.gdbserver;
   23.47 -
   23.48 -import java.lang.ref.Reference;
   23.49 -import java.lang.ref.WeakReference;
   23.50 -import javax.swing.JComponent;
   23.51 -import org.netbeans.spi.debugger.ui.AttachType;
   23.52 -import org.netbeans.spi.debugger.ui.Controller;
   23.53 -
   23.54 -/**
   23.55 - *
   23.56 - * @author Egor Ushakov
   23.57 - */
   23.58 -@AttachType.Registration(displayName="#CTL_GdbServerAttachPanel_name")
   23.59 -public class GdbServerAttachType extends AttachType {
   23.60 -    private Reference<GdbServerAttachPanel> customizerRef = new WeakReference<GdbServerAttachPanel>(null);
   23.61 -
   23.62 -    public JComponent getCustomizer () {
   23.63 -        GdbServerAttachPanel panel = new GdbServerAttachPanel();
   23.64 -        customizerRef = new WeakReference<GdbServerAttachPanel>(panel);
   23.65 -        return panel;
   23.66 -    }
   23.67 -
   23.68 -    @Override
   23.69 -    public Controller getController() {
   23.70 -        GdbServerAttachPanel panel = customizerRef.get();
   23.71 -        if (panel != null) {
   23.72 -            return panel.getController();
   23.73 -        } else {
   23.74 -            return null;
   23.75 -        }
   23.76 -    }
   23.77 -}
    24.1 --- a/cnd.gdbserver/src/org/netbeans/modules/cnd/debugger/gdbserver/layer.xml	Sat Feb 19 11:57:49 2011 +0800
    24.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.3 @@ -1,3 +0,0 @@
    24.4 -<?xml version="1.0" encoding="UTF-8"?>
    24.5 -<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
    24.6 -<filesystem/>