http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/toplink.xml ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/toplink.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/toplink.xml deleted file mode 100755 index d7375c9..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/toplink.xml +++ /dev/null @@ -1,54 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - -Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. - -Oracle and Java are registered trademarks of Oracle and/or its affiliates. -Other names may be trademarks of their respective owners. - -The contents of this file are subject to the terms of either the GNU -General Public License Version 2 only ("GPL") or the Common -Development and Distribution License("CDDL") (collectively, the -"License"). You may not use this file except in compliance with the -License. You can obtain a copy of the License at -http://www.netbeans.org/cddl-gplv2.html -or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -specific language governing permissions and limitations under the -License. When distributing the software, include this License Header -Notice in each file and include the License file at -nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -particular file as subject to the "Classpath" exception as provided -by Oracle in the GPL Version 2 section of the License file that -accompanied this code. If applicable, add the following below the -License Header, with the fields enclosed by brackets [] replaced by -your own identifying information: -"Portions Copyrighted [year] [name of copyright owner]" - -If you wish your version of this file to be governed by only the CDDL -or only the GPL Version 2, indicate your decision by adding -"[Contributor] elects to include this software in this distribution -under the [CDDL or GPL Version 2] license." If you do not indicate a -single choice of license, a recipient has the option to distribute -your version of this file under either the CDDL, the GPL Version 2 or -to extend the choice of license to its licensees as provided above. -However, if you add GPL Version 2 code and therefore, elected the GPL -Version 2 license, then the option applies only if the new code is -made subject to such option by the copyright holder. - -Contributor(s): ---> -<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"> - <persistence-unit name="CustomerDBAccessPU" transaction-type="RESOURCE_LOCAL"> - <provider>oracle.toplink.essentials.PersistenceProvider</provider> - <class>demo.DiscountCode</class> - <class>demo.Customer</class> - <class>demo.MicroMarket</class> - <properties> - <property name="toplink.jdbc.user" value="app"/> - <property name="toplink.jdbc.password" value="app"/> - <property name="toplink.jdbc.url" value="jdbc:derby://localhost:1527/sample"/> - <property name="toplink.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/> - </properties> - </persistence-unit> -</persistence>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/Customer.java ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/Customer.java b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/Customer.java deleted file mode 100755 index 3ead567..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/Customer.java +++ /dev/null @@ -1,240 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU - * General Public License Version 2 only ("GPL") or the Common - * Development and Distribution License("CDDL") (collectively, the - * "License"). You may not use this file except in compliance with the - * License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the - * specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header - * Notice in each file and include the License file at - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the - * License Header, with the fields enclosed by brackets [] replaced by - * your own identifying information: - * "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2010 Sun - * Microsystems, Inc. All Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL - * or only the GPL Version 2, indicate your decision by adding - * "[Contributor] elects to include this software in this distribution - * under the [CDDL or GPL Version 2] license." If you do not indicate a - * single choice of license, a recipient has the option to distribute - * your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. - * However, if you add GPL Version 2 code and therefore, elected the GPL - * Version 2 license, then the option applies only if the new code is - * made subject to such option by the copyright holder. - */ -package demo; - -import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.Table; - -/** - * - * @author jirka - */ -@Entity -@Table(name = "CUSTOMER") -@NamedQueries({ - @NamedQuery(name = "Customer.findAll", query = "SELECT c FROM Customer c"), - @NamedQuery(name = "Customer.findByCustomerId", query = "SELECT c FROM Customer c WHERE c.customerId = :customerId"), - @NamedQuery(name = "Customer.findByZip", query = "SELECT c FROM Customer c WHERE c.zip = :zip"), - @NamedQuery(name = "Customer.findByName", query = "SELECT c FROM Customer c WHERE c.name = :name"), - @NamedQuery(name = "Customer.findByAddressline1", query = "SELECT c FROM Customer c WHERE c.addressline1 = :addressline1"), - @NamedQuery(name = "Customer.findByAddressline2", query = "SELECT c FROM Customer c WHERE c.addressline2 = :addressline2"), - @NamedQuery(name = "Customer.findByCity", query = "SELECT c FROM Customer c WHERE c.city = :city"), - @NamedQuery(name = "Customer.findByState", query = "SELECT c FROM Customer c WHERE c.state = :state"), - @NamedQuery(name = "Customer.findByPhone", query = "SELECT c FROM Customer c WHERE c.phone = :phone"), - @NamedQuery(name = "Customer.findByFax", query = "SELECT c FROM Customer c WHERE c.fax = :fax"), - @NamedQuery(name = "Customer.findByEmail", query = "SELECT c FROM Customer c WHERE c.email = :email"), - @NamedQuery(name = "Customer.findByCreditLimit", query = "SELECT c FROM Customer c WHERE c.creditLimit = :creditLimit")}) -public class Customer implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @Basic(optional = false) - @Column(name = "CUSTOMER_ID") - private Integer customerId; - @Basic(optional = false) - @Column(name = "ZIP") - private String zip; - @Column(name = "NAME") - private String name; - @Column(name = "ADDRESSLINE1") - private String addressline1; - @Column(name = "ADDRESSLINE2") - private String addressline2; - @Column(name = "CITY") - private String city; - @Column(name = "STATE") - private String state; - @Column(name = "PHONE") - private String phone; - @Column(name = "FAX") - private String fax; - @Column(name = "EMAIL") - private String email; - @Column(name = "CREDIT_LIMIT") - private Integer creditLimit; - @JoinColumn(name = "DISCOUNT_CODE", referencedColumnName = "DISCOUNT_CODE") - @ManyToOne(optional = false) - private DiscountCode discountCode; - - public Customer() { - } - - public Customer(Integer customerId) { - this.customerId = customerId; - } - - public Customer(Integer customerId, String zip) { - this.customerId = customerId; - this.zip = zip; - } - - public Integer getCustomerId() { - return customerId; - } - - public void setCustomerId(Integer customerId) { - this.customerId = customerId; - } - - public String getZip() { - return zip; - } - - public void setZip(String zip) { - this.zip = zip; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getAddressline1() { - return addressline1; - } - - public void setAddressline1(String addressline1) { - this.addressline1 = addressline1; - } - - public String getAddressline2() { - return addressline2; - } - - public void setAddressline2(String addressline2) { - this.addressline2 = addressline2; - } - - public String getCity() { - return city; - } - - public void setCity(String city) { - this.city = city; - } - - public String getState() { - return state; - } - - public void setState(String state) { - this.state = state; - } - - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone; - } - - public String getFax() { - return fax; - } - - public void setFax(String fax) { - this.fax = fax; - } - - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public Integer getCreditLimit() { - return creditLimit; - } - - public void setCreditLimit(Integer creditLimit) { - this.creditLimit = creditLimit; - } - - public DiscountCode getDiscountCode() { - return discountCode; - } - - public void setDiscountCode(DiscountCode discountCode) { - this.discountCode = discountCode; - } - - @Override - public int hashCode() { - int hash = 0; - hash += (customerId != null ? customerId.hashCode() : 0); - return hash; - } - - @Override - public boolean equals(Object object) { - // TODO: Warning - this method won't work in the case the id fields are not set - if (!(object instanceof Customer)) { - return false; - } - Customer other = (Customer) object; - if ((this.customerId == null && other.customerId != null) || (this.customerId != null && !this.customerId.equals(other.customerId))) { - return false; - } - return true; - } - - @Override - public String toString() { - return "demo.Customer[customerId=" + customerId + "]"; - } - -} http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/DiscountCode.java ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/DiscountCode.java b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/DiscountCode.java deleted file mode 100755 index 004d27b..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/demo/DiscountCode.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU - * General Public License Version 2 only ("GPL") or the Common - * Development and Distribution License("CDDL") (collectively, the - * "License"). You may not use this file except in compliance with the - * License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the - * specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header - * Notice in each file and include the License file at - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the - * License Header, with the fields enclosed by brackets [] replaced by - * your own identifying information: - * "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2010 Sun - * Microsystems, Inc. All Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL - * or only the GPL Version 2, indicate your decision by adding - * "[Contributor] elects to include this software in this distribution - * under the [CDDL or GPL Version 2] license." If you do not indicate a - * single choice of license, a recipient has the option to distribute - * your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. - * However, if you add GPL Version 2 code and therefore, elected the GPL - * Version 2 license, then the option applies only if the new code is - * made subject to such option by the copyright holder. - */ -package demo; - -import java.io.Serializable; -import java.math.BigDecimal; -import java.util.Collection; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.NamedQueries; -import javax.persistence.NamedQuery; -import javax.persistence.OneToMany; -import javax.persistence.Table; - -/** - * - * @author jirka - */ -@Entity -@Table(name = "DISCOUNT_CODE") -@NamedQueries({ - @NamedQuery(name = "DiscountCode.findAll", query = "SELECT d FROM DiscountCode d"), - @NamedQuery(name = "DiscountCode.findByDiscountCode", query = "SELECT d FROM DiscountCode d WHERE d.discountCode = :discountCode"), - @NamedQuery(name = "DiscountCode.findByRate", query = "SELECT d FROM DiscountCode d WHERE d.rate = :rate")}) -public class DiscountCode implements Serializable { - private static final long serialVersionUID = 1L; - @Id - @Basic(optional = false) - @Column(name = "DISCOUNT_CODE") - private Character discountCode; - @Column(name = "RATE") - private BigDecimal rate; - @OneToMany(cascade = CascadeType.ALL, mappedBy = "discountCode") - private Collection<Customer> customerCollection; - - public DiscountCode() { - } - - public DiscountCode(Character discountCode) { - this.discountCode = discountCode; - } - - public Character getDiscountCode() { - return discountCode; - } - - public void setDiscountCode(Character discountCode) { - this.discountCode = discountCode; - } - - public BigDecimal getRate() { - return rate; - } - - public void setRate(BigDecimal rate) { - this.rate = rate; - } - - public Collection<Customer> getCustomerCollection() { - return customerCollection; - } - - public void setCustomerCollection(Collection<Customer> customerCollection) { - this.customerCollection = customerCollection; - } - - @Override - public int hashCode() { - int hash = 0; - hash += (discountCode != null ? discountCode.hashCode() : 0); - return hash; - } - - @Override - public boolean equals(Object object) { - // TODO: Warning - this method won't work in the case the id fields are not set - if (!(object instanceof DiscountCode)) { - return false; - } - DiscountCode other = (DiscountCode) object; - if ((this.discountCode == null && other.discountCode != null) || (this.discountCode != null && !this.discountCode.equals(other.discountCode))) { - return false; - } - return true; - } - - @Override - public String toString() { - return "demo.DiscountCode[discountCode=" + discountCode + "]"; - } - -} http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/build.xml ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/build.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/build.xml deleted file mode 100755 index fc4c44c..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/build.xml +++ /dev/null @@ -1,63 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - -Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. - -Oracle and Java are registered trademarks of Oracle and/or its affiliates. -Other names may be trademarks of their respective owners. - -The contents of this file are subject to the terms of either the GNU -General Public License Version 2 only ("GPL") or the Common -Development and Distribution License("CDDL") (collectively, the -"License"). You may not use this file except in compliance with the -License. You can obtain a copy of the License at -http://www.netbeans.org/cddl-gplv2.html -or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -specific language governing permissions and limitations under the -License. When distributing the software, include this License Header -Notice in each file and include the License file at -nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -particular file as subject to the "Classpath" exception as provided -by Oracle in the GPL Version 2 section of the License file that -accompanied this code. If applicable, add the following below the -License Header, with the fields enclosed by brackets [] replaced by -your own identifying information: -"Portions Copyrighted [year] [name of copyright owner]" - -If you wish your version of this file to be governed by only the CDDL -or only the GPL Version 2, indicate your decision by adding -"[Contributor] elects to include this software in this distribution -under the [CDDL or GPL Version 2] license." If you do not indicate a -single choice of license, a recipient has the option to distribute -your version of this file under either the CDDL, the GPL Version 2 or -to extend the choice of license to its licensees as provided above. -However, if you add GPL Version 2 code and therefore, elected the GPL -Version 2 license, then the option applies only if the new code is -made subject to such option by the copyright holder. - -Contributor(s): ---> -<!-- You may freely edit this file. See harness/README in the NetBeans platform --> -<!-- for some information on what you could do (e.g. targets to override). --> -<!-- If you delete this file and reopen the project it will be recreated. --> -<project name="org.netbeans.modules.customerdb" default="netbeans" basedir="."> - <description>Builds, tests, and runs the project org.netbeans.modules.customerdb.</description> - <import file="nbproject/build-impl.xml"/> - <target name="compile"> - <ant dir="../CustomerDBAccess" inheritall="false" target="jar"/> - <copy file="../CustomerDBAccess/dist/CustomerDBAccess.jar" tofile="${cluster}/modules/ext/CustomerDBAccess.jar"/> - <antcall target="projectized-common.compile"/> - </target> - <target name="netbeans-extra"> - <property name="external_dir" value="external"/> - <copy todir="${cluster}/modules/ext/persistence/" failonerror="false" overwrite="true" verbose="true"> - <fileset dir="${external_dir}"> - <include name="**/*.jar"/> - </fileset> - </copy> - </target> - <target name="clean"> - <ant dir="../CustomerDBAccess" inheritall="false" target="clean"/> - </target> -</project> http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/manifest.mf ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/manifest.mf b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/manifest.mf deleted file mode 100755 index 7c2e7e7..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/manifest.mf +++ /dev/null @@ -1,5 +0,0 @@ -Manifest-Version: 1.0 -OpenIDE-Module: org.netbeans.modules.customerdb -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/customerdb/Bundle.properties -OpenIDE-Module-Specification-Version: 1.2 - http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/build-impl.xml ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/build-impl.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/build-impl.xml deleted file mode 100755 index f7f6824..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/build-impl.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -*** GENERATED FROM project.xml - DO NOT EDIT *** -*** EDIT ../build.xml INSTEAD *** ---> -<project name="org.netbeans.modules.customerdb-impl" basedir=".."> - <fail message="Please build using Ant 1.7.1 or higher."> - <condition> - <not> - <antversion atleast="1.7.1"/> - </not> - </condition> - </fail> - <property file="nbproject/private/suite-private.properties"/> - <property file="nbproject/suite.properties"/> - <fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail> - <property file="${suite.dir}/nbproject/private/platform-private.properties"/> - <property file="${suite.dir}/nbproject/platform.properties"/> - <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2"> - <attribute name="name"/> - <attribute name="value"/> - <sequential> - <property name="@{name}" value="${@{value}}"/> - </sequential> - </macrodef> - <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2"> - <attribute name="property"/> - <attribute name="value"/> - <sequential> - <property name="@{property}" value="@{value}"/> - </sequential> - </macrodef> - <property file="${user.properties.file}"/> - <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/> - <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/> - <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/> - <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness)."> - <condition> - <not> - <contains string="${cluster.path.evaluated}" substring="platform"/> - </not> - </condition> - </fail> - <import file="${harness.dir}/build.xml"/> -</project> http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/genfiles.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/genfiles.properties b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/genfiles.properties deleted file mode 100755 index 0980b13..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=b3af206d -build.xml.script.CRC32=8cd5f6b4 [email protected] -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=517d2575 -nbproject/build-impl.xml.script.CRC32=345d302b -nbproject/[email protected] http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.properties b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.properties deleted file mode 100755 index 1a698b6..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.properties +++ /dev/null @@ -1,40 +0,0 @@ -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU -# General Public License Version 2 only ("GPL") or the Common -# Development and Distribution License("CDDL") (collectively, the -# "License"). You may not use this file except in compliance with the -# License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html -# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -# specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header -# Notice in each file and include the License file at -# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that -# accompanied this code. If applicable, add the following below the -# License Header, with the fields enclosed by brackets [] replaced by -# your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# If you wish your version of this file to be governed by only the CDDL -# or only the GPL Version 2, indicate your decision by adding -# "[Contributor] elects to include this software in this distribution -# under the [CDDL or GPL Version 2] license." If you do not indicate a -# single choice of license, a recipient has the option to distribute -# your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. -# However, if you add GPL Version 2 code and therefore, elected the GPL -# Version 2 license, then the option applies only if the new code is -# made subject to such option by the copyright holder. -# -# Contributor(s): -is.autoload=true -javac.compilerargs=-Xlint -Xlint:-serial -proc:none -javac.source=1.6 http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.xml ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.xml deleted file mode 100644 index 35619d5..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/project.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - -Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. - -Oracle and Java are registered trademarks of Oracle and/or its affiliates. -Other names may be trademarks of their respective owners. - -The contents of this file are subject to the terms of either the GNU -General Public License Version 2 only ("GPL") or the Common -Development and Distribution License("CDDL") (collectively, the -"License"). You may not use this file except in compliance with the -License. You can obtain a copy of the License at -http://www.netbeans.org/cddl-gplv2.html -or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -specific language governing permissions and limitations under the -License. When distributing the software, include this License Header -Notice in each file and include the License file at -nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -particular file as subject to the "Classpath" exception as provided -by Oracle in the GPL Version 2 section of the License file that -accompanied this code. If applicable, add the following below the -License Header, with the fields enclosed by brackets [] replaced by -your own identifying information: -"Portions Copyrighted [year] [name of copyright owner]" - -If you wish your version of this file to be governed by only the CDDL -or only the GPL Version 2, indicate your decision by adding -"[Contributor] elects to include this software in this distribution -under the [CDDL or GPL Version 2] license." If you do not indicate a -single choice of license, a recipient has the option to distribute -your version of this file under either the CDDL, the GPL Version 2 or -to extend the choice of license to its licensees as provided above. -However, if you add GPL Version 2 code and therefore, elected the GPL -Version 2 license, then the option applies only if the new code is -made subject to such option by the copyright holder. - -Contributor(s): ---> -<project xmlns="http://www.netbeans.org/ns/project/1"> - <type>org.netbeans.modules.apisupport.project</type> - <configuration> - <data xmlns="http://www.netbeans.org/ns/nb-module-project/3"> - <code-name-base>org.netbeans.modules.customerdb</code-name-base> - <suite-component/> - <module-dependencies> - <dependency> - <code-name-base>org.netbeans.modules.derbyclientlibrary</code-name-base> - <run-dependency> - <specification-version>1.1</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.util</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>9.3</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.execution</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>9.0</specification-version> - </run-dependency> - </dependency> - </module-dependencies> - <public-packages> - <package>demo</package> - <package>org.netbeans.modules.customerdb</package> - <package>javax.persistence.spi</package> - <package>javax.persistence.criteria</package> - <package>javax.persistence</package> - <package>javax.persistence.metamodel</package> - </public-packages> - <class-path-extension> - <runtime-relative-path>ext/CustomerDBAccess.jar</runtime-relative-path> - <binary-origin>../CustomerDBAccess/dist/CustomerDBAccess.jar</binary-origin> - </class-path-extension> - <class-path-extension> - <runtime-relative-path>ext/persistence/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar</runtime-relative-path> - <binary-origin>external/org.eclipse.persistence.jpa.jpql_2.5.2.v20140319-9ad6abd.jar</binary-origin> - </class-path-extension> - <class-path-extension> - <runtime-relative-path>ext/persistence/eclipselink.jar</runtime-relative-path> - <binary-origin>external/eclipselink.jar</binary-origin> - </class-path-extension> - <class-path-extension> - <runtime-relative-path>ext/persistence/javax.persistence_2.1.0.v201304241213.jar</runtime-relative-path> - <binary-origin>external/javax.persistence_2.1.0.v201304241213.jar</binary-origin> - </class-path-extension> - </data> - </configuration> -</project> http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/suite.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/suite.properties b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/suite.properties deleted file mode 100755 index 78e330f..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/nbproject/suite.properties +++ /dev/null @@ -1,38 +0,0 @@ -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU -# General Public License Version 2 only ("GPL") or the Common -# Development and Distribution License("CDDL") (collectively, the -# "License"). You may not use this file except in compliance with the -# License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html -# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -# specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header -# Notice in each file and include the License file at -# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that -# accompanied this code. If applicable, add the following below the -# License Header, with the fields enclosed by brackets [] replaced by -# your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# If you wish your version of this file to be governed by only the CDDL -# or only the GPL Version 2, indicate your decision by adding -# "[Contributor] elects to include this software in this distribution -# under the [CDDL or GPL Version 2] license." If you do not indicate a -# single choice of license, a recipient has the option to distribute -# your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. -# However, if you add GPL Version 2 code and therefore, elected the GPL -# Version 2 license, then the option applies only if the new code is -# made subject to such option by the copyright holder. -# -# Contributor(s): -suite.dir=${basedir}/.. http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/Bundle.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/Bundle.properties b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/Bundle.properties deleted file mode 100755 index eeb6de2..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/Bundle.properties +++ /dev/null @@ -1,38 +0,0 @@ -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU -# General Public License Version 2 only ("GPL") or the Common -# Development and Distribution License("CDDL") (collectively, the -# "License"). You may not use this file except in compliance with the -# License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html -# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -# specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header -# Notice in each file and include the License file at -# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that -# accompanied this code. If applicable, add the following below the -# License Header, with the fields enclosed by brackets [] replaced by -# your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# If you wish your version of this file to be governed by only the CDDL -# or only the GPL Version 2, indicate your decision by adding -# "[Contributor] elects to include this software in this distribution -# under the [CDDL or GPL Version 2] license." If you do not indicate a -# single choice of license, a recipient has the option to distribute -# your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. -# However, if you add GPL Version 2 code and therefore, elected the GPL -# Version 2 license, then the option applies only if the new code is -# made subject to such option by the copyright holder. -# -# Contributor(s): -OpenIDE-Module-Name=CustomerDBAccessLibrary http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/JavaDBSupport.java ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/JavaDBSupport.java b/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/JavaDBSupport.java deleted file mode 100644 index 38d0059..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerDBAccessLibrary/src/org/netbeans/modules/customerdb/JavaDBSupport.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - * - * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. - * - * Oracle and Java are registered trademarks of Oracle and/or its affiliates. - * Other names may be trademarks of their respective owners. - * - * The contents of this file are subject to the terms of either the GNU - * General Public License Version 2 only ("GPL") or the Common - * Development and Distribution License("CDDL") (collectively, the - * "License"). You may not use this file except in compliance with the - * License. You can obtain a copy of the License at - * http://www.netbeans.org/cddl-gplv2.html - * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the - * specific language governing permissions and limitations under the - * License. When distributing the software, include this License Header - * Notice in each file and include the License file at - * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the GPL Version 2 section of the License file that - * accompanied this code. If applicable, add the following below the - * License Header, with the fields enclosed by brackets [] replaced by - * your own identifying information: - * "Portions Copyrighted [year] [name of copyright owner]" - * - * Contributor(s): - * - * The Original Software is NetBeans. The Initial Developer of the Original - * Software is Sun Microsystems, Inc. Portions Copyright 1997-2010 Sun - * Microsystems, Inc. All Rights Reserved. - * - * If you wish your version of this file to be governed by only the CDDL - * or only the GPL Version 2, indicate your decision by adding - * "[Contributor] elects to include this software in this distribution - * under the [CDDL or GPL Version 2] license." If you do not indicate a - * single choice of license, a recipient has the option to distribute - * your version of this file under either the CDDL, the GPL Version 2 or - * to extend the choice of license to its licensees as provided above. - * However, if you add GPL Version 2 code and therefore, elected the GPL - * Version 2 license, then the option applies only if the new code is - * made subject to such option by the copyright holder. - */ -package org.netbeans.modules.customerdb; - -import java.io.File; -import java.io.IOException; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.openide.execution.NbProcessDescriptor; -import org.openide.util.Exceptions; -import org.openide.util.NbBundle; -import org.openide.util.BaseUtilities; - -public class JavaDBSupport { - public static final String JAVADB_HOME = "javadb.home"; - public static final String JAVADB_PROPERTIES_HOME = "javadb.properties.home"; - public static void ensureStartedDB() { - try { - startDB(); - } catch (IOException ex) { - Exceptions.printStackTrace(ex); - } - } - - private static void startDB() throws IOException { - String java = null; - File javaExecuble = new File(System.getProperty("java.home"), "/bin/java" + (BaseUtilities.isWindows() ? ".exe" : "")); // NOI18N - if (javaExecuble != null && javaExecuble.exists()) { - if (javaExecuble.canExecute()) { - java = javaExecuble.getAbsolutePath(); - } - } - if (java == null) { - // XXX: MessageBox - } - - if (getDerbyInstallation() == null) { - // XXX: MessageBox - } - - // java -Dderby.system.home="<userdir/derby>" -classpath - // "<DERBY_INSTALL>/lib/derby.jar:<DERBY_INSTALL>/lib/derbytools.jar:<DERBY_INSTALL>/lib/derbynet.jar" - // org.apache.derby.drda.NetworkServerControl start - NbProcessDescriptor desc = new NbProcessDescriptor( - java, - "-Dderby.system.home=\"" + getDerbySystemHome() + "\" " + - "-classpath \"" + getNetworkServerClasspath() + "\"" + - " org.apache.derby.drda.NetworkServerControl start" - ); - Logger.getLogger(JavaDBSupport.class.getName()).log(Level.FINE, "Running {0} {1}", new String[] {desc.getProcessName(), desc.getArguments()}); - Process process = desc.exec(null, getEnvironment(), true, getDerbyInstallation()); - if (process == null) { - Logger.getLogger(JavaDBSupport.class.getName()).log(Level.FINE, "Process {0} is running.", new Object[] {process}); - } else { - Logger.getLogger(JavaDBSupport.class.getName()).log(Level.FINE, "Process didn't start."); - } - } - - private static String getDerbySystemHome() { - String home = null; - home = System.getProperty(JAVADB_PROPERTIES_HOME); - if (home == null || home.length() == 0) { - // path to the default place of Java DB server in NB IDE - home = System.getProperty("user.home") + "/.netbeans-derby/"; - } - return home; - } - - private static String getNetworkServerClasspath() { - File f = getDerbyInstallation(); - if (f == null) { - throw new IllegalStateException("No JavaDB installation found."); - } - return - new File(f, "lib/derby.jar").getAbsolutePath() + File.pathSeparator + - new File(f, "lib/derbytools.jar").getAbsolutePath() + File.pathSeparator + - new File(f, "lib/derbynet.jar").getAbsolutePath(); - } - - private static File getDerbyInstallation() { - File f = null; - String javaDBHome = System.getProperty(JAVADB_HOME); - if (javaDBHome == null) { - javaDBHome = NbBundle.getMessage(JavaDBSupport.class, JAVADB_HOME); - if (javaDBHome != null) { - f = new File(javaDBHome); - } else { - String javaHome = System.getProperty("java.home"); - // path to JavaDB in JDK6 - f = new File(javaHome + "/../db/"); - } - } else { - f = new File(javaDBHome); - } - return f != null && f.exists() ? f : null; - } - - private static String[] getEnvironment() { - String location = getDerbyInstallation().getAbsolutePath(); - if (location.equals("")) { // NOI18N - return null; - } - return new String[] { "DERBY_INSTALL=" + location }; // NOI18N - } - -} http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/build.xml ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/build.xml b/apisupport.crudsample/crud-sample-application/CustomerEditor/build.xml deleted file mode 100644 index eda3f8c..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/build.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - -Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. - -Oracle and Java are registered trademarks of Oracle and/or its affiliates. -Other names may be trademarks of their respective owners. - -The contents of this file are subject to the terms of either the GNU -General Public License Version 2 only ("GPL") or the Common -Development and Distribution License("CDDL") (collectively, the -"License"). You may not use this file except in compliance with the -License. You can obtain a copy of the License at -http://www.netbeans.org/cddl-gplv2.html -or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -specific language governing permissions and limitations under the -License. When distributing the software, include this License Header -Notice in each file and include the License file at -nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -particular file as subject to the "Classpath" exception as provided -by Oracle in the GPL Version 2 section of the License file that -accompanied this code. If applicable, add the following below the -License Header, with the fields enclosed by brackets [] replaced by -your own identifying information: -"Portions Copyrighted [year] [name of copyright owner]" - -If you wish your version of this file to be governed by only the CDDL -or only the GPL Version 2, indicate your decision by adding -"[Contributor] elects to include this software in this distribution -under the [CDDL or GPL Version 2] license." If you do not indicate a -single choice of license, a recipient has the option to distribute -your version of this file under either the CDDL, the GPL Version 2 or -to extend the choice of license to its licensees as provided above. -However, if you add GPL Version 2 code and therefore, elected the GPL -Version 2 license, then the option applies only if the new code is -made subject to such option by the copyright holder. - -Contributor(s): ---> -<!-- You may freely edit this file. See harness/README in the NetBeans platform --> -<!-- for some information on what you could do (e.g. targets to override). --> -<!-- If you delete this file and reopen the project it will be recreated. --> -<project name="org.netbeans.modules.customereditor" default="netbeans" basedir="."> - <description>Builds, tests, and runs the project org.netbeans.modules.customereditor.</description> - <import file="nbproject/build-impl.xml"/> -</project> http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/manifest.mf ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/manifest.mf b/apisupport.crudsample/crud-sample-application/CustomerEditor/manifest.mf deleted file mode 100644 index 1f009c8..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/manifest.mf +++ /dev/null @@ -1,6 +0,0 @@ -Manifest-Version: 1.0 -OpenIDE-Module: org.netbeans.modules.customereditor -OpenIDE-Module-Layer: org/netbeans/modules/customereditor/layer.xml -OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/customereditor/Bundle.properties -OpenIDE-Module-Specification-Version: 1.2 - http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/build-impl.xml ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/build-impl.xml b/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/build-impl.xml deleted file mode 100644 index cff6440..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/build-impl.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -*** GENERATED FROM project.xml - DO NOT EDIT *** -*** EDIT ../build.xml INSTEAD *** ---> -<project name="org.netbeans.modules.customereditor-impl" basedir=".."> - <fail message="Please build using Ant 1.7.1 or higher."> - <condition> - <not> - <antversion atleast="1.7.1"/> - </not> - </condition> - </fail> - <property file="nbproject/private/suite-private.properties"/> - <property file="nbproject/suite.properties"/> - <fail unless="suite.dir">You must set 'suite.dir' to point to your containing module suite</fail> - <property file="${suite.dir}/nbproject/private/platform-private.properties"/> - <property file="${suite.dir}/nbproject/platform.properties"/> - <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-project/2"> - <attribute name="name"/> - <attribute name="value"/> - <sequential> - <property name="@{name}" value="${@{value}}"/> - </sequential> - </macrodef> - <macrodef name="evalprops" uri="http://www.netbeans.org/ns/nb-module-project/2"> - <attribute name="property"/> - <attribute name="value"/> - <sequential> - <property name="@{property}" value="@{value}"/> - </sequential> - </macrodef> - <property file="${user.properties.file}"/> - <nbmproject2:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/> - <nbmproject2:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/> - <nbmproject2:evalprops property="cluster.path.evaluated" value="${cluster.path}" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/> - <fail message="Path to 'platform' cluster missing in $${cluster.path} property or using corrupt Netbeans Platform (missing harness)."> - <condition> - <not> - <contains string="${cluster.path.evaluated}" substring="platform"/> - </not> - </condition> - </fail> - <import file="${harness.dir}/build.xml"/> -</project> http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/genfiles.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/genfiles.properties b/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/genfiles.properties deleted file mode 100644 index d3fff86..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/genfiles.properties +++ /dev/null @@ -1,8 +0,0 @@ -build.xml.data.CRC32=2bb71dcb -build.xml.script.CRC32=0633455b [email protected] -# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. -# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=2bb71dcb -nbproject/build-impl.xml.script.CRC32=8f46581e -nbproject/[email protected] http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/platform.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/platform.properties b/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/platform.properties deleted file mode 100644 index e787580..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/platform.properties +++ /dev/null @@ -1,54 +0,0 @@ -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU -# General Public License Version 2 only ("GPL") or the Common -# Development and Distribution License("CDDL") (collectively, the -# "License"). You may not use this file except in compliance with the -# License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html -# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -# specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header -# Notice in each file and include the License file at -# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that -# accompanied this code. If applicable, add the following below the -# License Header, with the fields enclosed by brackets [] replaced by -# your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# If you wish your version of this file to be governed by only the CDDL -# or only the GPL Version 2, indicate your decision by adding -# "[Contributor] elects to include this software in this distribution -# under the [CDDL or GPL Version 2] license." If you do not indicate a -# single choice of license, a recipient has the option to distribute -# your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. -# However, if you add GPL Version 2 code and therefore, elected the GPL -# Version 2 license, then the option applies only if the new code is -# made subject to such option by the copyright holder. -# -# Contributor(s): -cluster.path=\ - ${nbplatform.active.dir}/platform -disabled.modules=\ - org.openide.compat,\ - org.netbeans.modules.autoupdate.services,\ - org.netbeans.api.visual,\ - org.netbeans.core.multiview,\ - org.netbeans.modules.favorites,\ - org.openide.util.enumerations,\ - org.netbeans.modules.core.kit,\ - org.netbeans.modules.autoupdate.ui,\ - org.openide.options,\ - org.netbeans.modules.templates,\ - org.netbeans.libs.jsr223,\ - org.netbeans.core.execution,\ - org.openide.execution -nbplatform.active=default http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.properties b/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.properties deleted file mode 100644 index d20299a..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.properties +++ /dev/null @@ -1,39 +0,0 @@ -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU -# General Public License Version 2 only ("GPL") or the Common -# Development and Distribution License("CDDL") (collectively, the -# "License"). You may not use this file except in compliance with the -# License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html -# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -# specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header -# Notice in each file and include the License file at -# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that -# accompanied this code. If applicable, add the following below the -# License Header, with the fields enclosed by brackets [] replaced by -# your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# If you wish your version of this file to be governed by only the CDDL -# or only the GPL Version 2, indicate your decision by adding -# "[Contributor] elects to include this software in this distribution -# under the [CDDL or GPL Version 2] license." If you do not indicate a -# single choice of license, a recipient has the option to distribute -# your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. -# However, if you add GPL Version 2 code and therefore, elected the GPL -# Version 2 license, then the option applies only if the new code is -# made subject to such option by the copyright holder. -# -# Contributor(s): -javac.source=1.6 -javac.compilerargs=-Xlint -Xlint:-serial -proc:none http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.xml ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.xml b/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.xml deleted file mode 100644 index 80018f0..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/project.xml +++ /dev/null @@ -1,133 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- -DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. - -Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. - -Oracle and Java are registered trademarks of Oracle and/or its affiliates. -Other names may be trademarks of their respective owners. - -The contents of this file are subject to the terms of either the GNU -General Public License Version 2 only ("GPL") or the Common -Development and Distribution License("CDDL") (collectively, the -"License"). You may not use this file except in compliance with the -License. You can obtain a copy of the License at -http://www.netbeans.org/cddl-gplv2.html -or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -specific language governing permissions and limitations under the -License. When distributing the software, include this License Header -Notice in each file and include the License file at -nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -particular file as subject to the "Classpath" exception as provided -by Oracle in the GPL Version 2 section of the License file that -accompanied this code. If applicable, add the following below the -License Header, with the fields enclosed by brackets [] replaced by -your own identifying information: -"Portions Copyrighted [year] [name of copyright owner]" - -If you wish your version of this file to be governed by only the CDDL -or only the GPL Version 2, indicate your decision by adding -"[Contributor] elects to include this software in this distribution -under the [CDDL or GPL Version 2] license." If you do not indicate a -single choice of license, a recipient has the option to distribute -your version of this file under either the CDDL, the GPL Version 2 or -to extend the choice of license to its licensees as provided above. -However, if you add GPL Version 2 code and therefore, elected the GPL -Version 2 license, then the option applies only if the new code is -made subject to such option by the copyright holder. - -Contributor(s): ---> -<project xmlns="http://www.netbeans.org/ns/project/1"> - <type>org.netbeans.modules.apisupport.project</type> - <configuration> - <data xmlns="http://www.netbeans.org/ns/nb-module-project/3"> - <code-name-base>org.netbeans.modules.customereditor</code-name-base> - <suite-component/> - <module-dependencies> - <dependency> - <code-name-base>org.netbeans.modules.customerdb</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>1.0</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.netbeans.modules.customerviewer</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>1.1</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.netbeans.modules.settings</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <release-version>1</release-version> - <specification-version>1.23.0.1</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.awt</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>7.20.0.1</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.dialogs</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>7.14</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.nodes</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>7.13.0.1</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.util</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>9.3</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.util.ui</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>9.3</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.util.lookup</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>8.0.0.1</specification-version> - </run-dependency> - </dependency> - <dependency> - <code-name-base>org.openide.windows</code-name-base> - <build-prerequisite/> - <compile-dependency/> - <run-dependency> - <specification-version>6.31</specification-version> - </run-dependency> - </dependency> - </module-dependencies> - <public-packages/> - </data> - </configuration> -</project> http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/suite.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/suite.properties b/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/suite.properties deleted file mode 100644 index 78e330f..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/nbproject/suite.properties +++ /dev/null @@ -1,38 +0,0 @@ -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU -# General Public License Version 2 only ("GPL") or the Common -# Development and Distribution License("CDDL") (collectively, the -# "License"). You may not use this file except in compliance with the -# License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html -# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -# specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header -# Notice in each file and include the License file at -# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that -# accompanied this code. If applicable, add the following below the -# License Header, with the fields enclosed by brackets [] replaced by -# your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# If you wish your version of this file to be governed by only the CDDL -# or only the GPL Version 2, indicate your decision by adding -# "[Contributor] elects to include this software in this distribution -# under the [CDDL or GPL Version 2] license." If you do not indicate a -# single choice of license, a recipient has the option to distribute -# your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. -# However, if you add GPL Version 2 code and therefore, elected the GPL -# Version 2 license, then the option applies only if the new code is -# made subject to such option by the copyright holder. -# -# Contributor(s): -suite.dir=${basedir}/.. http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/Bundle.properties ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/Bundle.properties b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/Bundle.properties deleted file mode 100644 index 6fc4684..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/Bundle.properties +++ /dev/null @@ -1,44 +0,0 @@ -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. -# -# Copyright (c) 2010, 2016 Oracle and/or its affiliates. All rights reserved. -# -# Oracle and Java are registered trademarks of Oracle and/or its affiliates. -# Other names may be trademarks of their respective owners. -# -# The contents of this file are subject to the terms of either the GNU -# General Public License Version 2 only ("GPL") or the Common -# Development and Distribution License("CDDL") (collectively, the -# "License"). You may not use this file except in compliance with the -# License. You can obtain a copy of the License at -# http://www.netbeans.org/cddl-gplv2.html -# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the -# specific language governing permissions and limitations under the -# License. When distributing the software, include this License Header -# Notice in each file and include the License file at -# nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this -# particular file as subject to the "Classpath" exception as provided -# by Oracle in the GPL Version 2 section of the License file that -# accompanied this code. If applicable, add the following below the -# License Header, with the fields enclosed by brackets [] replaced by -# your own identifying information: -# "Portions Copyrighted [year] [name of copyright owner]" -# -# If you wish your version of this file to be governed by only the CDDL -# or only the GPL Version 2, indicate your decision by adding -# "[Contributor] elects to include this software in this distribution -# under the [CDDL or GPL Version 2] license." If you do not indicate a -# single choice of license, a recipient has the option to distribute -# your version of this file under either the CDDL, the GPL Version 2 or -# to extend the choice of license to its licensees as provided above. -# However, if you add GPL Version 2 code and therefore, elected the GPL -# Version 2 license, then the option applies only if the new code is -# made subject to such option by the copyright holder. -# -# Contributor(s): -CTL_EditorAction=Editor -CTL_EditorTopComponent=Editor Window -CTL_NewAction=New -HINT_EditorTopComponent=This is a Editor window -OpenIDE-Module-Name=CustomerEditor -EditorTopComponent.jLabel1.text=&Name: -EditorTopComponent.jLabel2.text=&City: http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.form ---------------------------------------------------------------------- diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.form b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.form deleted file mode 100644 index ef1ca69..0000000 --- a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.form +++ /dev/null @@ -1,72 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> - -<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo"> - <AuxValues> - <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/> - <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> - <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> - <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="true"/> - <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/> - <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> - <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> - <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> - <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> - </AuxValues> - - <Layout> - <DimensionLayout dim="0"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="1" attributes="0"> - <Component id="jLabel1" min="-2" max="-2" attributes="0"/> - <Component id="jLabel2" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="0" attributes="0"> - <Component id="jTextField2" pref="321" max="32767" attributes="0"/> - <Component id="jTextField1" alignment="0" pref="321" max="32767" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - <DimensionLayout dim="1"> - <Group type="103" groupAlignment="0" attributes="0"> - <Group type="102" alignment="0" attributes="0"> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace max="-2" attributes="0"/> - <Group type="103" groupAlignment="3" attributes="0"> - <Component id="jTextField2" alignment="3" min="-2" max="-2" attributes="0"/> - <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/> - </Group> - <EmptySpace pref="228" max="32767" attributes="0"/> - </Group> - </Group> - </DimensionLayout> - </Layout> - <SubComponents> - <Component class="javax.swing.JLabel" name="jLabel1"> - <Properties> - <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> - <ResourceString bundle="org/netbeans/modules/customereditor/Bundle.properties" key="EditorTopComponent.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> - </Property> - </Properties> - </Component> - <Component class="javax.swing.JLabel" name="jLabel2"> - <Properties> - <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> - <ResourceString bundle="org/netbeans/modules/customereditor/Bundle.properties" key="EditorTopComponent.jLabel2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> - </Property> - </Properties> - </Component> - <Component class="javax.swing.JTextField" name="jTextField1"> - </Component> - <Component class="javax.swing.JTextField" name="jTextField2"> - </Component> - </SubComponents> -</Form>
