You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ge...@apache.org on 2017/09/20 18:55:19 UTC
[01/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Repository: incubator-netbeans
Updated Branches:
refs/heads/master 227738f78 -> b7aa832e3
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/layer.xml b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/layer.xml
deleted file mode 100644
index 36279a8..0000000
--- a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/layer.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
-<!--
-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-2006 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.
--->
-<filesystem>
- <folder name="Templates">
- <folder name="Project">
- <folder name="Samples">
- <folder name="ApiSupport">
- <attr name="position" intvalue="700"/>
- <file name="PaintAppProject.zip" url="PaintAppProject.zip">
- <attr name="position" intvalue="2000"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/apisupport/paintapp/paint.png"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.apisupport.paintapp.Bundle"/>
- <attr name="instantiatingIterator" methodvalue="org.netbeans.modules.apisupport.paintapp.PaintAppWizardIterator.createIterator"/>
- <attr name="instantiatingWizardURL" urlvalue="nbresloc:/org/netbeans/modules/apisupport/paintapp/PaintAppDescription.html"/>
- <attr name="template" boolvalue="true"/>
- </file>
- </folder>
- </folder>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/paint.png
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/paint.png b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/paint.png
deleted file mode 100644
index db5281b..0000000
Binary files a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/paint.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/test/unit/src/org/netbeans/modules/apisupport/project/BuildPaintapplicationTest.java
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/test/unit/src/org/netbeans/modules/apisupport/project/BuildPaintapplicationTest.java b/apisupport.paintapp/test/unit/src/org/netbeans/modules/apisupport/project/BuildPaintapplicationTest.java
deleted file mode 100644
index 35bdba4..0000000
--- a/apisupport.paintapp/test/unit/src/org/netbeans/modules/apisupport/project/BuildPaintapplicationTest.java
+++ /dev/null
@@ -1,196 +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-2006 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.apisupport.project;
-
-import java.io.File;
-import java.io.InputStream;
-import java.util.Properties;
-import org.apache.tools.ant.module.api.support.ActionUtils;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.junit.RandomlyFails;
-import org.netbeans.modules.apisupport.project.layers.LayerTestBase;
-import org.netbeans.modules.apisupport.project.suite.SuiteProject;
-import org.netbeans.spi.project.support.ant.GeneratedFilesHelper;
-import org.openide.DialogDescriptor;
-import org.openide.execution.ExecutorTask;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-
-/**
- * Tests Paintapp sample.
- * Invokes various Ant targets over Paintapp sample.
- *
- * @author Tomas Musil
- */
-public class BuildPaintapplicationTest extends TestBase {
-
- private File paintFolder = null;
-
- static {
- // #65461: do not try to load ModuleInfo instances from ant module
- System.setProperty("org.netbeans.core.startup.ModuleSystem.CULPRIT", "true");
- LayerTestBase.Lkp.setLookup(new Object[0]);
- DialogDisplayerImpl.returnFromNotify(DialogDescriptor.NO_OPTION);
- }
-
- public BuildPaintapplicationTest(String testName) {
- super(testName);
- }
-
- protected void setUp() throws Exception {
- clearWorkDir();
- noDataDir = true;
- super.setUp();
- InstalledFileLocatorImpl.registerDestDir(destDirF);
- TestAntLogger.getDefault().setEnabled(true);
- }
-
- protected void tearDown() throws Exception {
- TestAntLogger.getDefault().setEnabled(false);
- }
-
- /**
- * Extracts paintapp to workdir, then platform properties are copied and ant task(s) is called. Build status is returned
- */
- public int runAntTargetsOnPaintapp(String[] targets) throws Exception{
- InputStream is = getClass().getClassLoader().getResourceAsStream("org/netbeans/modules/apisupport/paintapp/PaintAppProject.zip");
- assertNotNull(is);
- paintFolder = new File(getWorkDir(),"paintapp");
- paintFolder.mkdir();
- FileObject fo = FileUtil.toFileObject(paintFolder);
- assertNotNull(fo);
-
-
- try {
- FileUtil.extractJar(fo,is);
- } finally {
- is.close();
- }
-
- File buildProps = new File(getWorkDir(), "build.properties");
- File privateFolder = new File(new File(paintFolder, "nbproject"),"private");
- privateFolder.mkdir();
-
- FileObject platfPrivateProps = FileUtil.copyFile(FileUtil.toFileObject(buildProps), FileUtil.toFileObject(privateFolder), "platform-private");
- assertNotNull(platfPrivateProps);
- SuiteProject PaintappSuite = (SuiteProject) ProjectManager.getDefault().findProject(fo);
- assertNotNull(PaintappSuite);
- FileObject buildScript = PaintappSuite.getProjectDirectory().getFileObject(GeneratedFilesHelper.BUILD_XML_PATH);
- assertNotNull(buildScript);
- assertTrue(buildScript.isValid());
-
- Properties p = new Properties();
- p.setProperty("jnlp.sign.jars", "false");
-
- System.out.println("------------- BUILD OUTPUT --------------");
- ExecutorTask et = ActionUtils.runTarget(buildScript, targets, p);
- et.waitFinished();
- System.out.println("-----------------------------------------");
-
- return et.result();
- }
-
- /**
- * Invokes build-jnlp target on paintapp
- */
- public void testBuildJNLP() throws Exception {
- int ret = runAntTargetsOnPaintapp(new String[] {"build-jnlp"});
- assertEquals("build-jnlp ant target should return zero - build successful", 0 , ret);
- File dist = new File(paintFolder,"dist");
- File warFile = new File(dist,"paintit.war");
- assertTrue("paintapp.war file should be in dist folder", warFile.exists());
-
- }
-
- /**
- * Invokes build-zip target on paintapp
- */
- public void testBuildZip() throws Exception {
- int ret = runAntTargetsOnPaintapp(new String[] {"build-zip"});
- assertEquals("build-zipant target should return zero - build successful", 0 , ret);
- File dist = new File(paintFolder,"dist");
- File zipFile = new File(dist,"paintit.zip");
- assertTrue("paintit.zip file should be in dist folder", zipFile.exists());
- }
-
- /**
- * Invokes build target on paintapp
- */
- public void testBuild() throws Exception {
- int ret = runAntTargetsOnPaintapp(new String[] {"build"});
- assertEquals("build ant target should return zero - build successful", 0 , ret);
- File buildFolder = new File(paintFolder,"build");
- assertTrue("build folder should exist", buildFolder.exists() && buildFolder.isDirectory());
- String[] children = buildFolder.list();
- assertTrue("build folder is not empty", children.length>0);
-
- }
-
- /**
- * Invokes nbms target on paintapp
- */
- public void testBuildNBMs() throws Exception {
- int ret = runAntTargetsOnPaintapp(new String[] {"nbms"});
- assertEquals("build ant target should return zero - build successful", 0 , ret);
- File buildFolder = new File(paintFolder,"build");
- File updatesFolder = new File(buildFolder,"updates");
- assertTrue("build/update folder exists", updatesFolder.exists() && updatesFolder.isDirectory());
- File paintNbm = new File(updatesFolder, "org-netbeans-paint.nbm");
- File colorchooserNbm = new File(updatesFolder, "org-netbeans-swing-colorchooser.nbm");
- assertTrue("Both nbms(paint+colorchooser) are in build/updates folder", paintNbm.exists() && colorchooserNbm.exists());
- }
-
- /**
- * Invokes clean target on paintapp
- */
- public void testClean() throws Exception {
- int ret = runAntTargetsOnPaintapp(new String[] {"clean"});
- assertEquals("clean ant target should return zero - build successful", 0 , ret);
- File buildFolder = new File(paintFolder,"build");
- File distFolder = new File(paintFolder,"dist");
- assertTrue("build and dist folders are deleted", !distFolder.exists() && !buildFolder.exists());
- }
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/nbbuild/cluster.properties
----------------------------------------------------------------------
diff --git a/nbbuild/cluster.properties b/nbbuild/cluster.properties
index 1120a24..308d80d 100644
--- a/nbbuild/cluster.properties
+++ b/nbbuild/cluster.properties
@@ -732,13 +732,9 @@ nb.cluster.apisupport.depends=\
nb.cluster.harness
nb.cluster.apisupport=\
apisupport.ant,\
- apisupport.crudsample,\
- apisupport.feedreader,\
apisupport.installer,\
apisupport.installer.maven,\
apisupport.kit,\
- apisupport.osgidemo,\
- apisupport.paintapp,\
apisupport.project,\
apisupport.refactoring,\
apisupport.wizards,\
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/nbbuild/hudson/core-main
----------------------------------------------------------------------
diff --git a/nbbuild/hudson/core-main b/nbbuild/hudson/core-main
index 8a08800..81bf326 100644
--- a/nbbuild/hudson/core-main
+++ b/nbbuild/hudson/core-main
@@ -23,11 +23,7 @@ api.progress.nb,\
api.templates,\
api.visual,\
apisupport.ant,\
-apisupport.crudsample,\
-apisupport.feedreader,\
apisupport.harness,\
-apisupport.osgidemo,\
-apisupport.paintapp,\
apisupport.project,\
apisupport.refactoring,\
apisupport.wizards,\
[05/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/nbproject/project.xml b/apisupport.osgidemo/nbproject/project.xml
deleted file mode 100644
index c68d558..0000000
--- a/apisupport.osgidemo/nbproject/project.xml
+++ /dev/null
@@ -1,175 +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.apisupport.osgidemo</code-name-base>
- <module-dependencies>
- <dependency>
- <code-name-base>org.netbeans.modules.projectapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.29</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.78</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</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.filesystems</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.0</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.util.lookup</code-name-base>
- <build-prerequisite/>
- <compile-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</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.3</specification-version>
- </run-dependency>
- </dependency>
- </module-dependencies>
- <test-dependencies>
- <test-type>
- <name>unit</name>
- <test-dependency>
- <code-name-base>org.apache.tools.ant.module</code-name-base>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.libs.freemarker</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.libs.junit4</code-name-base>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.ant</code-name-base>
- <compile-dependency/>
- <test/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.osgidemo</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.project</code-name-base>
- <recursive/>
- <compile-dependency/>
- <test/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.masterfs</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.nbjunit</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.parsing.nb</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.projectapi.nb</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.projectui</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.openide.execution</code-name-base>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.openide.util.lookup</code-name-base>
- <test/>
- </test-dependency>
- </test-type>
- </test-dependencies>
- <public-packages/>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties b/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
deleted file mode 100644
index 3356fc7..0000000
--- a/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
+++ /dev/null
@@ -1,43 +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):
-currentVersion=OSGi Sample {0}
-LBL_splash_window_title=Starting OSGi Sample
-#NOI18N
-SplashProgressBarBounds=0,267,473,3
-#NOI18N
-SplashRunningTextBounds=14,278,450,12
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/splash.gif
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/splash.gif b/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/splash.gif
deleted file mode 100644
index a06db69..0000000
Binary files a/apisupport.osgidemo/osgidemo/branding/core/core.jar/org/netbeans/core/startup/splash.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties b/apisupport.osgidemo/osgidemo/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
deleted file mode 100644
index 6fcb9b2..0000000
--- a/apisupport.osgidemo/osgidemo/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.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):
-CTL_MainWindow_Title=OSGi Sample {0}
-CTL_MainWindow_Title_No_Project=OSGi Sample {0}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/build.xml b/apisupport.osgidemo/osgidemo/build.xml
deleted file mode 100644
index 4307660..0000000
--- a/apisupport.osgidemo/osgidemo/build.xml
+++ /dev/null
@@ -1,55 +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="osgi-suite" basedir=".">
- <description>Builds the module suite osgi-suite.</description>
- <import file="nbproject/build-impl.xml"/>
-
- <target name="-init" depends="-download-netbinox"/>
-
- <target name="-download-netbinox" depends="suite.-init" if="netbinox.updatecenter.url">
- <autoupdate todir="netbinox" updatecenter="${netbinox.updatecenter.url}">
- <modules includes=".*" clusters="netbinox[0-9]*"/>
- </autoupdate>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/nbproject/build-impl.xml b/apisupport.osgidemo/osgidemo/nbproject/build-impl.xml
deleted file mode 100644
index c54d182..0000000
--- a/apisupport.osgidemo/osgidemo/nbproject/build-impl.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT ***
-*** EDIT ../build.xml INSTEAD ***
--->
-<project name="osgi-suite-impl" basedir=".." xmlns:sproject="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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/platform-private.properties"/>
- <property file="nbproject/platform.properties"/>
- <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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-suite-project/1">
- <attribute name="property"/>
- <attribute name="value"/>
- <sequential>
- <property name="@{property}" value="@{value}"/>
- </sequential>
- </macrodef>
- <property file="${user.properties.file}"/>
- <sproject:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir"/>
- <sproject:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir"/>
- <sproject:evalprops property="cluster.path.evaluated" value="${cluster.path}"/>
- <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>
- <fail message="Cannot find NetBeans build harness. ${line.separator}Check that nbplatform.${nbplatform.active}.netbeans.dest.dir and nbplatform.${nbplatform.active}.harness.dir are defined. ${line.separator}On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties ${line.separator}but for automated builds you should pass these properties to Ant explicitly.">
- <condition>
- <not>
- <available type="dir" file="${harness.dir}"/>
- </not>
- </condition>
- </fail>
- <import file="${harness.dir}/suite.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/nbproject/genfiles.properties b/apisupport.osgidemo/osgidemo/nbproject/genfiles.properties
deleted file mode 100644
index ed826d3..0000000
--- a/apisupport.osgidemo/osgidemo/nbproject/genfiles.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-build.xml.data.CRC32=4e759413
-build.xml.script.CRC32=b432f9be
-build.xml.stylesheet.CRC32=531c622b@1.36
-# 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=4e759413
-nbproject/build-impl.xml.script.CRC32=1e22e482
-nbproject/build-impl.xml.stylesheet.CRC32=56de960a@1.37
-nbproject/platform.xml.data.CRC32=bf1e9eb7
-nbproject/platform.xml.script.CRC32=6dcbd131
-nbproject/platform.xml.stylesheet.CRC32=4e1f53d4@2.67.1
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/nbproject/platform.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/nbproject/platform.properties b/apisupport.osgidemo/osgidemo/nbproject/platform.properties
deleted file mode 100644
index b45dc77..0000000
--- a/apisupport.osgidemo/osgidemo/nbproject/platform.properties
+++ /dev/null
@@ -1,68 +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):
-
-# <#if !netbinox??>
-disabled.modules.extra=org.netbeans.modules.netbinox
-# <#else>
-disabled.modules.extra=org.netbeans.libs.felix
-# </#if>
-
-cluster.path=\
- ${nbplatform.active.dir}/harness:\
- ${nbplatform.active.dir}/platform
-disabled.modules=\
- org.jdesktop.layout,\
- org.netbeans.api.visual,\
- org.netbeans.core.execution,\
- org.netbeans.core.multiview,\
- org.netbeans.insane,\
- org.netbeans.libs.felix,\
- org.netbeans.libs.jsr223,\
- org.netbeans.modules.autoupdate.cli,\
- org.netbeans.modules.apisupport.harness,\
- org.netbeans.modules.autoupdate.services,\
- org.netbeans.modules.autoupdate.ui,\
- org.netbeans.modules.core.kit,\
- org.netbeans.modules.favorites,\
- org.netbeans.modules.jellytools.platform,\
- org.netbeans.modules.jemmy,\
- org.openide.compat,\
- org.openide.execution,\
- org.openide.options,\
- org.openide.util.enumerations
-nbplatform.active=default
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/nbproject/platform.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/nbproject/platform.xml b/apisupport.osgidemo/osgidemo/nbproject/platform.xml
deleted file mode 100644
index c425216..0000000
--- a/apisupport.osgidemo/osgidemo/nbproject/platform.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2014, 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 name="platform" default="download" basedir="..">
- <condition property="download.required">
- <and>
- <not>
- <available file="${harness.dir}/suite.xml"/>
- </not>
- <isset property="bootstrap.url"/>
- <isset property="autoupdate.catalog.url"/>
- </and>
- </condition>
- <target name="download" if="download.required">
- <mkdir dir="${harness.dir}"/>
- <pathconvert pathsep="|" property="download.clusters">
- <mapper type="flatten"/>
- <path path="${cluster.path}"/>
- </pathconvert>
- <property name="disabled.modules" value=""/>
- <pathconvert property="module.includes" pathsep="">
- <mapper type="glob" from="${basedir}${file.separator}*" to="(?!^\Q*\E$)"/>
- <path>
- <filelist files="${disabled.modules}" dir="."/>
- </path>
- </pathconvert>
- <echo message="Downloading clusters ${download.clusters}"/>
- <property name="tasks.jar" location="${java.io.tmpdir}/tasks.jar"/>
- <get src="${bootstrap.url}" dest="${tasks.jar}" usetimestamp="true" verbose="true"/>
- <taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="${tasks.jar}"/>
- <autoupdate installdir="${nbplatform.active.dir}" updatecenter="${autoupdate.catalog.url}">
- <modules includes="${module.includes}.*" clusters="${download.clusters}"/>
- <modules includes="org[.]netbeans[.]modules[.]apisupport[.]harness" clusters="harness"/>
- </autoupdate>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/nbproject/project.properties b/apisupport.osgidemo/osgidemo/nbproject/project.properties
deleted file mode 100644
index 9d551e5..0000000
--- a/apisupport.osgidemo/osgidemo/nbproject/project.properties
+++ /dev/null
@@ -1,51 +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):
-app.icon=branding/core/core.jar/org/netbeans/core/startup/frame48.gif
-app.name=osgisample
-branding.token=${app.name}
-modules=\
- ${project.org.netbeans.demo.osgi.showbundles}
-project.org.netbeans.demo.osgi.showbundles=showbundles
-
-# <#if !netbinox??>
-project.license=mit
-app.title=Felix OSGi Sample
-# <#else>
-project.license=mit
-app.title=Netbinox OSGi Sample
-# </#if>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/nbproject/project.xml b/apisupport.osgidemo/osgidemo/nbproject/project.xml
deleted file mode 100644
index fdbcf91..0000000
--- a/apisupport.osgidemo/osgidemo/nbproject/project.xml
+++ /dev/null
@@ -1,48 +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.suite</type>
- <configuration>
- <data xmlns="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <name>osgi-suite</name>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/build.xml b/apisupport.osgidemo/osgidemo/showbundles/build.xml
deleted file mode 100644
index 2acffde..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/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.demo.osgi.showbundles" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project org.netbeans.demo.osgi.showbundles.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/manifest.mf b/apisupport.osgidemo/osgidemo/showbundles/manifest.mf
deleted file mode 100644
index 67f98d0..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/manifest.mf
+++ /dev/null
@@ -1,10 +0,0 @@
-Manifest-Version: 1.0
-Bundle-Activator: org.netbeans.demo.osgi.showbundles.Installer
-Bundle-Localization: org/netbeans/demo/osgi/showbundles/Bundle
-Bundle-Name: %OpenIDE-Module-Name
-Bundle-SymbolicName: org.netbeans.demo.osgi.showbundles
-Bundle-Version: 1.0
-Import-Package: org.osgi.framework, javax.swing
-OpenIDE-Module-Layer: org/netbeans/demo/osgi/showbundles/layer.xml
-OpenIDE-Module-Needs: org.netbeans.Netbinox
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/nbproject/build-impl.xml b/apisupport.osgidemo/osgidemo/showbundles/nbproject/build-impl.xml
deleted file mode 100644
index d54af52..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/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.demo.osgi.showbundles-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.osgidemo/osgidemo/showbundles/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/nbproject/genfiles.properties b/apisupport.osgidemo/osgidemo/showbundles/nbproject/genfiles.properties
deleted file mode 100644
index 83e57b9..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=3a4a90c7
-build.xml.script.CRC32=fe55fcc8
-build.xml.stylesheet.CRC32=79c3b980@1.37
-# 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=3a4a90c7
-nbproject/build-impl.xml.script.CRC32=0acebef1
-nbproject/build-impl.xml.stylesheet.CRC32=261c4bef@1.37
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/nbproject/project.properties b/apisupport.osgidemo/osgidemo/showbundles/nbproject/project.properties
deleted file mode 100644
index 0f9d009..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/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
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/nbproject/project.xml b/apisupport.osgidemo/osgidemo/showbundles/nbproject/project.xml
deleted file mode 100644
index 313dce5..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/nbproject/project.xml
+++ /dev/null
@@ -1,139 +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.demo.osgi.showbundles</code-name-base>
- <suite-component/>
- <module-dependencies>
- <dependency>
- <code-name-base>org.netbeans.libs.osgi</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.settings</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.25</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.awt</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.21</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.explorer</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.26</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.nodes</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.14</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.lookup</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>8.1</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.windows</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.32</specification-version>
- </run-dependency>
- </dependency>
- </module-dependencies>
- <test-dependencies>
- <test-type>
- <name>unit</name>
- <test-dependency>
- <code-name-base>org.netbeans.libs.junit4</code-name-base>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.nbjunit</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- </test-type>
- </test-dependencies>
- <public-packages/>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/nbproject/suite.properties b/apisupport.osgidemo/osgidemo/showbundles/nbproject/suite.properties
deleted file mode 100644
index 78e330f..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/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.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Bundle.properties b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Bundle.properties
deleted file mode 100644
index 22bd96e..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Bundle.properties
+++ /dev/null
@@ -1,43 +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_ShowBundlesAction=ShowBundles
-CTL_ShowBundlesTopComponent=ShowBundles Window
-HINT_ShowBundlesTopComponent=This is a ShowBundles window
-OpenIDE-Module-Name=Show OSGi Bundle List
-
-LAB_AllBundles=All Bundles
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Installer.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Installer.java b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Installer.java
deleted file mode 100644
index dfd15bf..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/Installer.java
+++ /dev/null
@@ -1,123 +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.demo.osgi.showbundles;
-
-import java.awt.Image;
-import org.openide.nodes.BeanNode;
-import org.openide.nodes.Children;
-import org.openide.nodes.Node;
-import org.openide.util.Exceptions;
-import org.openide.util.ImageUtilities;
-import org.osgi.framework.Bundle;
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.BundleEvent;
-import org.osgi.framework.BundleListener;
-
-/**
- * Remembers connection to BundleContext.
- */
-public class Installer implements BundleActivator {
- private static BundleContext context;
-
- @Override
- public void start(BundleContext c) throws Exception {
- context = c;
- }
-
- @Override
- public void stop(BundleContext c) throws Exception {
- context = null;
- }
-
- public static Children createBundleChildren() {
- assert context != null;
- return new BundleChildren();
- }
-
- private static final class BundleChildren extends Children.Keys<Bundle>
- implements BundleListener {
- @Override
- protected void addNotify() {
- context.addBundleListener(this);
- bundleChanged(null);
- }
-
- @Override
- protected void removeNotify() {
- context.removeBundleListener(this);
- }
-
- @Override
- protected Node[] createNodes(Bundle t) {
- try {
- Node bn = new BeanNode<Bundle>(t) {
- @Override
- public Image getIcon(int type) {
- if (getBean().getLocation().startsWith("netigso:/")) { // NOI18N
- return ImageUtilities.loadImage("org/netbeans/demo/osgi/showbundles/module.png");
- } else {
- return ImageUtilities.loadImage("org/netbeans/demo/osgi/showbundles/bundle.png");
- }
- }
-
- @Override
- public Image getOpenedIcon(int type) {
- return getIcon(type);
- }
- };
- bn.setName(t.getSymbolicName());
- return new Node[]{bn};
- } catch (Exception ex) {
- Exceptions.printStackTrace(ex);
- return null;
- }
- }
-
- @Override
- public void bundleChanged(BundleEvent be) {
- setKeys(context.getBundles());
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.form
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.form b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.form
deleted file mode 100644
index 4a3b89f..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.form
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.4" 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" alignment="0" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Component id="split" pref="1168" max="32767" attributes="0"/>
- <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 min="-2" max="-2" attributes="0"/>
- <Component id="split" pref="486" max="32767" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Container class="javax.swing.JSplitPane" name="split">
-
- <Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
- <SubComponents>
- <Component class="org.openide.explorer.view.BeanTreeView" name="tree">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
- <JSplitPaneConstraints position="left"/>
- </Constraint>
- </Constraints>
- </Component>
- <Component class="org.openide.explorer.propertysheet.PropertySheetView" name="sheet">
- <Constraints>
- <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
- <JSplitPaneConstraints position="right"/>
- </Constraint>
- </Constraints>
- </Component>
- </SubComponents>
- </Container>
- </SubComponents>
-</Form>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.java b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.java
deleted file mode 100644
index 489ac2a..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponent.java
+++ /dev/null
@@ -1,192 +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.demo.osgi.showbundles;
-
-import java.util.logging.Logger;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-import org.openide.windows.WindowManager;
-import org.netbeans.api.settings.ConvertAsProperties;
-import org.openide.explorer.ExplorerManager;
-import org.openide.nodes.AbstractNode;
-import org.openide.util.ImageUtilities;
-
-/**
- * Top component which displays list of bundles.
- */
-@ConvertAsProperties(dtd = "-//NetBeans Demo//Show Bundles//EN",
-autostore = false)
-public final class ShowBundlesTopComponent extends TopComponent
-implements ExplorerManager.Provider {
- private ExplorerManager em;
- private static ShowBundlesTopComponent instance;
- private static final String PREFERRED_ID = "ShowBundlesTopComponent";
-
- public ShowBundlesTopComponent() {
- setIcon(ImageUtilities.loadImage("org/netbeans/demo/osgi/showbundles/bundle.png")); // NOI18N
- AbstractNode root = new AbstractNode(Installer.createBundleChildren());
- root.setName("bundles"); // NOI18N
- root.setIconBaseWithExtension("org/netbeans/demo/osgi/showbundles/bundle.png"); // NOI18N
- root.setDisplayName(NbBundle.getMessage(ShowBundlesTopComponent.class, "LAB_AllBundles"));
- this.em = new ExplorerManager();
- em.setRootContext(root);
- initComponents();
- setName(NbBundle.getMessage(ShowBundlesTopComponent.class, "LAB_AllBundles"));
- setToolTipText(NbBundle.getMessage(ShowBundlesTopComponent.class, "HINT_ShowBundlesTopComponent"));
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- split = new javax.swing.JSplitPane();
- tree = new org.openide.explorer.view.BeanTreeView();
- sheet = new org.openide.explorer.propertysheet.PropertySheetView();
-
- split.setLeftComponent(tree);
- split.setRightComponent(sheet);
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 1168, Short.MAX_VALUE)
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(split, javax.swing.GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)
- .addContainerGap())
- );
- }// </editor-fold>//GEN-END:initComponents
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private org.openide.explorer.propertysheet.PropertySheetView sheet;
- private javax.swing.JSplitPane split;
- private org.openide.explorer.view.BeanTreeView tree;
- // End of variables declaration//GEN-END:variables
- /**
- * Gets default instance. Do not use directly: reserved for *.settings files only,
- * i.e. deserialization routines; otherwise you could get a non-deserialized instance.
- * To obtain the singleton instance, use {@link #findInstance}.
- */
- public static synchronized ShowBundlesTopComponent getDefault() {
- if (instance == null) {
- instance = new ShowBundlesTopComponent();
- }
- return instance;
- }
-
- /**
- * Obtain the ShowBundlesTopComponent instance. Never call {@link #getDefault} directly!
- */
- public static synchronized ShowBundlesTopComponent findInstance() {
- TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
- if (win == null) {
- Logger.getLogger(ShowBundlesTopComponent.class.getName()).warning(
- "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
- return getDefault();
- }
- if (win instanceof ShowBundlesTopComponent) {
- return (ShowBundlesTopComponent) win;
- }
- Logger.getLogger(ShowBundlesTopComponent.class.getName()).warning(
- "There seem to be multiple components with the '" + PREFERRED_ID
- + "' ID. That is a potential source of errors and unexpected behavior.");
- return getDefault();
- }
-
- @Override
- public int getPersistenceType() {
- return TopComponent.PERSISTENCE_ALWAYS;
- }
-
- @Override
- public void componentOpened() {
- // TODO add custom code on component opening
- }
-
- @Override
- public void componentClosed() {
- // TODO add custom code on component closing
- }
-
- void writeProperties(java.util.Properties p) {
- // better to version settings since initial version as advocated at
- // http://wiki.apidesign.org/wiki/PropertyFiles
- p.setProperty("version", "1.0");
- // TODO store your settings
- }
-
- Object readProperties(java.util.Properties p) {
- if (instance == null) {
- instance = this;
- }
- instance.readPropertiesImpl(p);
- return instance;
- }
-
- private void readPropertiesImpl(java.util.Properties p) {
- String version = p.getProperty("version");
- // TODO read your settings according to their version
- }
-
- @Override
- protected String preferredID() {
- return PREFERRED_ID;
- }
-
- @Override
- public ExplorerManager getExplorerManager() {
- return em;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentSettings.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentSettings.xml b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentSettings.xml
deleted file mode 100644
index 4bbf0ed..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentSettings.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):
--->
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
- <module name="org.netbeans.demo.osgi.showbundles" spec="1.0"/>
- <instanceof class="org.openide.windows.TopComponent"/>
- <instanceof class="org.netbeans.demo.osgi.showbundles.ShowBundlesTopComponent"/>
- <instance class="org.netbeans.demo.osgi.showbundles.ShowBundlesTopComponent" method="getDefault"/>
-</settings>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentWstcref.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentWstcref.xml b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentWstcref.xml
deleted file mode 100644
index a60e023..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/ShowBundlesTopComponentWstcref.xml
+++ /dev/null
@@ -1,46 +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):
--->
-<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
-<tc-ref version="2.0" >
- <module name="org.netbeans.demo.osgi.showbundles" spec="1.0"/>
- <tc-id id="ShowBundlesTopComponent"/>
- <state opened="true"/>
-</tc-ref>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/bundle.png
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/bundle.png b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/bundle.png
deleted file mode 100644
index 02f76f1..0000000
Binary files a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/bundle.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/layer.xml b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/layer.xml
deleted file mode 100644
index 39d3a63..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/layer.xml
+++ /dev/null
@@ -1,71 +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):
--->
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<filesystem>
- <folder name="Actions">
- <folder name="Window">
- <file name="org-netbeans-demo-osgi-showbundles-ShowBundlesAction.instance">
- <attr name="component" methodvalue="org.netbeans.demo.osgi.showbundles.ShowBundlesTopComponent.findInstance"/>
- <attr name="displayName" bundlevalue="org.netbeans.demo.osgi.showbundles.Bundle#CTL_ShowBundlesAction"/>
- <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
- <attr name="iconBase" stringvalue="org/netbeans/demo/osgi/showbundles/bundle.png"/>
- </file>
- </folder>
- </folder>
- <folder name="Menu">
- <folder name="Window">
- <file name="ShowBundlesAction.shadow">
- <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-demo-osgi-showbundles-ShowBundlesAction.instance"/>
- <attr name="position" intvalue="109"/>
- </file>
- </folder>
- </folder>
- <folder name="Windows2">
- <folder name="Components">
- <file name="ShowBundlesTopComponent.settings" url="ShowBundlesTopComponentSettings.xml"/>
- </folder>
- <folder name="Modes">
- <folder name="editor">
- <file name="ShowBundlesTopComponent.wstcref" url="ShowBundlesTopComponentWstcref.xml"/>
- </folder>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/module.png
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/module.png b/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/module.png
deleted file mode 100644
index 3a9cc50..0000000
Binary files a/apisupport.osgidemo/osgidemo/showbundles/src/org/netbeans/demo/osgi/showbundles/module.png and /dev/null differ
[11/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.java b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.java
deleted file mode 100644
index 20673f9..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponent.java
+++ /dev/null
@@ -1,367 +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.customereditor;
-
-import demo.Customer;
-import demo.DiscountCode;
-import java.io.IOException;
-import java.util.Collection;
-import java.util.logging.Logger;
-import javax.persistence.EntityManager;
-import javax.persistence.Persistence;
-import javax.persistence.Query;
-import javax.swing.SwingUtilities;
-import javax.swing.event.DocumentEvent;
-import javax.swing.event.DocumentListener;
-import org.netbeans.modules.customerdb.JavaDBSupport;
-import org.netbeans.modules.customerviewer.CustomerTopComponent;
-import org.openide.util.LookupEvent;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-import org.openide.windows.WindowManager;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-import org.openide.NotifyDescriptor.Confirmation;
-import org.openide.awt.UndoRedo;
-import org.openide.cookies.SaveCookie;
-import org.openide.util.Lookup;
-import org.openide.util.LookupListener;
-import org.openide.util.RequestProcessor;
-import org.openide.util.lookup.AbstractLookup;
-import org.openide.util.lookup.InstanceContent;
-
-/**
- * Top component which displays something.
- */
-public final class EditorTopComponent extends TopComponent implements LookupListener {
-
- private static EditorTopComponent instance;
- /** path to the icon used by the component and its open action */
-// static final String ICON_PATH = "SET/PATH/TO/ICON/HERE";
- private static final String PREFERRED_ID = "EditorTopComponent";
- private Lookup.Result result = null;
- private UndoRedo.Manager manager = new UndoRedo.Manager();
- private final SaveCookieImpl impl;
- private final InstanceContent content;
- private Customer customer;
-
- public EditorTopComponent() {
- initComponents();
- setName(NbBundle.getMessage(EditorTopComponent.class, "CTL_EditorTopComponent"));
- setToolTipText(NbBundle.getMessage(EditorTopComponent.class, "HINT_EditorTopComponent"));
-// setIcon(ImageUtilities.loadImage(ICON_PATH, true));
- jTextField1.getDocument().addUndoableEditListener(manager);
- jTextField2.getDocument().addUndoableEditListener(manager);
-
- jTextField1.getDocument().addDocumentListener(new DocumentListener() {
-
- @Override
- public void insertUpdate(DocumentEvent arg0) {
- fire(true);
- }
-
- @Override
- public void removeUpdate(DocumentEvent arg0) {
- fire(true);
- }
-
- @Override
- public void changedUpdate(DocumentEvent arg0) {
- fire(true);
- }
- });
-
- jTextField2.getDocument().addDocumentListener(new DocumentListener() {
-
- @Override
- public void insertUpdate(DocumentEvent arg0) {
- fire(true);
- }
-
- @Override
- public void removeUpdate(DocumentEvent arg0) {
- fire(true);
- }
-
- @Override
- public void changedUpdate(DocumentEvent arg0) {
- fire(true);
- }
- });
-
- //Create a new instance of our SaveCookie implementation:
- impl = new SaveCookieImpl();
-
- //Create a new instance of our dynamic object:
- content = new InstanceContent();
-
- //Add the dynamic object to the TopComponent Lookup:
- associateLookup(new AbstractLookup(content));
-
- }
-
- @Override
- public void componentOpened() {
- RequestProcessor.getDefault().post(new Runnable() {
- @Override
- public void run() {
- readCustomer();
- }
- });
- }
-
- private void readCustomer() {
- JavaDBSupport.ensureStartedDB();
- SwingUtilities.invokeLater(new Runnable() {
- @Override
- public void run() {
- TopComponent tc = WindowManager.getDefault().findTopComponent("CustomerTopComponent");
- if (tc == null) {
- // XXX: message box?
- return ;
- }
- result = tc.getLookup().lookupResult(Customer.class);
- result.addLookupListener(EditorTopComponent.this);
- resultChanged(new LookupEvent(result));
- }
- });
- }
-
- @Override
- public void componentClosed() {
- result.removeLookupListener(this);
- result = null;
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- jLabel1 = new javax.swing.JLabel();
- jLabel2 = new javax.swing.JLabel();
- jTextField1 = new javax.swing.JTextField();
- jTextField2 = new javax.swing.JTextField();
-
- org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(EditorTopComponent.class, "EditorTopComponent.jLabel1.text")); // NOI18N
-
- org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(EditorTopComponent.class, "EditorTopComponent.jLabel2.text")); // NOI18N
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
- .addComponent(jLabel1)
- .addComponent(jLabel2))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE)
- .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 321, Short.MAX_VALUE))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jLabel1)
- .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel2))
- .addContainerGap(228, Short.MAX_VALUE))
- );
- }// </editor-fold>//GEN-END:initComponents
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JTextField jTextField1;
- private javax.swing.JTextField jTextField2;
- // End of variables declaration//GEN-END:variables
-
- /**
- * Gets default instance. Do not use directly: reserved for *.settings files only,
- * i.e. deserialization routines; otherwise you could get a non-deserialized instance.
- * To obtain the singleton instance, use {@link #findInstance}.
- */
- public static synchronized EditorTopComponent getDefault() {
- if (instance == null) {
- instance = new EditorTopComponent();
- }
- return instance;
- }
-
- /**
- * Obtain the EditorTopComponent instance. Never call {@link #getDefault} directly!
- */
- public static synchronized EditorTopComponent findInstance() {
- TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
- if (win == null) {
- Logger.getLogger(EditorTopComponent.class.getName()).warning(
- "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
- return getDefault();
- }
- if (win instanceof EditorTopComponent) {
- return (EditorTopComponent) win;
- }
- Logger.getLogger(EditorTopComponent.class.getName()).warning(
- "There seem to be multiple components with the '" + PREFERRED_ID
- + "' ID. That is a potential source of errors and unexpected behavior.");
- return getDefault();
- }
-
- @Override
- public int getPersistenceType() {
- return TopComponent.PERSISTENCE_ALWAYS;
- }
-
- void writeProperties(java.util.Properties p) {
- // better to version settings since initial version as advocated at
- // http://wiki.apidesign.org/wiki/PropertyFiles
- p.setProperty("version", "1.0");
- // TODO store your settings
- }
-
- Object readProperties(java.util.Properties p) {
- if (instance == null) {
- instance = this;
- }
- instance.readPropertiesImpl(p);
- return instance;
- }
-
- private void readPropertiesImpl(java.util.Properties p) {
- String version = p.getProperty("version");
- // TODO read your settings according to their version
- }
-
- @Override
- protected String preferredID() {
- return PREFERRED_ID;
- }
-
- @Override
- public void resultChanged(LookupEvent lookupEvent) {
- Lookup.Result r = (Lookup.Result) lookupEvent.getSource();
- Collection<Customer> coll = r.allInstances();
- if (!coll.isEmpty()) {
- for (Customer cust : coll) {
- customer = cust;
- jTextField1.setText(cust.getName());
- jTextField2.setText(cust.getCity());
- }
- } else {
- jTextField1.setText("[no name]");
- jTextField2.setText("[no city]");
- }
- }
-
- public void fire(boolean modified) {
- if (modified) {
- //If the text is modified,
- //we add SaveCookie impl to Lookup:
- content.add(impl);
- } else {
- //Otherwise, we remove the SaveCookie impl from the lookup:
- content.remove(impl);
- }
- }
-
- public void resetFields() {
- customer = new Customer();
- jTextField1.setText("");
- jTextField2.setText("");
- }
-
- private class SaveCookieImpl implements SaveCookie {
-
- @Override
- public void save() throws IOException {
-
- Confirmation message = new NotifyDescriptor.Confirmation("Do you want to save \""
- + jTextField1.getText() + " (" + jTextField2.getText() + ")\"?",
- NotifyDescriptor.OK_CANCEL_OPTION,
- NotifyDescriptor.QUESTION_MESSAGE);
-
- Object result = DialogDisplayer.getDefault().notify(message);
-
- //When user clicks "Yes", indicating they really want to save,
- //we need to disable the Save button and Save menu item,
- //so that it will only be usable when the next change is made
- //to the text field:
- if (NotifyDescriptor.YES_OPTION.equals(result)) {
- fire(false);
- EntityManager entityManager = Persistence.createEntityManagerFactory("CustomerDBAccessPU").createEntityManager();
- entityManager.getTransaction().begin();
- if (customer!=null && customer.getCustomerId() != null) {
- Customer c = entityManager.find(Customer.class, customer.getCustomerId());
- c.setName(jTextField1.getText());
- c.setCity(jTextField2.getText());
- entityManager.getTransaction().commit();
- } else {
- Query query = entityManager.createQuery("SELECT MAX(c.customerId) FROM Customer c");
- Query zipCodeQuery = entityManager.createQuery("SELECT m.zipCode FROM MicroMarket m").setMaxResults(1);
- Integer newId = (Integer) query.getSingleResult() + 1;
- customer = new Customer();
- customer.setCustomerId(newId);
- customer.setName(jTextField1.getText());
- customer.setCity(jTextField2.getText());
- customer.setZip((String)zipCodeQuery.getSingleResult());
- customer.setDiscountCode(entityManager.find(DiscountCode.class, 'H'));
- entityManager.persist(customer);
- entityManager.getTransaction().commit();
- }
- CustomerTopComponent.refreshNode();
- }
-
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentSettings.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentSettings.xml b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentSettings.xml
deleted file mode 100644
index 63ea0bd..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentSettings.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):
--->
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
- <module name="org.netbeans.modules.customereditor" spec="1.0"/>
- <instanceof class="org.openide.windows.TopComponent"/>
- <instanceof class="org.netbeans.modules.customereditor.EditorTopComponent"/>
- <instance class="org.netbeans.modules.customereditor.EditorTopComponent" method="getDefault"/>
-</settings>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentWstcref.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentWstcref.xml b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentWstcref.xml
deleted file mode 100644
index 3fab3ee..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/EditorTopComponentWstcref.xml
+++ /dev/null
@@ -1,46 +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):
--->
-<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
-<tc-ref version="2.0" >
- <module name="org.netbeans.modules.customereditor" spec="1.0"/>
- <tc-id id="EditorTopComponent"/>
- <state opened="true"/>
-</tc-ref>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/NewAction.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/NewAction.java b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/NewAction.java
deleted file mode 100644
index bb1d79b..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/NewAction.java
+++ /dev/null
@@ -1,59 +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.customereditor;
-
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-
-public final class NewAction implements ActionListener {
-
- @Override
- public void actionPerformed(ActionEvent e) {
- EditorTopComponent tc = EditorTopComponent.findInstance();
- tc.resetFields();
- tc.open();
- tc.requestActive();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/layer.xml b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/layer.xml
deleted file mode 100644
index 80ac401..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/layer.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<!--
-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.
--->
-
-<filesystem>
- <folder name="Actions">
- <folder name="File">
- <file name="org-netbeans-modules-customereditor-NewAction.instance">
- <attr name="delegate" newvalue="org.netbeans.modules.customereditor.NewAction"/>
- <attr name="displayName" bundlevalue="org.netbeans.modules.customereditor.Bundle#CTL_NewAction"/>
- <attr name="iconBase" stringvalue="org/netbeans/modules/customereditor/record-new.png"/>
- <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.alwaysEnabled"/>
- <attr name="noIconInMenu" boolvalue="false"/>
- </file>
- </folder>
- <folder name="Window">
- <file name="org-netbeans-modules-customereditor-EditorAction.instance">
- <attr name="component" methodvalue="org.netbeans.modules.customereditor.EditorTopComponent.findInstance"/>
- <attr name="displayName" bundlevalue="org.netbeans.modules.customereditor.Bundle#CTL_EditorAction"/>
- <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
- </file>
- </folder>
- </folder>
- <folder name="Menu">
- <folder name="File">
- <file name="org-netbeans-modules-customereditor-NewAction.shadow">
- <attr name="originalFile" stringvalue="Actions/File/org-netbeans-modules-customereditor-NewAction.instance"/>
- <attr name="position" intvalue="0"/>
- </file>
- </folder>
- <folder name="Window">
- <file name="EditorAction.shadow">
- <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-modules-customereditor-EditorAction.instance"/>
- </file>
- </folder>
- </folder>
- <folder name="Windows2">
- <folder name="Components">
- <file name="EditorTopComponent.settings" url="EditorTopComponentSettings.xml"/>
- </folder>
- <folder name="Modes">
- <folder name="editor">
- <file name="EditorTopComponent.wstcref" url="EditorTopComponentWstcref.xml"/>
- </folder>
- </folder>
- </folder>
- <folder name="Toolbars">
- <folder name="File">
- <file name="org-openide-actions-SaveAction.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-SaveAction.instance"/>
- <attr name="position" intvalue="444"/>
- </file>
- <file name="org-openide-actions-SaveAllAction.shadow_hidden"/>
- <file name="org-netbeans-modules-customereditor-NewAction.shadow">
- <attr name="originalFile" stringvalue="Actions/File/org-netbeans-modules-customereditor-NewAction.instance"/>
- <attr name="position" intvalue="0"/>
- </file>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new.png
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new.png b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new.png
deleted file mode 100644
index 17cb028..0000000
Binary files a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new24.png
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new24.png b/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new24.png
deleted file mode 100644
index 5ae77db..0000000
Binary files a/apisupport.crudsample/crud-sample-application/CustomerEditor/src/org/netbeans/modules/customereditor/record-new24.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/build.xml b/apisupport.crudsample/crud-sample-application/CustomerViewer/build.xml
deleted file mode 100644
index c85c5cf..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/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.customerviewer" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project org.netbeans.modules.customerviewer.</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/CustomerViewer/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/manifest.mf b/apisupport.crudsample/crud-sample-application/CustomerViewer/manifest.mf
deleted file mode 100644
index 7e42369..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.modules.customerviewer
-OpenIDE-Module-Layer: org/netbeans/modules/customerviewer/layer.xml
-OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/customerviewer/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/CustomerViewer/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/build-impl.xml b/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/build-impl.xml
deleted file mode 100644
index 5b978d7..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/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.customerviewer-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/CustomerViewer/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/genfiles.properties b/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/genfiles.properties
deleted file mode 100644
index d8f8f6c..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=a63c5ac5
-build.xml.script.CRC32=4da0e812
-build.xml.stylesheet.CRC32=79c3b980@1.42
-# 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=a63c5ac5
-nbproject/build-impl.xml.script.CRC32=ffa3009d
-nbproject/build-impl.xml.stylesheet.CRC32=261c4bef@1.42
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/platform.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/platform.properties b/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/platform.properties
deleted file mode 100644
index e787580..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/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/CustomerViewer/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/project.properties b/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/project.properties
deleted file mode 100644
index d20299a..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/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/CustomerViewer/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/project.xml b/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/project.xml
deleted file mode 100644
index 86cccca..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/project.xml
+++ /dev/null
@@ -1,143 +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.customerviewer</code-name-base>
- <suite-component/>
- <module-dependencies>
- <dependency>
- <code-name-base>org.netbeans.core.windows</code-name-base>
- <compile-dependency/>
- <run-dependency>
- <release-version>2</release-version>
- <implementation-version/>
- </run-dependency>
- </dependency>
- <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.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.actions</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.16</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.explorer</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.23.0.1</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>
- <package>org.netbeans.modules.customerviewer</package>
- </public-packages>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/suite.properties b/apisupport.crudsample/crud-sample-application/CustomerViewer/nbproject/suite.properties
deleted file mode 100644
index 78e330f..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/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/CustomerViewer/src/org/netbeans/modules/customerviewer/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/Bundle.properties b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/Bundle.properties
deleted file mode 100644
index ce29866..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/Bundle.properties
+++ /dev/null
@@ -1,41 +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_CustomerAction=Customer
-CTL_CustomerTopComponent=Customer Window
-HINT_CustomerTopComponent=This is a Customer window
-OpenIDE-Module-Name=CustomerViewer
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerChildFactory.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerChildFactory.java b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerChildFactory.java
deleted file mode 100644
index 9b7e206..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerChildFactory.java
+++ /dev/null
@@ -1,127 +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.customerviewer;
-
-import demo.Customer;
-import java.io.IOException;
-import java.util.List;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.persistence.EntityManager;
-import javax.persistence.Persistence;
-import javax.swing.Action;
-import org.openide.actions.DeleteAction;
-import org.openide.actions.PropertiesAction;
-import org.openide.nodes.AbstractNode;
-import org.openide.nodes.ChildFactory;
-import org.openide.nodes.Children;
-import org.openide.nodes.Node;
-import org.openide.util.actions.SystemAction;
-import org.openide.util.lookup.Lookups;
-
-public class CustomerChildFactory extends ChildFactory<Customer> {
-
- private List<Customer> resultList;
-
- public CustomerChildFactory(List<Customer> resultList) {
- this.resultList = resultList;
- }
-
- @Override
- protected boolean createKeys(List<Customer> list) {
- for (Customer customer : resultList) {
- list.add(customer);
- }
- return true;
- }
-
- @Override
- protected Node createNodeForKey(Customer c) {
- Node node = new AbstractNode(Children.LEAF, Lookups.singleton(c)) {
-
- @Override
- public Action[] getActions(boolean context) {
- Action[] result = new Action[]{
- SystemAction.get(DeleteAction.class),
- SystemAction.get(PropertiesAction.class)
- };
- return result;
- }
-
- @Override
- public boolean canDestroy() {
- Customer customer = this.getLookup().lookup(Customer.class);
- return customer != null;
- }
-
- @Override
- public void destroy() throws IOException {
- if (deleteCustomer(this.getLookup().lookup(Customer.class).getCustomerId())) {
- super.destroy();
- CustomerTopComponent.refreshNode();
- }
- }
-
- };
- node.setDisplayName(c.getName());
- node.setShortDescription(c.getCity());
- return node;
- }
-
- private static boolean deleteCustomer(int customerId) {
- EntityManager entityManager = Persistence.createEntityManagerFactory("CustomerDBAccessPU").createEntityManager();
- entityManager.getTransaction().begin();
- try {
- Customer toDelete = entityManager.find(Customer.class, customerId);
- entityManager.remove(toDelete);
- // so far so good
- entityManager.getTransaction().commit();
- } catch(Exception e) {
- Logger.getLogger(CustomerChildFactory.class.getName()).log(
- Level.WARNING, "Cannot delete a customer with id {0}, cause: {1}", new Object[]{customerId, e});
- entityManager.getTransaction().rollback();
- }
- return true;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerRootNode.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerRootNode.java b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerRootNode.java
deleted file mode 100644
index dde0304..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerRootNode.java
+++ /dev/null
@@ -1,79 +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.customerviewer;
-
-import java.awt.event.ActionEvent;
-import javax.swing.AbstractAction;
-import javax.swing.Action;
-import org.openide.nodes.AbstractNode;
-import org.openide.nodes.Children;
-
-public class CustomerRootNode extends AbstractNode {
-
- public CustomerRootNode(Children kids) {
- super(kids);
- setDisplayName("Root");
- }
-
- @Override
- public Action[] getActions(boolean context) {
- Action[] result = new Action[]{
- new RefreshAction()
- };
- return result;
- }
-
- private final class RefreshAction extends AbstractAction {
-
- public RefreshAction() {
- putValue(Action.NAME, "Refresh");
- }
-
- @Override
- public void actionPerformed(ActionEvent e) {
- CustomerTopComponent.refreshNode();
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.form
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.form b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.form
deleted file mode 100644
index ccd5cf8..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.form
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.1" 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">
- <Component id="beanTreeView1" alignment="1" pref="454" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="beanTreeView1" max="32767" attributes="0"/>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="org.openide.explorer.view.BeanTreeView" name="beanTreeView1">
- </Component>
- </SubComponents>
-</Form>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.java b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.java
deleted file mode 100644
index 8cac410..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponent.java
+++ /dev/null
@@ -1,223 +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.customerviewer;
-
-import demo.Customer;
-import java.util.List;
-import java.util.logging.Logger;
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.Persistence;
-import javax.persistence.Query;
-import javax.swing.ActionMap;
-import javax.swing.SwingUtilities;
-import org.netbeans.modules.customerdb.JavaDBSupport;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-import org.openide.windows.WindowManager;
-import org.openide.explorer.ExplorerManager;
-import org.openide.explorer.ExplorerUtils;
-import org.openide.nodes.Children;
-import org.openide.util.RequestProcessor;
-
-/**
- * Top component which displays something.
- */
-public final class CustomerTopComponent extends TopComponent implements ExplorerManager.Provider {
-
- private static CustomerTopComponent instance;
-
- private static final String PREFERRED_ID = "CustomerTopComponent";
- private static ExplorerManager em = new ExplorerManager();
-
- public CustomerTopComponent() {
- initComponents();
- setName(NbBundle.getMessage(CustomerTopComponent.class, "CTL_CustomerTopComponent"));
- setToolTipText(NbBundle.getMessage(CustomerTopComponent.class, "HINT_CustomerTopComponent"));
- ActionMap map = this.getActionMap();
- map.put("delete", ExplorerUtils.actionDelete(em, true)); //NOI18N
- associateLookup(ExplorerUtils.createLookup(em, map));
- RequestProcessor.getDefault().post(new Runnable () {
- @Override
- public void run() {
- readCustomer();
- }
- });
- }
-
- private void readCustomer() {
- JavaDBSupport.ensureStartedDB();
- EntityManagerFactory factory = Persistence.createEntityManagerFactory("CustomerDBAccessPU");
- if (factory == null) {
- // XXX: message box?
- return ;
- }
- EntityManager entityManager = null;
- try {
- entityManager = factory.createEntityManager();
- } catch (RuntimeException re) {
- // XXX: message box?
- return ;
- }
- final Query query = entityManager.createQuery("SELECT c FROM Customer c");
- SwingUtilities.invokeLater(new Runnable () {
- @Override
- public void run() {
- @SuppressWarnings("unchecked")
- List<Customer> resultList = query.getResultList();
- em.setRootContext(new CustomerRootNode(Children.create(new CustomerChildFactory(resultList), true)));
- }
- });
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- beanTreeView1 = new org.openide.explorer.view.BeanTreeView();
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(beanTreeView1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE)
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(beanTreeView1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- );
- }// </editor-fold>//GEN-END:initComponents
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private org.openide.explorer.view.BeanTreeView beanTreeView1;
- // End of variables declaration//GEN-END:variables
-
- /**
- * Gets default instance. Do not use directly: reserved for *.settings files only,
- * i.e. deserialization routines; otherwise you could get a non-deserialized instance.
- * To obtain the singleton instance, use {@link #findInstance}.
- */
- public static synchronized CustomerTopComponent getDefault() {
- if (instance == null) {
- instance = new CustomerTopComponent();
- }
- return instance;
- }
-
- /**
- * Obtain the CustomerTopComponent instance. Never call {@link #getDefault} directly!
- */
- public static synchronized CustomerTopComponent findInstance() {
- TopComponent win = WindowManager.getDefault().findTopComponent(PREFERRED_ID);
- if (win == null) {
- Logger.getLogger(CustomerTopComponent.class.getName()).warning(
- "Cannot find " + PREFERRED_ID + " component. It will not be located properly in the window system.");
- return getDefault();
- }
- if (win instanceof CustomerTopComponent) {
- return (CustomerTopComponent) win;
- }
- Logger.getLogger(CustomerTopComponent.class.getName()).warning(
- "There seem to be multiple components with the '" + PREFERRED_ID
- + "' ID. That is a potential source of errors and unexpected behavior.");
- return getDefault();
- }
-
- @Override
- public int getPersistenceType() {
- return TopComponent.PERSISTENCE_ALWAYS;
- }
-
- @Override
- public void componentOpened() {
- // TODO add custom code on component opening
- }
-
- @Override
- public void componentClosed() {
- // TODO add custom code on component closing
- }
-
- void writeProperties(java.util.Properties p) {
- // better to version settings since initial version as advocated at
- // http://wiki.apidesign.org/wiki/PropertyFiles
- p.setProperty("version", "1.0");
- // TODO store your settings
- }
-
- Object readProperties(java.util.Properties p) {
- if (instance == null) {
- instance = this;
- }
- instance.readPropertiesImpl(p);
- return instance;
- }
-
- private void readPropertiesImpl(java.util.Properties p) {
- String version = p.getProperty("version");
- // TODO read your settings according to their version
- }
-
- @Override
- protected String preferredID() {
- return PREFERRED_ID;
- }
-
- @Override
- public ExplorerManager getExplorerManager() {
- return em;
- }
-
- public static void refreshNode() {
- EntityManager entityManager = Persistence.createEntityManagerFactory("CustomerDBAccessPU").createEntityManager();
- Query query = entityManager.createQuery("SELECT c FROM Customer c");
- @SuppressWarnings("unchecked")
- List<Customer> resultList = query.getResultList();
- em.setRootContext(new CustomerRootNode(Children.create(new CustomerChildFactory(resultList), true)));
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentSettings.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentSettings.xml b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentSettings.xml
deleted file mode 100644
index 50c9426..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentSettings.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):
--->
-<!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd">
-<settings version="1.0">
- <module name="org.netbeans.modules.customerviewer" spec="1.0"/>
- <instanceof class="org.openide.windows.TopComponent"/>
- <instanceof class="org.netbeans.modules.customerviewer.CustomerTopComponent"/>
- <instance class="org.netbeans.modules.customerviewer.CustomerTopComponent" method="getDefault"/>
-</settings>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentWstcref.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentWstcref.xml b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentWstcref.xml
deleted file mode 100644
index 24bbff4..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/CustomerTopComponentWstcref.xml
+++ /dev/null
@@ -1,46 +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):
--->
-<!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd">
-<tc-ref version="2.0" >
- <module name="org.netbeans.modules.customerviewer" spec="1.0"/>
- <tc-id id="CustomerTopComponent"/>
- <state opened="true"/>
-</tc-ref>
[06/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/nbproject/build-impl.xml b/apisupport.feedreader/feedreader-suite/rome/nbproject/build-impl.xml
deleted file mode 100644
index c03c697..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/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="com.sun.syndication-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.feedreader/feedreader-suite/rome/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/nbproject/genfiles.properties b/apisupport.feedreader/feedreader-suite/rome/nbproject/genfiles.properties
deleted file mode 100644
index 7103f06..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=b66a659d
-build.xml.script.CRC32=64a44ac4
-build.xml.stylesheet.CRC32=a56c6a5b@2.67
-# 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=b66a659d
-nbproject/build-impl.xml.script.CRC32=d0dd9b45
-nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/nbproject/project.properties b/apisupport.feedreader/feedreader-suite/rome/nbproject/project.properties
deleted file mode 100644
index c3ed8fb..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/nbproject/project.properties
+++ /dev/null
@@ -1,40 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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
-license.file=release/modules/ext/rome-0.6-license.txt
-jnlp.verify.excludes=modules/ext/rome-0.6-license.txt
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/nbproject/project.xml b/apisupport.feedreader/feedreader-suite/rome/nbproject/project.xml
deleted file mode 100644
index e926cba..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/nbproject/project.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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/2">
- <code-name-base>com.sun.syndication</code-name-base>
- <suite-component/>
- <module-dependencies>
- <dependency>
- <code-name-base>org.jdom</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>1.0</specification-version>
- </run-dependency>
- </dependency>
- </module-dependencies>
- <public-packages>
- <package>com.sun.syndication.feed.atom</package>
- <package>com.sun.syndication.io</package>
- <package>com.sun.syndication.feed.module.impl</package>
- <package>com.sun.syndication.io.impl</package>
- <package>com.sun.syndication.feed.synd</package>
- <package>com.sun.syndication.feed.rss</package>
- <package>com.sun.syndication.feed.module</package>
- <package>com.sun.syndication.feed.synd.impl</package>
- <package>com.sun.syndication.feed.impl</package>
- <package>com.sun.syndication.feed</package>
- </public-packages>
- <class-path-extension>
- <runtime-relative-path>ext/rome-0.6.jar</runtime-relative-path>
- <binary-origin>../../external/rome-0.6.jar</binary-origin>
- </class-path-extension>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/nbproject/suite.properties b/apisupport.feedreader/feedreader-suite/rome/nbproject/suite.properties
deleted file mode 100644
index 3407645..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/nbproject/suite.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.feedreader/feedreader-suite/rome/src/com/sun/syndication/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/src/com/sun/syndication/Bundle.properties b/apisupport.feedreader/feedreader-suite/rome/src/com/sun/syndication/Bundle.properties
deleted file mode 100644
index 37fa7c1..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/src/com/sun/syndication/Bundle.properties
+++ /dev/null
@@ -1,33 +0,0 @@
- # Copyright (c) 2010, Oracle. All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are met:
- #
- # * Redistributions of source code must retain the above copyright notice,
- # this list of conditions and the following disclaimer.
- #
- # * Redistributions in binary form must reproduce the above copyright notice,
- # this list of conditions and the following disclaimer in the documentation
- # and/or other materials provided with the distribution.
- #
- # * Neither the name of Oracle nor the names of its contributors
- # may be used to endorse or promote products derived from this software without
- # specific prior written permission.
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- # THE POSSIBILITY OF SUCH DAMAGE.
-
-OpenIDE-Module-Display-Category=Libraries
-OpenIDE-Module-Long-Description=\
- See https://rome.dev.java.net/ for more details.
-OpenIDE-Module-Name=ROME Library
-OpenIDE-Module-Short-Description=Wrapper for ROME Library
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/l10n.list
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/l10n.list b/apisupport.feedreader/l10n.list
deleted file mode 100644
index 863a986..0000000
--- a/apisupport.feedreader/l10n.list
+++ /dev/null
@@ -1,6 +0,0 @@
-# apisupport/samples/feedreader-sample-ui
-read global
-${l10n-module}/src/**/*.gif
-${l10n-module}/src/**/*.html
-${l10n-module}/src/**/*.png
-${l10n-module}/src/**/Bundle.properties
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/manifest.mf b/apisupport.feedreader/manifest.mf
deleted file mode 100644
index 9b3abdb..0000000
--- a/apisupport.feedreader/manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.modules.apisupport.feedreader/1
-OpenIDE-Module-Layer: org/netbeans/modules/apisupport/feedreader/layer.xml
-OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/feedreader/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.35
-AutoUpdate-Show-In-Client: false
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/nbproject/project.properties b/apisupport.feedreader/nbproject/project.properties
deleted file mode 100644
index f858e4a..0000000
--- a/apisupport.feedreader/nbproject/project.properties
+++ /dev/null
@@ -1,49 +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-2006 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.
-
-bootclasspath.prepend=${tools.jar}
-javac.compilerargs=-Xlint -Xlint:-serial
-javac.source=1.6
-test-unit-sys-prop.test.nbroot=${nb_all}
-extra.license.files=\
- external/jdom-1.0-license.txt,\
- external/rome-0.6-license.txt
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/nbproject/project.xml b/apisupport.feedreader/nbproject/project.xml
deleted file mode 100644
index 6c997e0..0000000
--- a/apisupport.feedreader/nbproject/project.xml
+++ /dev/null
@@ -1,193 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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-2006 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.
--->
-<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.apisupport.feedreader</code-name-base>
- <module-dependencies>
- <dependency>
- <code-name-base>org.netbeans.modules.apisupport.ant</code-name-base>
- <run-dependency>
- <specification-version>2.42</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.7</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.78</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectuiapi.base</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.78</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.awt</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.5</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.dialogs</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.8</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.filesystems</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.0</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.loaders</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.61</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</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</specification-version>
- </run-dependency>
- </dependency>
- </module-dependencies>
- <test-dependencies>
- <test-type>
- <name>unit</name>
- <test-dependency>
- <code-name-base>org.netbeans.libs.junit4</code-name-base>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.ant</code-name-base>
- <compile-dependency/>
- <test/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.feedreader</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.project</code-name-base>
- <recursive/>
- <compile-dependency/>
- <test/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.masterfs</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.nbjunit</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.parsing.nb</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.projectapi.nb</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.projectui</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.openide.util.lookup</code-name-base>
- <test/>
- </test-dependency>
- </test-type>
- </test-dependencies>
- <public-packages/>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/Bundle.properties b/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/Bundle.properties
deleted file mode 100644
index 9d9c660..0000000
--- a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/Bundle.properties
+++ /dev/null
@@ -1,60 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2005, 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-Display-Category=Developing NetBeans
-OpenIDE-Module-Long-Description=\
- Bundles a New Project sample for "FeedReader", an application built atop the NetBeans Platform. \
- Demonstrates a complete module suite with one functional module and several third-party libraries. \
- Shows how to use settings, window manipulation, actions, and more.
-OpenIDE-Module-Name=FeedReader Platform Application Sample
-OpenIDE-Module-Short-Description=Bundles a demonstration application using the NetBeans Platform.
-Templates/Project/Samples/ApiSupport/FeedReaderProject.zip=FeedReader
-Templates/Project/Samples/ApiSupport=NetBeans Modules
-
-# FeedReaderPanelVisual
-LBL_Browse=Br&owse...
-LBL_ProjectFolder=Project Fol&der:
-LBL_ProjectLocation=Project &Location:
-LBL_ProjectName=Project &Name:
-LBL_SelectProjectLocation=Select Project Location
-MSG_CanNotCreateProjectFolder=Project Folder cannot be created.
-MSG_InvalidProjectFolderName=Project Name is not a valid folder name.
-MSG_InvalidProjectFolderPath=Project Folder is not a valid path.
-MSG_ProjectFolderAlreadyExists=Project Folder already exists and is not empty.
-
-# FeedReaderWizardIterator
-LBL_Step1=Create a new FeedReader project
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderDescription.html
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderDescription.html b/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderDescription.html
deleted file mode 100644
index b45a72c..0000000
--- a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderDescription.html
+++ /dev/null
@@ -1,47 +0,0 @@
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2005, 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):
--->
-
-<html>
- <body>
- Illustrates how to use the NetBeans Platform to create your own
- application. See the FeedReader Tutorial for details.
- </body>
-</html>
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderPanelVisual.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderPanelVisual.java b/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderPanelVisual.java
deleted file mode 100644
index d3ea840..0000000
--- a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderPanelVisual.java
+++ /dev/null
@@ -1,304 +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-2006 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.apisupport.feedreader;
-
-import java.io.File;
-import javax.swing.JFileChooser;
-import javax.swing.JPanel;
-import javax.swing.event.DocumentEvent;
-import javax.swing.event.DocumentListener;
-import javax.swing.text.Document;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.filesystems.FileUtil;
-import org.openide.util.NbBundle;
-
-public class FeedReaderPanelVisual extends JPanel implements DocumentListener {
-
- public static final String PROP_PROJECT_NAME = "projectName"; // NOI18N
-
- private FeedReaderWizardPanel panel;
-
- /** Creates new form PanelProjectLocationVisual */
- public FeedReaderPanelVisual(FeedReaderWizardPanel panel) {
- initComponents();
- this.panel = panel;
- // Register listener on the textFields to make the automatic updates
- projectNameTextField.getDocument().addDocumentListener( this );
- projectLocationTextField.getDocument().addDocumentListener( this );
- }
-
- public String getProjectName() {
- return this.projectNameTextField.getText();
- }
-
- // <editor-fold defaultstate="collapsed" desc=" UI Code ">
- private void initComponents() {
- java.awt.GridBagConstraints gridBagConstraints;
-
- projectNameLabel = new javax.swing.JLabel();
- projectNameTextField = new javax.swing.JTextField();
- projectLocationLabel = new javax.swing.JLabel();
- projectLocationTextField = new javax.swing.JTextField();
- browseButton = new javax.swing.JButton();
- createdFolderLabel = new javax.swing.JLabel();
- createdFolderTextField = new javax.swing.JTextField();
-
- setLayout(new java.awt.GridBagLayout());
-
- projectNameLabel.setLabelFor(projectNameTextField);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 12, 0);
- org.openide.awt.Mnemonics.setLocalizedText(projectNameLabel, NbBundle.getMessage(FeedReaderPanelVisual.class, "LBL_ProjectName"));
- add(projectNameLabel, gridBagConstraints);
-
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 12, 0);
- add(projectNameTextField, gridBagConstraints);
-
- projectLocationLabel.setLabelFor(projectLocationTextField);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridy = 1;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
- org.openide.awt.Mnemonics.setLocalizedText(projectLocationLabel, NbBundle.getMessage(FeedReaderPanelVisual.class, "LBL_ProjectLocation"));
- add(projectLocationLabel, gridBagConstraints);
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridy = 1;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 5, 0);
- add(projectLocationTextField, gridBagConstraints);
-
- browseButton.setActionCommand("BROWSE");
- browseButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- browseLocationAction(evt);
- }
- });
-
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridy = 1;
- gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.insets = new java.awt.Insets(0, 6, 5, 0);
- org.openide.awt.Mnemonics.setLocalizedText(browseButton, NbBundle.getMessage(FeedReaderPanelVisual.class, "LBL_Browse"));
- add(browseButton, gridBagConstraints);
-
- createdFolderLabel.setLabelFor(createdFolderTextField);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- org.openide.awt.Mnemonics.setLocalizedText(createdFolderLabel, NbBundle.getMessage(FeedReaderPanelVisual.class, "LBL_ProjectFolder"));
- add(createdFolderLabel, gridBagConstraints);
-
- createdFolderTextField.setEditable(false);
- gridBagConstraints = new java.awt.GridBagConstraints();
- gridBagConstraints.gridheight = java.awt.GridBagConstraints.REMAINDER;
- gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
- gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
- gridBagConstraints.weightx = 1.0;
- gridBagConstraints.weighty = 1.0;
- gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 0);
- add(createdFolderTextField, gridBagConstraints);
- }
- // </editor-fold>
-
- private void browseLocationAction(java.awt.event.ActionEvent evt) {
- String command = evt.getActionCommand();
- if ("BROWSE".equals(command)) { // NOI18N
- JFileChooser chooser = new JFileChooser();
- FileUtil.preventFileChooserSymlinkTraversal(chooser, null);
- chooser.setDialogTitle(NbBundle.getMessage(FeedReaderPanelVisual.class, "LBL_SelectProjectLocation"));
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- String path = this.projectLocationTextField.getText();
- if (path.length() > 0) {
- File f = new File(path);
- if (f.exists()) {
- chooser.setSelectedFile(f);
- }
- }
- if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(this)) { //NOI18N
- File projectDir = chooser.getSelectedFile();
- projectLocationTextField.setText( FileUtil.normalizeFile(projectDir).getAbsolutePath() );
- }
- panel.fireChangeEvent();
- }
- }
-
- public void addNotify() {
- super.addNotify();
- //same problem as in 31086, initial focus on Cancel button
- projectNameTextField.requestFocus();
- }
-
- boolean valid( WizardDescriptor wizardDescriptor ) {
- if ( projectNameTextField.getText().length() == 0 ) {
- wizardDescriptor.putProperty( WizardDescriptor.PROP_ERROR_MESSAGE, // NOI18N
- NbBundle.getMessage(FeedReaderPanelVisual.class, "MSG_InvalidProjectFolderName"));
- return false; // Display name not specified
- }
- File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
- if (!f.isDirectory()) {
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, // NOI18N
- NbBundle.getMessage(FeedReaderPanelVisual.class, "MSG_InvalidProjectFolderPath"));
- return false;
- }
- final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
-
- File projLoc = destFolder;
- while (projLoc != null && !projLoc.exists()) {
- projLoc = projLoc.getParentFile();
- }
- if (projLoc == null || !projLoc.canWrite()) {
- wizardDescriptor.putProperty( WizardDescriptor.PROP_ERROR_MESSAGE, // NOI18N
- NbBundle.getMessage(FeedReaderPanelVisual.class, "MSG_CanNotCreateProjectFolder"));
- return false;
- }
-
- if (FileUtil.toFileObject(projLoc) == null) {
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, // NOI18N
- NbBundle.getMessage(FeedReaderPanelVisual.class, "MSG_InvalidProjectFolderPath"));
- return false;
- }
-
- File[] kids = destFolder.listFiles();
- if ( destFolder.exists() && kids != null && kids.length > 0) {
- // Folder exists and is not empty
- wizardDescriptor.putProperty( WizardDescriptor.PROP_ERROR_MESSAGE, // NOI18N
- NbBundle.getMessage(FeedReaderPanelVisual.class, "MSG_ProjectFolderAlreadyExists"));
- return false;
- }
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, ""); // NOI18N
- return true;
- }
-
- void store( WizardDescriptor d ) {
- String name = projectNameTextField.getText().trim();
- String folder = createdFolderTextField.getText().trim();
-
- d.putProperty( /*XXX Define somewhere */ "projdir", new File( folder )); // NOI18N
- d.putProperty( /*XXX Define somewhere */ "name", name ); // NOI18N
- }
-
- void read(WizardDescriptor settings) {
- File projectLocation = (File) settings.getProperty("projdir"); //NOI18N
- if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
- projectLocation = ProjectChooser.getProjectsFolder();
- } else {
- projectLocation = projectLocation.getParentFile();
- }
- this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
-
- String projectName = (String) settings.getProperty("name"); //NOI18N
- if (projectName == null) {
- projectName = "feedreader-suite";
- }
- this.projectNameTextField.setText(projectName);
- this.projectNameTextField.selectAll();
- }
-
- void validate(WizardDescriptor d) throws WizardValidationException {
- // nothing to validate
- }
-
- // UI Variables declaration -
- private javax.swing.JButton browseButton;
- private javax.swing.JLabel createdFolderLabel;
- private javax.swing.JTextField createdFolderTextField;
- private javax.swing.JLabel projectLocationLabel;
- private javax.swing.JTextField projectLocationTextField;
- private javax.swing.JLabel projectNameLabel;
- private javax.swing.JTextField projectNameTextField;
- // End of variables declaration
-
- // Implementation of DocumentListener --------------------------------------
-
- public void changedUpdate( DocumentEvent e ) {
- updateTexts( e );
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- public void insertUpdate( DocumentEvent e ) {
- updateTexts( e );
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- public void removeUpdate( DocumentEvent e ) {
- updateTexts( e );
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- /** Handles changes in the Project name and project directory. */
- private void updateTexts( DocumentEvent e ) {
- Document doc = e.getDocument();
-
- if ( doc == projectNameTextField.getDocument() || doc == projectLocationTextField.getDocument() ) {
- // Change in the project name
-
- String projectName = projectNameTextField.getText();
- String projectFolder = projectLocationTextField.getText();
-
- //if ( projectFolder.trim().length() == 0 || projectFolder.equals( oldName ) ) {
- createdFolderTextField.setText( projectFolder + File.separatorChar + projectName );
- //}
-
- }
- panel.fireChangeEvent(); // Notify that the panel changed
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardIterator.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardIterator.java b/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardIterator.java
deleted file mode 100644
index 7b426cb..0000000
--- a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardIterator.java
+++ /dev/null
@@ -1,189 +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-2006 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.apisupport.feedreader;
-
-import java.awt.Component;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.text.MessageFormat;
-import java.util.Enumeration;
-import java.util.LinkedHashSet;
-import java.util.NoSuchElementException;
-import java.util.Set;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.netbeans.spi.project.ui.templates.support.Templates;
-import org.openide.WizardDescriptor;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.util.NbBundle;
-
-public class FeedReaderWizardIterator implements WizardDescriptor.InstantiatingIterator {
-
- private static final long serialVersionUID = 1L;
-
- private transient int index;
- private transient WizardDescriptor.Panel[] panels;
- private transient WizardDescriptor wiz;
-
- public static FeedReaderWizardIterator createIterator() {
- return new FeedReaderWizardIterator();
- }
-
- private WizardDescriptor.Panel[] createPanels() {
- return new WizardDescriptor.Panel[] {
- new FeedReaderWizardPanel(),
- };
- }
-
- private String[] createSteps() {
- return new String[] {
- NbBundle.getMessage(FeedReaderWizardPanel.class, "LBL_Step1"),
- };
- }
-
- public Set/*<FileObject>*/ instantiate() throws IOException {
- Set resultSet = new LinkedHashSet();
- File dirF = FileUtil.normalizeFile((File) wiz.getProperty("projdir"));
- dirF.mkdirs();
-
- FileObject template = Templates.getTemplate(wiz);
- FileObject dir = FileUtil.toFileObject(dirF);
- InputStream is = template.getInputStream();
- try {
- FileUtil.extractJar(dir, is);
- } finally {
- is.close();
- }
- //unZipFile(template.getInputStream(), dir);
-
- // Always open top dir as a project:
- resultSet.add(dir);
- // Look for nested projects to open as well:
- Enumeration e = dir.getFolders(true);
- while (e.hasMoreElements()) {
- FileObject subfolder = (FileObject) e.nextElement();
- if (ProjectManager.getDefault().isProject(subfolder)) {
- resultSet.add(subfolder);
- }
- }
-
- File parent = dirF.getParentFile();
- if (parent != null && parent.exists()) {
- ProjectChooser.setProjectsFolder(parent);
- }
-
- return resultSet;
- }
-
- public void initialize(WizardDescriptor wiz) {
- this.wiz = wiz;
- index = 0;
- panels = createPanels();
- // Make sure list of steps is accurate.
- String[] steps = createSteps();
- for (int i = 0; i < panels.length; i++) {
- Component c = panels[i].getComponent();
- if (steps[i] == null) {
- // Default step name to component name of panel.
- // Mainly useful for getting the name of the target
- // chooser to appear in the list of steps.
- steps[i] = c.getName();
- }
- if (c instanceof JComponent) { // assume Swing components
- JComponent jc = (JComponent)c;
- // Step #.
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, new Integer(i)); // NOI18N
- // Step name (actually the whole list for reference).
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps); // NOI18N
- }
- }
- }
-
- public void uninitialize(WizardDescriptor wiz) {
- this.wiz.putProperty("projdir", null); // NOI18N
- this.wiz.putProperty("name", null); // NOI18N
- this.wiz = null;
- panels = null;
- }
-
- public String name() {
- return MessageFormat.format("{0} of {1}",
- new Object[] {new Integer(index + 1), new Integer(panels.length) });
- }
-
- public boolean hasNext() {
- return index < panels.length - 1;
- }
-
- public boolean hasPrevious() {
- return index > 0;
- }
-
- public void nextPanel() {
- if (!hasNext()) {
- throw new NoSuchElementException();
- }
- index++;
- }
-
- public void previousPanel() {
- if (!hasPrevious()) {
- throw new NoSuchElementException();
- }
- index--;
- }
-
- public WizardDescriptor.Panel current() {
- return panels[index];
- }
-
- // If nothing unusual changes in the middle of the wizard, simply:
- public final void addChangeListener(ChangeListener l) {}
- public final void removeChangeListener(ChangeListener l) {}
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardPanel.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardPanel.java b/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardPanel.java
deleted file mode 100644
index eefade3..0000000
--- a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/FeedReaderWizardPanel.java
+++ /dev/null
@@ -1,130 +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-2006 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.apisupport.feedreader;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-/**
- * Panel just asking for basic info.
- */
-public class FeedReaderWizardPanel implements WizardDescriptor.Panel,
- WizardDescriptor.ValidatingPanel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor wizardDescriptor;
- private FeedReaderPanelVisual component;
-
- public Component getComponent() {
- if (component == null) {
- component = new FeedReaderPanelVisual(this);
- }
- return component;
- }
-
- public HelpCtx getHelp() {
- return new HelpCtx( FeedReaderWizardPanel.class );
- }
-
- public boolean isValid() {
- getComponent();
- return component.valid( wizardDescriptor );
- }
-
- private final Set/*<ChangeListener>*/ listeners = new HashSet(1);
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener)it.next()).stateChanged(ev);
- }
- }
-
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor)settings;
- component.read(wizardDescriptor);
-
- // XXX hack, TemplateWizard in final setTemplateImpl() forces new wizard's title
- // this name is used in NewProjectWizard to modify the title
- wizardDescriptor.putProperty("NewProjectWizard_Title", //NOI18N
- NbBundle.getMessage(FeedReaderWizardPanel.class,
- "Templates/Project/Samples/ApiSupport/FeedReaderProject.zip")); //NOI18N
- }
-
- public void storeSettings(Object settings) {
- WizardDescriptor d = (WizardDescriptor)settings;
- component.store(d);
- d.putProperty("NewProjectWizard_Title", null); //NOI18N
- }
-
- public boolean isFinishPanel() {
- return true;
- }
-
- public void validate() throws WizardValidationException {
- getComponent();
- component.validate(wizardDescriptor);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/layer.xml b/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/layer.xml
deleted file mode 100644
index 703f072..0000000
--- a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/layer.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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-2006 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.
--->
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
-<filesystem>
- <folder name="Templates">
- <folder name="Project">
- <folder name="Samples">
- <folder name="ApiSupport">
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.apisupport.feedreader.Bundle"/>
- <file name="FeedReaderProject.zip" url="FeedReaderProject.zip">
- <attr name="position" intvalue="1000"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/apisupport/feedreader/rss16.gif"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.apisupport.feedreader.Bundle"/>
- <attr name="instantiatingIterator" methodvalue="org.netbeans.modules.apisupport.feedreader.FeedReaderWizardIterator.createIterator"/>
- <attr name="instantiatingWizardURL" urlvalue="nbresloc:/org/netbeans/modules/apisupport/feedreader/FeedReaderDescription.html"/>
- <attr name="template" boolvalue="true"/>
- </file>
- </folder>
- </folder>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/rss16.gif
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/rss16.gif b/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/rss16.gif
deleted file mode 100644
index a166c4c..0000000
Binary files a/apisupport.feedreader/src/org/netbeans/modules/apisupport/feedreader/rss16.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/test/unit/src/org/netbeans/modules/apisupport/project/BuildFeedreaderTest.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/test/unit/src/org/netbeans/modules/apisupport/project/BuildFeedreaderTest.java b/apisupport.feedreader/test/unit/src/org/netbeans/modules/apisupport/project/BuildFeedreaderTest.java
deleted file mode 100644
index 4a0ef70..0000000
--- a/apisupport.feedreader/test/unit/src/org/netbeans/modules/apisupport/project/BuildFeedreaderTest.java
+++ /dev/null
@@ -1,190 +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-2006 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.apisupport.project;
-
-import java.io.File;
-import java.io.InputStream;
-import java.util.Properties;
-import org.apache.tools.ant.module.api.support.ActionUtils;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.modules.apisupport.project.layers.LayerTestBase;
-import org.netbeans.modules.apisupport.project.suite.SuiteProject;
-import org.netbeans.spi.project.support.ant.GeneratedFilesHelper;
-import org.openide.DialogDescriptor;
-import org.openide.execution.ExecutorTask;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-
-/**
- * Tests Feedreader sample.
- * Invokes various Ant targets over Feedreader sample.
- *
- * @author Tomas Musil
- */
-public class BuildFeedreaderTest extends TestBase {
-
- private File feedFolder = null;
-
- static {
- // #65461: do not try to load ModuleInfo instances from ant module
- System.setProperty("org.netbeans.core.startup.ModuleSystem.CULPRIT", "true");
- LayerTestBase.Lkp.setLookup(new Object[0]);
- DialogDisplayerImpl.returnFromNotify(DialogDescriptor.NO_OPTION);
- }
-
- public BuildFeedreaderTest(String testName) {
- super(testName);
- }
-
- protected void setUp() throws Exception {
- clearWorkDir();
- noDataDir = true;
- super.setUp();
- InstalledFileLocatorImpl.registerDestDir(destDirF);
- TestAntLogger.getDefault().setEnabled(true);
- }
-
- protected void tearDown() throws Exception {
- TestAntLogger.getDefault().setEnabled(false);
- }
-
- /**
- * Extracts feedreader to workdir, then platform properties are copied and ant task(s) is called. Build status is returned
- */
- public int runAntTargetsOnFeedreader(String[] targets) throws Exception{
- InputStream is = getClass().getClassLoader().getResourceAsStream("org/netbeans/modules/apisupport/feedreader/FeedReaderProject.zip");
- assertNotNull(is);
- feedFolder = new File(getWorkDir(),"feedreader");
- feedFolder.mkdir();
- FileObject fo = FileUtil.toFileObject(feedFolder);
- assertNotNull(fo);
-
-
- try {
- FileUtil.extractJar(fo,is);
- } finally {
- is.close();
- }
-
- File buildProps = new File(getWorkDir(), "build.properties");
- File privateFolder = new File(new File(feedFolder, "nbproject"),"private");
- privateFolder.mkdir();
-
- FileObject platfPrivateProps = FileUtil.copyFile(FileUtil.toFileObject(buildProps), FileUtil.toFileObject(privateFolder), "platform-private");
- assertNotNull(platfPrivateProps);
- SuiteProject feedreaderSuite = (SuiteProject) ProjectManager.getDefault().findProject(fo);
- assertNotNull(feedreaderSuite);
- FileObject buildScript = feedreaderSuite.getProjectDirectory().getFileObject(GeneratedFilesHelper.BUILD_XML_PATH);
- assertNotNull(buildScript);
- assertTrue(buildScript.isValid());
-
- Properties p = new Properties();
- p.setProperty("jnlp.sign.jars", "false");
-
- System.out.println("------------- BUILD OUTPUT --------------");
- ExecutorTask et = ActionUtils.runTarget(buildScript, targets, p);
- et.waitFinished();
- System.out.println("-----------------------------------------");
- return et.result();
- }
-
- /**
- * Invokes build-jnlp target on feedreader
- */
- public void testBuildJNLP() throws Exception {
- int ret = runAntTargetsOnFeedreader(new String[] {"build-jnlp"});
- assertFileExists("dist/feedreader.war");
- assertEquals("build-jnlp ant target should return zero - build successful", 0 , ret);
- }
-
- /**
- * Invokes build-zip target on feedreader
- */
- public void testBuildZip() throws Exception {
- int ret = runAntTargetsOnFeedreader(new String[] {"build-zip"});
- assertFileExists("dist/feedreader.zip");
- assertEquals("build-zipant target should return zero - build successful", 0 , ret);
- }
-
- /**
- * Invokes build target on feedreader
- */
- public void testBuild() throws Exception {
- int ret = runAntTargetsOnFeedreader(new String[] {"build"});
- assertEquals("build ant target should return zero - build successful", 0 , ret);
- }
-
- /**
- * Invokes nbms target on feedreader
- */
- public void testBuildNBMs() throws Exception {
- int ret = runAntTargetsOnFeedreader(new String[] {"nbms"});
- assertFileExists("build/updates/com-sun-syndication-fetcher.nbm");
- assertFileExists("build/updates/com-sun-syndication.nbm");
- assertFileExists("build/updates/org-jdom.nbm");
- assertFileExists("build/updates/org-netbeans-feedreader.nbm");
- assertFileExists("build/updates/updates.xml");
- assertEquals("build ant target should return zero - build successful", 0 , ret);
- }
-
- /**
- * Invokes clean target on feedreader
- */
- public void testClean() throws Exception {
- int ret = runAntTargetsOnFeedreader(new String[] {"clean"});
- assertFalse("Empty build",new File(feedFolder,"build").exists());
- assertFalse("Empty dist",new File(feedFolder,"dist").exists());
-
- assertEquals("clean ant target should return zero - build successful", 0 , ret);
- }
-
- private void assertFileExists(String relPath) {
- assertTrue("Feed reader folder exists",feedFolder.exists());
- File f = new File (feedFolder,relPath);
- assertTrue("File ${feedreader}/" + relPath,f.exists());
- }
-
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.kit/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.kit/nbproject/project.xml b/apisupport.kit/nbproject/project.xml
index 9032ba2..e192e92 100644
--- a/apisupport.kit/nbproject/project.xml
+++ b/apisupport.kit/nbproject/project.xml
@@ -51,19 +51,6 @@ Contributor(s):
</run-dependency>
</dependency>
<dependency>
- <code-name-base>org.netbeans.modules.apisupport.crudsample</code-name-base>
- <run-dependency>
- <specification-version>1.0</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.apisupport.feedreader</code-name-base>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.4</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
<code-name-base>org.netbeans.modules.apisupport.harness</code-name-base>
<run-dependency>
<specification-version>1.10</specification-version>
@@ -76,18 +63,6 @@ Contributor(s):
</run-dependency>
</dependency>
<dependency>
- <code-name-base>org.netbeans.modules.apisupport.osgidemo</code-name-base>
- <run-dependency>
- <specification-version>1.1</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.apisupport.paintapp</code-name-base>
- <run-dependency>
- <specification-version>1.1</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
<code-name-base>org.netbeans.modules.apisupport.project</code-name-base>
<run-dependency>
<release-version>1</release-version>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/build.xml b/apisupport.osgidemo/build.xml
deleted file mode 100644
index 74ed554..0000000
--- a/apisupport.osgidemo/build.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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-2006 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.
--->
-<project basedir="." default="netbeans" name="apisupport.osgidemo">
- <import file="../nbbuild/templates/projectized.xml"/>
-
- <target name="jar" depends="zip-project,projectized-common.jar"/>
-
- <target name="zip-project" depends="init">
- <property name="examples" location="${build.classes.dir}/org/netbeans/modules/apisupport/osgidemo/"/>
- <mkdir dir="${examples}"/>
- <zip basedir="osgidemo" destfile="${examples}/EquinoxDemo.zip">
- <exclude name="netbinox/**"/>
- <exclude name="**/build/"/>
- <exclude name="**/dist/"/>
- <exclude name="**/nbproject/private/"/>
- </zip>
- </target>
-
-</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/manifest.mf b/apisupport.osgidemo/manifest.mf
deleted file mode 100644
index 709d3b2..0000000
--- a/apisupport.osgidemo/manifest.mf
+++ /dev/null
@@ -1,7 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.modules.apisupport.osgidemo
-OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/osgidemo/Bundle.properties
-OpenIDE-Module-Requires: javax.script.ScriptEngine.FreeMarker
-OpenIDE-Module-Specification-Version: 1.24
-OpenIDE-Module-Layer: org/netbeans/modules/apisupport/osgidemo/layer.xml
-AutoUpdate-Show-In-Client: false
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/nbproject/project.properties b/apisupport.osgidemo/nbproject/project.properties
deleted file mode 100644
index 9a3429c..0000000
--- a/apisupport.osgidemo/nbproject/project.properties
+++ /dev/null
@@ -1,43 +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
-test-unit-sys-prop.test.nbroot=${nb_all}
-bootclasspath.prepend=${tools.jar}
-toplink-essentials.jar=${nb_all}/nbbuild/netbeans/${nb.cluster.java.dir}/modules/ext/toplink/toplink-essentials.jar
-toplink-essentials-agent.jar=${nb_all}/nbbuild/netbeans/${nb.cluster.java.dir}/modules/ext/toplink/toplink-essentials-agent.jar
[04/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/osgidemo/showbundles/test/unit/src/org/netbeans/demo/osgi/showbundles/InstallerTest.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/osgidemo/showbundles/test/unit/src/org/netbeans/demo/osgi/showbundles/InstallerTest.java b/apisupport.osgidemo/osgidemo/showbundles/test/unit/src/org/netbeans/demo/osgi/showbundles/InstallerTest.java
deleted file mode 100644
index e8ad856..0000000
--- a/apisupport.osgidemo/osgidemo/showbundles/test/unit/src/org/netbeans/demo/osgi/showbundles/InstallerTest.java
+++ /dev/null
@@ -1,88 +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.demo.osgi.showbundles;
-
-import org.netbeans.demo.osgi.showbundles.Installer;
-import java.util.List;
-import junit.framework.Test;
-import org.netbeans.junit.NbModuleSuite;
-import org.netbeans.junit.NbTestCase;
-import org.openide.nodes.Children;
-import org.openide.nodes.Node;
-
-/** Integration test that launches the application and checks
- * whether appropriate OSGi framework is enabled.
- */
-public class InstallerTest extends NbTestCase {
-
- public InstallerTest(String testName) {
- super(testName);
- }
-
- public static Test suite() {
- return NbModuleSuite.create(
- NbModuleSuite.emptyConfiguration().addTest(InstallerTest.class).gui(false)
- .clusters(".*")<#if netbinox??>.enableModules("org.netbeans.modules.netbinox")</#if>
- );
- }
-
- public void testChildrenAndTheirNodes() throws Exception {
- Children ch = Installer.createBundleChildren();
- List<Node> arr = ch.snapshot();
- String bundleName;
- // <#if !netbinox?? >
- bundleName = "org.apache.felix.framework";
- // <#else>
- bundleName = "org.eclipse.osgi";
- // </#if>
- for (Node n : arr) {
- if (n.getName().equals(bundleName)) {
- // OK
- return;
- }
- }
- fail("Framework " + bundleName + " not found: " + arr);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/Bundle.properties b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/Bundle.properties
deleted file mode 100644
index 73057ff..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/Bundle.properties
+++ /dev/null
@@ -1,67 +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=NetBeans Platform & OSGi Samples
-
-LBL_CreateProjectStep=Create a new NetBeans OSGi based Application project
-LBL_DownloadStep=Download libraries
-OpenIDE-Module-Display-Category=Developing NetBeans
-OpenIDE-Module-Long-Description=\
- Sample application based on the NetBeans Platform and Felix and Equinox.
-OpenIDE-Module-Short-Description=Sample NetBeans Platform and OSGi applications.
-SampleAppFile=Equinox based Platform Application
-SampleFelixFile=Felix based Platform Application
-
-# {0} - step #
-# {1} - step count
-SampleAppWizardIterator.name.format={0} of {1}
-SampleAppPanelVisual.project_name=Project &Name:
-SampleAppPanelVisual.default_prj_name=osgisample
-SampleAppPanelVisual.folder_exists=Project Folder already exists and is not empty.
-SampleAppPanelVisual.folder_creation_error=Project Folder cannot be created.
-SampleAppPanelVisual.invalid_path=Project Folder is not a valid path.
-SampleAppPanelVisual.invalid_folder_name=Project Name is not a valid folder name.
-SampleAppPanelVisual.select_project_location=Select Project Location
-SampleAppPanelVisual.project_folder=Project &Folder:
-SampleAppPanelVisual.browse=Br&owse...
-SampleAppPanelVisual.project_location=Project &Location:
-
-
-#NOI18N
-CTL_NetbinoxProjectName=netbinoxsample
-#NOI18N
-CTL_FelixProjectName=felixsample
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppDescription.html
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppDescription.html b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppDescription.html
deleted file mode 100644
index b406f15..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppDescription.html
+++ /dev/null
@@ -1,52 +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):
--->
-
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
-</head>
- <body>
- Illustrates how to use the NetBeans Platform and Equinox together.
- See
- <a href="http://wiki.apidesign.org/wiki/NetbinoxTutorial">tutorial</a>
- for more information.
- </body>
-</html>
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.form
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.form b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.form
deleted file mode 100644
index 6a6faff..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.form
+++ /dev/null
@@ -1,142 +0,0 @@
-<?xml version="1.1" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.3" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <AuxValues>
- <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="false"/>
- <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 min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="projectNameLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="projectLocationLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="createdFolderLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="projectNameTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- <Component id="projectLocationTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- <Component id="createdFolderTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="browseButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="projectNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="projectNameTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="projectLocationLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="projectLocationTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="browseButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="createdFolderLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="createdFolderTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace pref="213" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="projectNameLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="projectNameTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.project_name" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <AccessibilityProperties>
- <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.project_name" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}", {arguments})"/>
- </Property>
- <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.project_name" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}", {arguments})"/>
- </Property>
- </AccessibilityProperties>
- <AuxValues>
- <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- </Component>
- <Component class="javax.swing.JTextField" name="projectNameTextField">
- </Component>
- <Component class="javax.swing.JLabel" name="projectLocationLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="projectLocationTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.project_location" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <AccessibilityProperties>
- <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.project_location" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}", {arguments})"/>
- </Property>
- <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.project_location" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}", {arguments})"/>
- </Property>
- </AccessibilityProperties>
- <AuxValues>
- <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- </Component>
- <Component class="javax.swing.JTextField" name="projectLocationTextField">
- </Component>
- <Component class="javax.swing.JButton" name="browseButton">
- <Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.browse" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <AccessibilityProperties>
- <Property name="AccessibleContext.accessibleName" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.browse" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}", {arguments})"/>
- </Property>
- <Property name="AccessibleContext.accessibleDescription" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.browse" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}", {arguments})"/>
- </Property>
- </AccessibilityProperties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="browseButtonActionPerformed"/>
- </Events>
- </Component>
- <Component class="javax.swing.JLabel" name="createdFolderLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="createdFolderTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/osgidemo/Bundle.properties" key="SampleAppPanelVisual.project_folder" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="createdFolderTextField">
- <Properties>
- <Property name="editable" type="boolean" value="false"/>
- </Properties>
- </Component>
- </SubComponents>
-</Form>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.java b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.java
deleted file mode 100644
index 8af0788..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppPanelVisual.java
+++ /dev/null
@@ -1,309 +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.apisupport.osgidemo;
-
-import java.io.File;
-import javax.swing.JFileChooser;
-import javax.swing.JPanel;
-import javax.swing.event.DocumentEvent;
-import javax.swing.event.DocumentListener;
-import javax.swing.text.Document;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.filesystems.FileUtil;
-
-public class SampleAppPanelVisual extends JPanel implements DocumentListener {
-
- private static final String WIZARD_PANEL_ERROR_MESSAGE = WizardDescriptor.PROP_ERROR_MESSAGE; // NOI18N
-
- public static final String PROP_PROJECT_NAME = "projectName"; // NOI18N
-
- private SampleAppWizardPanel panel;
-
- /** Creates new form PanelProjectLocationVisual */
- public SampleAppPanelVisual(SampleAppWizardPanel panel) {
- initComponents();
- this.panel = panel;
- // Register listener on the textFields to make the automatic updates
- projectNameTextField.getDocument().addDocumentListener(this);
- projectLocationTextField.getDocument().addDocumentListener(this);
- }
-
-
- public String getProjectName() {
- return this.projectNameTextField.getText();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- projectNameLabel = new javax.swing.JLabel();
- projectNameTextField = new javax.swing.JTextField();
- projectLocationLabel = new javax.swing.JLabel();
- projectLocationTextField = new javax.swing.JTextField();
- browseButton = new javax.swing.JButton();
- createdFolderLabel = new javax.swing.JLabel();
- createdFolderTextField = new javax.swing.JTextField();
-
- projectNameLabel.setLabelFor(projectNameTextField);
- org.openide.awt.Mnemonics.setLocalizedText(projectNameLabel, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_name")); // NOI18N
-
- projectLocationLabel.setLabelFor(projectLocationTextField);
- org.openide.awt.Mnemonics.setLocalizedText(projectLocationLabel, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_location")); // NOI18N
-
- org.openide.awt.Mnemonics.setLocalizedText(browseButton, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.browse")); // NOI18N
- browseButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- browseButtonActionPerformed(evt);
- }
- });
-
- createdFolderLabel.setLabelFor(createdFolderTextField);
- org.openide.awt.Mnemonics.setLocalizedText(createdFolderLabel, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_folder")); // NOI18N
-
- createdFolderTextField.setEditable(false);
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(projectNameLabel)
- .addComponent(projectLocationLabel)
- .addComponent(createdFolderLabel))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(projectNameTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
- .addComponent(projectLocationTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
- .addComponent(createdFolderTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(browseButton)
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(projectNameLabel)
- .addComponent(projectNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(projectLocationLabel)
- .addComponent(projectLocationTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(browseButton))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(createdFolderLabel)
- .addComponent(createdFolderTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(213, Short.MAX_VALUE))
- );
-
- projectNameLabel.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_name", new Object[] {})); // NOI18N
- projectNameLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_name", new Object[] {})); // NOI18N
- projectLocationLabel.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_location", new Object[] {})); // NOI18N
- projectLocationLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_location", new Object[] {})); // NOI18N
- browseButton.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.browse", new Object[] {})); // NOI18N
- browseButton.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.browse", new Object[] {})); // NOI18N
- }// </editor-fold>//GEN-END:initComponents
-
- private void browseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseButtonActionPerformed
- JFileChooser chooser = new JFileChooser();
- chooser.setDialogTitle(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.select_project_location"));
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- String path = this.projectLocationTextField.getText();
- if (path.length() > 0) {
- File f = new File(path);
- if (f.exists()) {
- chooser.setSelectedFile(f);
- }
- }
- if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(this)) {
- File projectDir = chooser.getSelectedFile();
- projectLocationTextField.setText(FileUtil.normalizeFile(projectDir).getAbsolutePath());
- }
- panel.fireChangeEvent();
-
- }//GEN-LAST:event_browseButtonActionPerformed
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton browseButton;
- private javax.swing.JLabel createdFolderLabel;
- private javax.swing.JTextField createdFolderTextField;
- private javax.swing.JLabel projectLocationLabel;
- private javax.swing.JTextField projectLocationTextField;
- private javax.swing.JLabel projectNameLabel;
- private javax.swing.JTextField projectNameTextField;
- // End of variables declaration//GEN-END:variables
-
- @Override
- public void addNotify() {
- super.addNotify();
- //same problem as in 31086, initial focus on Cancel button
- projectNameTextField.requestFocus();
- }
-
- boolean valid(WizardDescriptor wizardDescriptor) {
-
- if (projectNameTextField.getText().length() == 0) {
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.invalid_folder_name"));
- return false; // Display name not specified
- }
- File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
- if (!f.isDirectory()) {
- String message = org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.invalid_path");
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, message);
- return false;
- }
- final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
-
- File projLoc = destFolder;
- while (projLoc != null && !projLoc.exists()) {
- projLoc = projLoc.getParentFile();
- }
- if (projLoc == null || !projLoc.canWrite()) {
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.folder_creation_error"));
- return false;
- }
-
- if (FileUtil.toFileObject(projLoc) == null) {
- String message = org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.invalid_path");
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, message);
- return false;
- }
-
- File[] kids = destFolder.listFiles();
- if (destFolder.exists() && kids != null && kids.length > 0) {
- // Folder exists and is not empty
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.folder_exists"));
- return false;
- }
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, "");
- return true;
- }
-
- void store(WizardDescriptor d) {
- String name = projectNameTextField.getText().trim();
- String folder = createdFolderTextField.getText().trim();
-
- d.putProperty("projdir", new File(folder)); // NOI18N
- d.putProperty("name", name); // NOI18N
- }
-
- void read(WizardDescriptor settings) {
- File projectLocation = (File) settings.getProperty("projdir"); // NOI18N
- if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
- projectLocation = ProjectChooser.getProjectsFolder();
- } else {
- projectLocation = projectLocation.getParentFile();
- }
- this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
-
- String projectName = (String) settings.getProperty("name"); // NOI18N
- if(projectName == null) {
- projectName = org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.default_prj_name");
- }
- this.projectNameTextField.setText(projectName);
- this.projectNameTextField.selectAll();
- }
-
- void validate(WizardDescriptor d) throws WizardValidationException {
- // nothing to validate
- }
-
- // Implementation of DocumentListener --------------------------------------
-
- public void changedUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- public void insertUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- public void removeUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- /** Handles changes in the Project name and project directory, */
- private void updateTexts(DocumentEvent e) {
-
- Document doc = e.getDocument();
-
- if (doc == projectNameTextField.getDocument() || doc == projectLocationTextField.getDocument()) {
- // Change in the project name
-
- String projectName = projectNameTextField.getText();
- String projectFolder = projectLocationTextField.getText();
-
- //if (projectFolder.trim().length() == 0 || projectFolder.equals(oldName)) {
- createdFolderTextField.setText(projectFolder + File.separatorChar + projectName);
- //}
-
- }
- panel.fireChangeEvent(); // Notify that the panel changed
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardIterator.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardIterator.java b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardIterator.java
deleted file mode 100644
index 7fae983..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardIterator.java
+++ /dev/null
@@ -1,272 +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.apisupport.osgidemo;
-
-import java.awt.Component;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.io.Writer;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.NoSuchElementException;
-import java.util.Set;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
-import javax.script.ScriptContext;
-import javax.script.ScriptEngine;
-import javax.script.ScriptEngineManager;
-import javax.script.ScriptException;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.netbeans.spi.project.ui.templates.support.Templates;
-import org.openide.WizardDescriptor;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.util.NbBundle;
-
-public class SampleAppWizardIterator implements WizardDescriptor.AsynchronousInstantiatingIterator {
-
- private static final long serialVersionUID = 1L;
-
- private transient int index;
- private transient WizardDescriptor.Panel[] panels;
- private transient WizardDescriptor wiz;
- private final boolean netbinox;
-
- public SampleAppWizardIterator(boolean netbinox) {
- this.netbinox = netbinox;
- }
-
- public static SampleAppWizardIterator createIterator(Map<?,?> params) {
- return new SampleAppWizardIterator(params.containsKey("netbinox")); // NOI18N
- }
-
- private WizardDescriptor.Panel[] createPanels() {
- List<WizardDescriptor.Panel<?>> arr = new ArrayList<WizardDescriptor.Panel<?>>();
- arr.add(new SampleAppWizardPanel());
- return arr.toArray(new WizardDescriptor.Panel[0]);
- }
-
- private String[] createSteps() {
- List<String> arr = new ArrayList<String>();
- arr.add(NbBundle.getMessage(SampleAppWizardIterator.class, "LBL_CreateProjectStep"));
- return arr.toArray(new String[0]);
- }
-
- @Override
- public Set/*<FileObject>*/ instantiate() throws IOException {
- Set<FileObject> resultSet = new LinkedHashSet<FileObject>();
- File dirF = FileUtil.normalizeFile((File) wiz.getProperty("projdir")); // NOI18N
- dirF.mkdirs();
-
- FileObject template = Templates.getTemplate(wiz);
- FileObject dir = FileUtil.toFileObject(dirF);
- Map<String,Object> params = new HashMap<String, Object>();
- if (netbinox) {
- params.put("netbinox", "true"); // NOI18N
- }
- unZipFile(null, template.getInputStream(), params, dir);
-
- // Always open top dir as a project:
- resultSet.add(dir);
- // Look for nested projects to open as well:
- Enumeration e = dir.getFolders(true);
- while (e.hasMoreElements()) {
- FileObject subfolder = (FileObject) e.nextElement();
- if (ProjectManager.getDefault().isProject(subfolder)) {
- resultSet.add(subfolder);
- }
- }
-
- File parent = dirF.getParentFile();
- if (parent != null && parent.exists()) {
- ProjectChooser.setProjectsFolder(parent);
- }
-
- return resultSet;
- }
-
- @Override
- public void initialize(WizardDescriptor wiz) {
- this.wiz = wiz;
- index = 0;
- if (netbinox) {
- wiz.putProperty("name", NbBundle.getMessage(SampleAppWizardIterator.class, "CTL_NetbinoxProjectName"));
- } else {
- wiz.putProperty("name", NbBundle.getMessage(SampleAppWizardIterator.class, "CTL_FelixProjectName"));
- }
- panels = createPanels();
- // Make sure list of steps is accurate.
- String[] steps = createSteps();
- for (int i = 0; i < panels.length; i++) {
- Component c = panels[i].getComponent();
- if (steps[i] == null) {
- // Default step name to component name of panel.
- // Mainly useful for getting the name of the target
- // chooser to appear in the list of steps.
- steps[i] = c.getName();
- }
- if (c instanceof JComponent) { // assume Swing components
- JComponent jc = (JComponent) c;
- // Step #.
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, new Integer(i)); // NOI18N
- // Step name (actually the whole list for reference).
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps); // NOI18N
- }
- }
- }
-
- @Override
- public void uninitialize(WizardDescriptor wiz) {
- this.wiz.putProperty("projdir",null); // NOI18N
- this.wiz.putProperty("name",null); // NOI18N
- this.wiz = null;
- panels = null;
- }
-
- @Override
- public String name() {
- return NbBundle.getMessage(SampleAppWizardIterator.class, "SampleAppWizardIterator.name.format",
- new Object[] {new Integer(index + 1), new Integer(panels.length)});
- }
-
- @Override
- public boolean hasNext() {
- return index < panels.length - 1;
- }
-
- @Override
- public boolean hasPrevious() {
- return index > 0;
- }
-
- @Override
- public void nextPanel() {
- if (!hasNext()) {
- throw new NoSuchElementException();
- }
- index++;
- }
-
- @Override
- public void previousPanel() {
- if (!hasPrevious()) {
- throw new NoSuchElementException();
- }
- index--;
- }
-
- @Override
- public WizardDescriptor.Panel current() {
- return panels[index];
- }
-
- @Override
- public final void addChangeListener(ChangeListener l) {}
- @Override
- public final void removeChangeListener(ChangeListener l) {}
-
- static void unZipFile(FileObject template, InputStream source, Map<String,Object> params, FileObject projectRoot) throws IOException {
- try {
- ZipInputStream str = new ZipInputStream(source);
- ZipEntry entry;
- while ((entry = str.getNextEntry()) != null) {
- if (entry.isDirectory()) {
- FileUtil.createFolder(projectRoot, entry.getName());
- } else {
- FileObject fo = FileUtil.createData(projectRoot, entry.getName());
- String mime = fo.getMIMEType();
- OutputStream out = fo.getOutputStream();
- try {
- if (mime.startsWith("text/")) {
- StringBuilder sb = new StringBuilder();
- for (;;) {
- int r = str.read();
- if (r == -1) {
- break;
- }
- if (r == '$') {
- sb.append("${r\"$\"}");
- } else {
- sb.append((char)r);
- }
- }
- ScriptEngineManager m = new ScriptEngineManager();
- ScriptEngine engine = m.getEngineByName("FreeMarker");
- assert engine != null : "FreeMarker engine needs to be present";
- engine.getBindings(ScriptContext.ENGINE_SCOPE).putAll(params);
- if (template != null) {
- engine.getContext().setAttribute("org.openide.filesystems.FileObject", template, ScriptContext.ENGINE_SCOPE); // NOI18N
- }
- Writer w = new OutputStreamWriter(out, "UTF-8");
- engine.getContext().setWriter(w);
- try {
- engine.eval(sb.toString());
- } catch (ScriptException ex) {
- throw new IOException(sb.toString(), ex);
- }
- w.flush();
- } else {
- FileUtil.copy(str, out);
- }
- } finally {
- out.close();
- }
- }
- }
- } finally {
- source.close();
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardPanel.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardPanel.java b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardPanel.java
deleted file mode 100644
index 8dd5013..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleAppWizardPanel.java
+++ /dev/null
@@ -1,138 +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.apisupport.osgidemo;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-/**
- * Panel just asking for basic info.
- */
-class SampleAppWizardPanel implements WizardDescriptor.Panel,
- WizardDescriptor.ValidatingPanel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor wizardDescriptor;
- private SampleAppPanelVisual component;
-
- public SampleAppWizardPanel() {
- }
-
- @Override
- public Component getComponent() {
- if (component == null) {
- component = new SampleAppPanelVisual(this);
- component.setName(NbBundle.getMessage(SampleAppWizardPanel.class, "LBL_CreateProjectStep"));
- }
- return component;
- }
-
- @Override
- public HelpCtx getHelp() {
- return null;
- }
-
- @Override
- public boolean isValid() {
- getComponent();
- return component.valid(wizardDescriptor);
- }
-
- private final Set<ChangeListener> listeners = new HashSet<ChangeListener>(1);
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- @Override
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet<ChangeListener>(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener) it.next()).stateChanged(ev);
- }
- }
-
- @Override
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor) settings;
- component.read(wizardDescriptor);
- wizardDescriptor.putProperty("NewProjectWizard_Title", //NOI18N
- wizardDescriptor.getProperty("NewFileWizard_Title")); //NOI18N
- }
-
- @Override
- public void storeSettings(Object settings) {
- WizardDescriptor d = (WizardDescriptor) settings;
- component.store(d);
- d.putProperty("NewProjectWizard_Title", null); //NOI18N
- }
-
- @Override
- public boolean isFinishPanel() {
- return false;
- }
-
- @Override
- public void validate() throws WizardValidationException {
- getComponent();
- component.validate(wizardDescriptor);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleFelixDescription.html
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleFelixDescription.html b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleFelixDescription.html
deleted file mode 100644
index 171d696..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/SampleFelixDescription.html
+++ /dev/null
@@ -1,49 +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):
--->
-
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
-</head>
- <body>
- Illustrates how to use the NetBeans Platform and Felix OSGi container together.
- </body>
-</html>
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/bundle.png
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/bundle.png b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/bundle.png
deleted file mode 100644
index 02f76f1..0000000
Binary files a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/bundle.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/equinox.png
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/equinox.png b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/equinox.png
deleted file mode 100644
index 64f1db9..0000000
Binary files a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/equinox.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/layer.xml b/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/layer.xml
deleted file mode 100644
index 148b29e..0000000
--- a/apisupport.osgidemo/src/org/netbeans/modules/apisupport/osgidemo/layer.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<!--
-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-2006 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.
--->
-<filesystem>
- <folder name="Templates">
- <folder name="Project">
- <folder name="Samples">
- <folder name="ApiSupport">
- <file name="EquinoxDemo.zip" url="EquinoxDemo.zip">
- <attr name="position" intvalue="99900"/>
- <attr name="iconBase" stringvalue="org/netbeans/modules/apisupport/osgidemo/equinox.png"/>
- <attr name="displayName" bundlevalue="org.netbeans.modules.apisupport.osgidemo.Bundle#SampleAppFile"/>
- <attr name="instantiatingIterator" methodvalue="org.netbeans.modules.apisupport.osgidemo.SampleAppWizardIterator.createIterator"/>
- <attr name="instantiatingWizardURL" urlvalue="nbresloc:/org/netbeans/modules/apisupport/osgidemo/SampleAppDescription.html"/>
- <attr name="template" boolvalue="true"/>
- <attr name="netbinox" stringvalue="true"/>
- </file>
- <file name="FelixDemo.zip" url="EquinoxDemo.zip">
- <attr name="position" intvalue="99800"/>
- <attr name="iconBase" stringvalue="org/netbeans/modules/apisupport/osgidemo/bundle.png"/>
- <attr name="displayName" bundlevalue="org.netbeans.modules.apisupport.osgidemo.Bundle#SampleFelixFile"/>
- <attr name="instantiatingIterator" methodvalue="org.netbeans.modules.apisupport.osgidemo.SampleAppWizardIterator.createIterator"/>
- <attr name="instantiatingWizardURL" urlvalue="nbresloc:/org/netbeans/modules/apisupport/osgidemo/SampleFelixDescription.html"/>
- <attr name="template" boolvalue="true"/>
- </file>
- </folder>
- </folder>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildEquinoxSampleApplicationTest.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildEquinoxSampleApplicationTest.java b/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildEquinoxSampleApplicationTest.java
deleted file mode 100644
index 455e4de..0000000
--- a/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildEquinoxSampleApplicationTest.java
+++ /dev/null
@@ -1,66 +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.apisupport.osgidemo;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Invokes various Ant targets over osgidemo sample in equinox mode.
- *
- * @author Tomas Musil
- */
-public class BuildEquinoxSampleApplicationTest extends BuildSampleApplicationBase {
- public BuildEquinoxSampleApplicationTest(String testName) {
- super(testName);
- }
-
- @Override
- protected Map<String, Object> params() {
- Map<String, Object> map = new HashMap<String, Object>();
- map.put("netbinox", "true");
- return map;
- }
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildFelixSampleApplicationTest.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildFelixSampleApplicationTest.java b/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildFelixSampleApplicationTest.java
deleted file mode 100644
index 2482cce..0000000
--- a/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildFelixSampleApplicationTest.java
+++ /dev/null
@@ -1,65 +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.apisupport.osgidemo;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Invokes various Ant targets over osgidemo sample in felix mode.
- *
- * @author Tomas Musil
- */
-public class BuildFelixSampleApplicationTest extends BuildSampleApplicationBase {
- public BuildFelixSampleApplicationTest(String testName) {
- super(testName);
- }
-
- @Override
- protected Map<String, Object> params() {
- Map<String, Object> map = new HashMap<String, Object>();
- return map;
- }
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildSampleApplicationBase.java
----------------------------------------------------------------------
diff --git a/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildSampleApplicationBase.java b/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildSampleApplicationBase.java
deleted file mode 100644
index 0f4d9ef..0000000
--- a/apisupport.osgidemo/test/unit/src/org/netbeans/modules/apisupport/osgidemo/BuildSampleApplicationBase.java
+++ /dev/null
@@ -1,225 +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.apisupport.osgidemo;
-
-import java.io.File;
-import java.io.FilenameFilter;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.Enumeration;
-import java.util.Map;
-import java.util.Properties;
-import org.apache.tools.ant.module.api.support.ActionUtils;
-import org.netbeans.api.project.Project;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.modules.apisupport.project.DialogDisplayerImpl;
-import org.netbeans.modules.apisupport.project.InstalledFileLocatorImpl;
-import org.netbeans.modules.apisupport.project.TestAntLogger;
-import org.netbeans.modules.apisupport.project.TestBase;
-import org.netbeans.modules.apisupport.project.layers.LayerTestBase;
-import org.netbeans.spi.project.support.ant.GeneratedFilesHelper;
-import org.openide.DialogDescriptor;
-import org.openide.execution.ExecutorTask;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.util.EditableProperties;
-
-/**
- * Invokes various Ant targets over osgidemo sample.
- *
- * @author Tomas Musil
- */
-public abstract class BuildSampleApplicationBase extends TestBase {
-
- private File sampleFolder = null;
-
- static {
- // #65461: do not try to load ModuleInfo instances from ant module
- System.setProperty("org.netbeans.core.startup.ModuleSystem.CULPRIT", "true");
- System.setProperty("org.openide.windows.DummyWindowManager.VISIBLE", "false");
- LayerTestBase.Lkp.setLookup(new Object[0]);
- DialogDisplayerImpl.returnFromNotify(DialogDescriptor.NO_OPTION);
- FileUtil.setMIMEType("properties", "text/x-properties");
- }
-
- public BuildSampleApplicationBase(String testName) {
- super(testName);
- }
-
- protected abstract Map<String,Object> params();
-
- @Override
- protected void setUp() throws Exception {
- clearWorkDir();
- noDataDir = true;
- super.setUp();
- InstalledFileLocatorImpl.registerDestDir(destDirF);
- TestAntLogger.getDefault().setEnabled(true);
- }
-
- @Override
- protected void tearDown() throws Exception {
- TestAntLogger.getDefault().setEnabled(false);
- }
-
- public int runAntTargetsOnSample(String[] targets) throws Exception {
- String p = System.getProperty("sample.project");
- FileObject fo;
- if (p == null) {
- InputStream is = getClass().getClassLoader().getResourceAsStream("org/netbeans/modules/apisupport/osgidemo/EquinoxDemo.zip");
- assertNotNull(is);
- sampleFolder = new File(getWorkDir(), "sample");
- sampleFolder.mkdir();
- fo = FileUtil.toFileObject(sampleFolder);
- assertNotNull(fo);
- SampleAppWizardIterator.unZipFile(null, is, params(), fo);
- File buildProps = new File(getWorkDir(), "build.properties");
- File privateFolder = new File(new File(sampleFolder, "nbproject"), "private");
- privateFolder.mkdir();
- FileObject platfPrivateProps = FileUtil.copyFile(FileUtil.toFileObject(buildProps), FileUtil.toFileObject(privateFolder), "platform-private");
- assertNotNull(platfPrivateProps);
- { // In the target platform, libs.junit4 may be in the extra cluster rather than platform:
- FileObject platfProps = fo.getFileObject("nbproject/platform.properties");
- EditableProperties props = new EditableProperties(false);
- is = platfProps.getInputStream();
- props.load(is);
- is.close();
- props.setProperty("cluster.path", (props.getProperty("cluster.path") + ":${nbplatform.active.dir}/extra").split("(?<=:)"));
- OutputStream os = platfProps.getOutputStream();
- props.store(os);
- os.close();
- }
- System.setProperty("sample.project", sampleFolder.getPath());
- } else {
- sampleFolder = new File(p);
- fo = FileUtil.toFileObject(sampleFolder);
- assertNotNull(fo);
- }
-
-
- Project sampleSuite = ProjectManager.getDefault().findProject(fo);
- assertNotNull(sampleSuite);
- FileObject buildScript = sampleSuite.getProjectDirectory().getFileObject(GeneratedFilesHelper.BUILD_XML_PATH);
- assertNotNull(buildScript);
- assertTrue(buildScript.isValid());
- Properties props = new Properties();
-
- ExecutorTask et = ActionUtils.runTarget(buildScript, targets, props);
- et.waitFinished();
- return et.result();
- }
-
- public void testAntInitAndClean() throws Exception {
- int ret = runAntTargetsOnSample(new String[]{"clean"});
- assertEquals("build successful", 0, ret);
-
- FileObject fo = FileUtil.toFileObject(sampleFolder);
- Enumeration<? extends FileObject> en = fo.getChildren(true);
- while (en.hasMoreElements()) {
- FileObject data = en.nextElement();
- if (data.isFolder()) {
- continue;
- }
- String s = data.asText();
- if (s.contains("#if")) {
- fail("Wrong content of " + data +":\n" + s);
- }
- }
- }
-
- public void testBuildZip() throws Exception {
- int ret = runAntTargetsOnSample(new String[]{"build-zip"});
- assertEquals("build-zipant target should return zero - build successful", 0, ret);
- File dist = new File(sampleFolder, "dist");
- File zipFile = new File(dist, "osgisample.zip");
- assertTrue("ZIP file should be in dist folder", zipFile.exists());
- }
-
- public void testBuild() throws Exception {
- int ret = runAntTargetsOnSample(new String[] {"build"});
- assertEquals("build ant target should return zero - build successful", 0 , ret);
- File buildFolder = new File(sampleFolder,"build");
- assertTrue("build folder should exist", buildFolder.exists() && buildFolder.isDirectory());
- String[] children = buildFolder.list();
- assertTrue("build folder is not empty", children.length>0);
-
- }
-
- public void testBuildNBMs() throws Exception {
- int ret = runAntTargetsOnSample(new String[] {"nbms"});
- assertEquals("build ant target should return zero - build successful", 0 , ret);
- File buildFolder = new File(sampleFolder,"build");
- File updatesFolder = new File(buildFolder,"updates");
- assertTrue("build/update folder exists", updatesFolder.exists() && updatesFolder.isDirectory());
- File showBundles = new File(updatesFolder, "org-netbeans-demo-osgi-showbundles.jar");
- assertTrue("Our NBM is in build/updates folder", showBundles.exists());
- assertEquals("1 nbm is in build/updates folder", 1, updatesFolder.list(new FilenameFilter() {
- @Override
- public boolean accept(File dir, String name) {
- return name.matches(".+[.](nbm|jar)$");
- }
- }).length);
- }
-
- public void testTest() throws Exception {
- int ret = runAntTargetsOnSample(new String[]{"test"});
- assertEquals("test ant target should return zero - build successful", 0, ret);
- FileObject fo = FileUtil.toFileObject(sampleFolder);
- FileObject result = fo.getFileObject("showbundles/build/test/unit/results/TEST-org.netbeans.demo.osgi.showbundles.InstallerTest.xml");
- assertNotNull("Test result found", result);
- final String out = result.asText("UTF-8");
- if (!out.contains("testsuite errors=\"0\" failures=\"0\"")) {
- fail("Expecting no errors and failures:\n" + out);
- }
- }
-
- public void testClean() throws Exception {
- int ret = runAntTargetsOnSample(new String[]{"clean"});
- assertEquals("clean ant target should return zero - build successful", 0, ret);
- File buildFolder = new File(sampleFolder, "build");
- File distFolder = new File(sampleFolder, "dist");
- assertTrue("build and dist folders are deleted", !distFolder.exists() && !buildFolder.exists());
- }
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/ColorChooser/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/build.xml b/apisupport.paintapp/PaintApp-suite/ColorChooser/build.xml
deleted file mode 100644
index 7e5ad05..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/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) 2007, 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.swing.colorchooser" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project org.netbeans.swing.colorchooser.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/ColorChooser/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/manifest.mf b/apisupport.paintapp/PaintApp-suite/ColorChooser/manifest.mf
deleted file mode 100644
index cb6f917..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/manifest.mf
+++ /dev/null
@@ -1,5 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.swing.colorchooser
-OpenIDE-Module-Localizing-Bundle: org/netbeans/swing/colorchooser/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.0
-
[10/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/layer.xml b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/layer.xml
deleted file mode 100644
index 2535107..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/layer.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<!--
-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.
--->
-
-<filesystem>
- <folder name="Actions">
- <folder name="Window">
- <file name="org-netbeans-modules-customerviewer-CustomerAction.instance">
- <attr name="component" methodvalue="org.netbeans.modules.customerviewer.CustomerTopComponent.findInstance"/>
- <attr name="displayName" bundlevalue="org.netbeans.modules.customerviewer.Bundle#CTL_CustomerAction"/>
- <attr name="instanceCreate" methodvalue="org.openide.windows.TopComponent.openAction"/>
- </file>
- </folder>
- </folder>
- <folder name="Menu">
- <folder name="GoTo_hidden"/>
- <folder name="Tools_hidden"/>
- <folder name="View_hidden"/>
- <folder name="Window">
- <file name="CustomerAction.shadow">
- <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-modules-customerviewer-CustomerAction.instance"/>
- </file>
- </folder>
- </folder>
- <folder name="Toolbars">
- <folder name="Memory_hidden"/>
- </folder>
- <folder name="Windows2">
- <folder name="Components">
- <file name="CustomerTopComponent.settings" url="CustomerTopComponentSettings.xml"/>
- </folder>
- <file name="WindowManager.wswmgr" url="windowmanager.wswmgr"/>
- <folder name="Modes">
- <folder name="explorer">
- <file name="CustomerTopComponent.wstcref" url="CustomerTopComponentWstcref.xml"/>
- </folder>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/windowmanager.wswmgr
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/windowmanager.wswmgr b/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/windowmanager.wswmgr
deleted file mode 100644
index 2536a03..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerViewer/src/org/netbeans/modules/customerviewer/windowmanager.wswmgr
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE windowmanager PUBLIC
- "-//NetBeans//DTD Window Manager Properties 2.1//EN"
- "http://www.netbeans.org/dtds/windowmanager-properties2_1.dtd">
-
-<windowmanager version="2.1">
- <main-window>
- <joined-properties centered-horizontally="true" centered-vertically="true"
- relative-width="0.6" relative-height="0.6" />
- <separated-properties centered-horizontally="true" relative-y="0.1"
- relative-width="0.8" relative-height="0.08" />
- </main-window>
- <editor-area state="joined">
- <constraints>
- <path orientation="horizontal" number="50" weight="0.65" />
- <path orientation="vertical" number="40" weight="0.7" />
- <path orientation="horizontal" number="50" weight="0.65" />
- </constraints>
- <relative-bounds x="33" y="24" width="42" height="44"/>
- </editor-area>
- <screen width="1280" height="1024" />
- <active-mode name="explorer" />
- <maximized-mode name="" />
- <toolbar configuration="Standard" preferred-icon-size="24" />
-</windowmanager>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties b/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
deleted file mode 100755
index 51ba85e..0000000
--- a/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
+++ /dev/null
@@ -1,45 +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):
-currentVersion=CRUD Customer DB Manager {0}
-LBL_splash_window_title=Starting CRUD Customer DB Manager
-#NOI18N
-SPLASH_WIDTH=472
-#NOI18N
-SplashProgressBarBounds=0,249,472,6
-#NOI18N
-SplashRunningTextBounds=9,235,449,11
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/frame48.gif
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/frame48.gif b/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/frame48.gif
deleted file mode 100644
index c938743..0000000
Binary files a/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/frame48.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/splash.gif
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/splash.gif b/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/splash.gif
deleted file mode 100644
index 1c6b977..0000000
Binary files a/apisupport.crudsample/crud-sample-application/branding/core/core.jar/org/netbeans/core/startup/splash.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties b/apisupport.crudsample/crud-sample-application/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
deleted file mode 100755
index cd33966..0000000
--- a/apisupport.crudsample/crud-sample-application/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.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):
-CTL_MainWindow_Title=CRUD Customer DB Manager {0}
-CTL_MainWindow_Title_No_Project=CRUD Customer DB Manager {0}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/build.xml b/apisupport.crudsample/crud-sample-application/build.xml
deleted file mode 100755
index 1e2bc96..0000000
--- a/apisupport.crudsample/crud-sample-application/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="crud-sample-application" basedir=".">
- <description>Builds the module suite crud-sample-application.</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/derbyclient-library/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/build.xml b/apisupport.crudsample/crud-sample-application/derbyclient-library/build.xml
deleted file mode 100755
index 85de9d3..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/build.xml
+++ /dev/null
@@ -1,57 +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.derbyclientlibrary" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project org.netbeans.modules.derbyclientlibrary.</description>
- <import file="nbproject/build-impl.xml"/>
- <target name="netbeans-extra">
- <fail message="Please set derbyclient.jar to the location of this JAR (often found in JDK 6 installations.)">
- <condition>
- <not>
- <available file="${derbyclient.jar}"/>
- </not>
- </condition>
- </fail>
- <copy file="${derbyclient.jar}" tofile="${cluster}/modules/ext/derbyclient.jar"/>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/derbyclient-library/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/manifest.mf b/apisupport.crudsample/crud-sample-application/derbyclient-library/manifest.mf
deleted file mode 100755
index e2de2ba..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/manifest.mf
+++ /dev/null
@@ -1,5 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.modules.derbyclientlibrary
-OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/derbyclientlibrary/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.1
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/build-impl.xml b/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/build-impl.xml
deleted file mode 100755
index 7c67d09..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/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.derbyclientlibrary-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/derbyclient-library/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/genfiles.properties b/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/genfiles.properties
deleted file mode 100755
index cd11479..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=a88a3e26
-build.xml.script.CRC32=1905bf51
-build.xml.stylesheet.CRC32=79c3b980@1.33
-# 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=35827b19
-nbproject/build-impl.xml.script.CRC32=55c5ee42
-nbproject/build-impl.xml.stylesheet.CRC32=261c4bef@1.34
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.properties b/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.properties
deleted file mode 100755
index 591f4e9..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.properties
+++ /dev/null
@@ -1,41 +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
-derbyclient.jar=${java.home}/../db/lib/derbyclient.jar
-javac.compilerargs=-Xlint -Xlint:-serial
-javac.source=1.6
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.xml b/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.xml
deleted file mode 100755
index 6379f0e..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/project.xml
+++ /dev/null
@@ -1,57 +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.derbyclientlibrary</code-name-base>
- <suite-component/>
- <module-dependencies/>
- <public-packages>
- <package>org.apache.derby.jdbc</package>
- </public-packages>
- <class-path-extension>
- <runtime-relative-path>ext/derbyclient.jar</runtime-relative-path>
- <binary-origin>${derbyclient.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/derbyclient-library/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/suite.properties b/apisupport.crudsample/crud-sample-application/derbyclient-library/nbproject/suite.properties
deleted file mode 100755
index 78e330f..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/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/derbyclient-library/src/org/netbeans/modules/derbyclientlibrary/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/derbyclient-library/src/org/netbeans/modules/derbyclientlibrary/Bundle.properties b/apisupport.crudsample/crud-sample-application/derbyclient-library/src/org/netbeans/modules/derbyclientlibrary/Bundle.properties
deleted file mode 100755
index 8b64306..0000000
--- a/apisupport.crudsample/crud-sample-application/derbyclient-library/src/org/netbeans/modules/derbyclientlibrary/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=Derby Client Library
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/nbproject/build-impl.xml b/apisupport.crudsample/crud-sample-application/nbproject/build-impl.xml
deleted file mode 100755
index d6136a6..0000000
--- a/apisupport.crudsample/crud-sample-application/nbproject/build-impl.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT ***
-*** EDIT ../build.xml INSTEAD ***
--->
-<project name="crud-sample-application-impl" basedir=".." xmlns:sproject="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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/platform-private.properties"/>
- <property file="nbproject/platform.properties"/>
- <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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-suite-project/1">
- <attribute name="property"/>
- <attribute name="value"/>
- <sequential>
- <property name="@{property}" value="@{value}"/>
- </sequential>
- </macrodef>
- <property file="${user.properties.file}"/>
- <sproject:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir"/>
- <sproject:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir"/>
- <sproject:evalprops property="cluster.path.evaluated" value="${cluster.path}"/>
- <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>
- <ant antfile="nbproject/platform.xml"/>
- <fail message="Cannot find NetBeans build harness. ${line.separator}Check that nbplatform.${nbplatform.active}.netbeans.dest.dir and nbplatform.${nbplatform.active}.harness.dir are defined. ${line.separator}On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties ${line.separator}but for automated builds you should pass these properties to Ant explicitly. ${line.separator}You may instead download the harness and platform: -Dbootstrap.url=.../tasks.jar -Dautoupdate.catalog.url=.../updates.xml">
- <condition>
- <not>
- <available file="${harness.dir}/suite.xml"/>
- </not>
- </condition>
- </fail>
- <import file="${harness.dir}/suite.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/nbproject/genfiles.properties b/apisupport.crudsample/crud-sample-application/nbproject/genfiles.properties
deleted file mode 100755
index 07763f8..0000000
--- a/apisupport.crudsample/crud-sample-application/nbproject/genfiles.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-build.xml.data.CRC32=356ef93f
-build.xml.script.CRC32=5024f1d0
-build.xml.stylesheet.CRC32=eaf9f76a@2.56
-# 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=356ef93f
-nbproject/build-impl.xml.script.CRC32=24977a9b
-nbproject/build-impl.xml.stylesheet.CRC32=0f381476@2.56
-nbproject/platform.xml.data.CRC32=356ef93f
-nbproject/platform.xml.script.CRC32=db9e1f43
-nbproject/platform.xml.stylesheet.CRC32=df8ac4dd@2.56
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/nbproject/platform.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/nbproject/platform.properties b/apisupport.crudsample/crud-sample-application/nbproject/platform.properties
deleted file mode 100755
index dc055a7..0000000
--- a/apisupport.crudsample/crud-sample-application/nbproject/platform.properties
+++ /dev/null
@@ -1,52 +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.netbeans.api.visual,\
- org.netbeans.core.execution,\
- org.netbeans.core.multiview,\
- org.netbeans.libs.jsr223,\
- org.netbeans.modules.autoupdate.services,\
- org.netbeans.modules.autoupdate.ui,\
- org.netbeans.modules.core.kit,\
- org.netbeans.modules.favorites,\
- org.openide.compat,\
- org.openide.options,\
- org.openide.util.enumerations
-nbplatform.active=default
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/nbproject/platform.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/nbproject/platform.xml b/apisupport.crudsample/crud-sample-application/nbproject/platform.xml
deleted file mode 100644
index 9936ab8..0000000
--- a/apisupport.crudsample/crud-sample-application/nbproject/platform.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2013, 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 name="platform" default="download" basedir="..">
- <condition property="download.required">
- <and>
- <not>
- <available file="${harness.dir}/suite.xml"/>
- </not>
- <isset property="bootstrap.url"/>
- <isset property="autoupdate.catalog.url"/>
- </and>
- </condition>
- <target name="download" if="download.required">
- <mkdir dir="${harness.dir}"/>
- <pathconvert pathsep="|" property="download.clusters">
- <mapper type="flatten"/>
- <path path="${cluster.path}"/>
- </pathconvert>
- <property name="disabled.modules" value=""/>
- <pathconvert property="module.includes" pathsep="">
- <mapper type="glob" from="${basedir}${file.separator}*" to="(?!\Q*\E)"/>
- <path>
- <filelist files="${disabled.modules}" dir="."/>
- </path>
- </pathconvert>
- <echo message="Downloading clusters ${download.clusters}"/>
- <property name="tasks.jar" location="${java.io.tmpdir}/tasks.jar"/>
- <get src="${bootstrap.url}" dest="${tasks.jar}" usetimestamp="true" verbose="true"/>
- <taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="${tasks.jar}"/>
- <autoupdate installdir="${nbplatform.active.dir}" updatecenter="${autoupdate.catalog.url}">
- <modules includes="${module.includes}.*" clusters="${download.clusters}"/>
- <modules includes="org[.]netbeans[.]modules[.]apisupport[.]harness" clusters="harness"/>
- </autoupdate>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/nbproject/project.properties b/apisupport.crudsample/crud-sample-application/nbproject/project.properties
deleted file mode 100755
index 3c73158..0000000
--- a/apisupport.crudsample/crud-sample-application/nbproject/project.properties
+++ /dev/null
@@ -1,50 +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):
-app.icon=branding/core/core.jar/org/netbeans/core/startup/frame48.gif
-app.name=crud_sample_application
-app.title=CRUD Customer DB Manager
-branding.token=${app.name}
-modules=\
- ${project.org.netbeans.modules.customerdb}:\
- ${project.org.netbeans.modules.customereditor}:\
- ${project.org.netbeans.modules.customerviewer}:\
- ${project.org.netbeans.modules.derbyclientlibrary}
-project.org.netbeans.modules.customerdb=CustomerDBAccessLibrary
-project.org.netbeans.modules.customerviewer=CustomerViewer
-project.org.netbeans.modules.derbyclientlibrary=derbyclient-library
-project.org.netbeans.modules.customereditor=CustomerEditor
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/nbproject/project.xml b/apisupport.crudsample/crud-sample-application/nbproject/project.xml
deleted file mode 100755
index 12f5a99..0000000
--- a/apisupport.crudsample/crud-sample-application/nbproject/project.xml
+++ /dev/null
@@ -1,48 +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.suite</type>
- <configuration>
- <data xmlns="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <name>crud-sample-application</name>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/manifest.mf b/apisupport.crudsample/manifest.mf
deleted file mode 100755
index 2493dca..0000000
--- a/apisupport.crudsample/manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.modules.apisupport.crudsample
-OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/crudsample/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.24
-OpenIDE-Module-Layer: org/netbeans/modules/apisupport/crudsample/layer.xml
-AutoUpdate-Show-In-Client: false
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/nbproject/project.properties b/apisupport.crudsample/nbproject/project.properties
deleted file mode 100755
index 247121e..0000000
--- a/apisupport.crudsample/nbproject/project.properties
+++ /dev/null
@@ -1,43 +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
-test-unit-sys-prop.test.nbroot=${nb_all}
-test.unit.run.cp.extra=${tools.jar}
-persistence-library1.jar=${nb_all}/nbbuild/netbeans/${nb.cluster.java.dir}/modules/ext/eclipselink/eclipselink.jar
-persistence-library2.jar=${nb_all}/nbbuild/netbeans/${nb.cluster.java.dir}/modules/ext/eclipselink/javax.persistence_2.1.0.v201304241213.jar
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/nbproject/project.xml b/apisupport.crudsample/nbproject/project.xml
deleted file mode 100755
index f1415a4..0000000
--- a/apisupport.crudsample/nbproject/project.xml
+++ /dev/null
@@ -1,134 +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.apisupport.crudsample</code-name-base>
- <module-dependencies>
- <dependency>
- <code-name-base>org.netbeans.modules.derby</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>1.17</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.project.libraries</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.49</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.29</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.78</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</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.filesystems</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.0</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.16</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</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.3</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/src/org/netbeans/modules/apisupport/crudsample/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/Bundle.properties b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/Bundle.properties
deleted file mode 100755
index a029ab8..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/Bundle.properties
+++ /dev/null
@@ -1,68 +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=CRUD Application Platform Sample
-
-LBL_CreateProjectStep=Create a new CRUD Application project
-LBL_CreatePersistenceStep=Choose Persistence Library
-OpenIDE-Module-Display-Category=Developing NetBeans
-OpenIDE-Module-Long-Description=\
- Sample CRUD application based on the NetBeans platform.
-OpenIDE-Module-Short-Description=Sample NetBeans platform application.
-Templates/Project/Samples/ApiSupport/SampleCRUDAppProject.zip=Sample CRUD Application
-
-# {0} - step #
-# {1} - step count
-SampleAppWizardIterator.name.format={0} of {1}
-SampleAppPanelVisual.project_name=Project &Name:
-SampleAppPanelVisual.default_prj_name=SampleCRUDApp
-SampleAppPanelVisual.folder_exists=Project Folder already exists and is not empty.
-SampleAppPanelVisual.folder_creation_error=Project Folder cannot be created.
-SampleAppPanelVisual.invalid_path=Project Folder is not a valid path.
-SampleAppPanelVisual.invalid_folder_name=Project Name is not a valid folder name.
-SampleAppPanelVisual.select_project_location=Select Project Location
-SampleAppPanelVisual.project_folder=Project &Folder:
-SampleAppPanelVisual.browse=Br&owse...
-SampleAppPanelVisual.project_location=Project &Location:
-SampleAppWizardExtraVisual.lDerby.text=Java &DB Location:
-SampleAppWizardExtraVisual.tfDerby.text=
-SampleAppWizardExtraVisual.bDerby.text=Br&owse...
-SampleAppWizardExtraVisual.lDerbyHint.text=Specify the folder where Java DB is installed.
-SampleAppWizardExtraVisual.lLibarary.text=&Persistence Library:
-SampleAppWizardExtraVisual.invalid_derby_location=Java DB location doesn't contains lib/derbyclient.jar library.
-SampleAppWizardExtraVisual.invalid_persistence_libraries=No Persistence Libraries found.
-SampleAppPanelVisual.select_derby_location=Select Java DB Location
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppDescription.html
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppDescription.html b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppDescription.html
deleted file mode 100755
index 5cdb72d..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppDescription.html
+++ /dev/null
@@ -1,50 +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):
--->
-
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
-</head>
- <body>
- Illustrates how to use the NetBeans Platform to create your own
- application. See the <a href="http://platform.netbeans.org/tutorials/nbm-crud.html">NetBeans Platform CRUD Application Tutorial</a> for details.
- </body>
-</html>
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.form
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.form b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.form
deleted file mode 100755
index 6864578..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.form
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.3" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <AuxValues>
- <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="false"/>
- <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 min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="projectNameLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="projectLocationLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="createdFolderLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="projectNameTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- <Component id="projectLocationTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- <Component id="createdFolderTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="browseButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="projectNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="projectNameTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="projectLocationLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="projectLocationTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="browseButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="createdFolderLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="createdFolderTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace pref="213" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="projectNameLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="projectNameTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppPanelVisual.project_name" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- </Component>
- <Component class="javax.swing.JTextField" name="projectNameTextField">
- </Component>
- <Component class="javax.swing.JLabel" name="projectLocationLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="projectLocationTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppPanelVisual.project_location" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- </Component>
- <Component class="javax.swing.JTextField" name="projectLocationTextField">
- </Component>
- <Component class="javax.swing.JButton" name="browseButton">
- <Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppPanelVisual.browse" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="browseButtonActionPerformed"/>
- </Events>
- </Component>
- <Component class="javax.swing.JLabel" name="createdFolderLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="createdFolderTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppPanelVisual.project_folder" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="createdFolderTextField">
- <Properties>
- <Property name="editable" type="boolean" value="false"/>
- </Properties>
- </Component>
- </SubComponents>
-</Form>
[13/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
[NETBEANS-64] Remove NetBeans Platform Samples
Project: http://git-wip-us.apache.org/repos/asf/incubator-netbeans/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-netbeans/commit/b7aa832e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-netbeans/tree/b7aa832e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-netbeans/diff/b7aa832e
Branch: refs/heads/master
Commit: b7aa832e37d6b2bc3fdff4c05cb3f0ee16edda78
Parents: 227738f
Author: geertjan <ge...@oracle.com>
Authored: Wed Sep 20 14:54:57 2017 -0400
Committer: geertjan <ge...@oracle.com>
Committed: Wed Sep 20 14:54:57 2017 -0400
----------------------------------------------------------------------
apisupport.crudsample/build.xml | 61 --
.../CustomerDBAccess/build.xml | 113 ---
.../CustomerDBAccess/manifest.mf | 3 -
.../CustomerDBAccess/nbproject/build-impl.xml | 887 -------------------
.../nbproject/genfiles.properties | 8 -
.../nbproject/project.properties | 106 ---
.../CustomerDBAccess/nbproject/project.xml | 54 --
.../src/META-INF/eclipselink.xml | 54 --
.../CustomerDBAccess/src/META-INF/toplink.xml | 54 --
.../CustomerDBAccess/src/demo/Customer.java | 240 -----
.../CustomerDBAccess/src/demo/DiscountCode.java | 136 ---
.../CustomerDBAccessLibrary/build.xml | 63 --
.../CustomerDBAccessLibrary/manifest.mf | 5 -
.../nbproject/build-impl.xml | 45 -
.../nbproject/genfiles.properties | 8 -
.../nbproject/project.properties | 40 -
.../nbproject/project.xml | 97 --
.../nbproject/suite.properties | 38 -
.../modules/customerdb/Bundle.properties | 38 -
.../modules/customerdb/JavaDBSupport.java | 147 ---
.../CustomerEditor/build.xml | 47 -
.../CustomerEditor/manifest.mf | 6 -
.../CustomerEditor/nbproject/build-impl.xml | 45 -
.../nbproject/genfiles.properties | 8 -
.../nbproject/platform.properties | 54 --
.../CustomerEditor/nbproject/project.properties | 39 -
.../CustomerEditor/nbproject/project.xml | 133 ---
.../CustomerEditor/nbproject/suite.properties | 38 -
.../modules/customereditor/Bundle.properties | 44 -
.../customereditor/EditorTopComponent.form | 72 --
.../customereditor/EditorTopComponent.java | 367 --------
.../EditorTopComponentSettings.xml | 47 -
.../EditorTopComponentWstcref.xml | 46 -
.../modules/customereditor/NewAction.java | 59 --
.../netbeans/modules/customereditor/layer.xml | 103 ---
.../modules/customereditor/record-new.png | Bin 566 -> 0 bytes
.../modules/customereditor/record-new24.png | Bin 838 -> 0 bytes
.../CustomerViewer/build.xml | 47 -
.../CustomerViewer/manifest.mf | 6 -
.../CustomerViewer/nbproject/build-impl.xml | 45 -
.../nbproject/genfiles.properties | 8 -
.../nbproject/platform.properties | 54 --
.../CustomerViewer/nbproject/project.properties | 39 -
.../CustomerViewer/nbproject/project.xml | 143 ---
.../CustomerViewer/nbproject/suite.properties | 38 -
.../modules/customerviewer/Bundle.properties | 41 -
.../customerviewer/CustomerChildFactory.java | 127 ---
.../customerviewer/CustomerRootNode.java | 79 --
.../customerviewer/CustomerTopComponent.form | 32 -
.../customerviewer/CustomerTopComponent.java | 223 -----
.../CustomerTopComponentSettings.xml | 47 -
.../CustomerTopComponentWstcref.xml | 46 -
.../netbeans/modules/customerviewer/layer.xml | 82 --
.../modules/customerviewer/windowmanager.wswmgr | 26 -
.../org/netbeans/core/startup/Bundle.properties | 45 -
.../org/netbeans/core/startup/frame48.gif | Bin 362 -> 0 bytes
.../org/netbeans/core/startup/splash.gif | Bin 40684 -> 0 bytes
.../core/windows/view/ui/Bundle.properties | 39 -
.../crud-sample-application/build.xml | 47 -
.../derbyclient-library/build.xml | 57 --
.../derbyclient-library/manifest.mf | 5 -
.../nbproject/build-impl.xml | 45 -
.../nbproject/genfiles.properties | 8 -
.../nbproject/project.properties | 41 -
.../derbyclient-library/nbproject/project.xml | 57 --
.../nbproject/suite.properties | 38 -
.../derbyclientlibrary/Bundle.properties | 38 -
.../nbproject/build-impl.xml | 50 --
.../nbproject/genfiles.properties | 11 -
.../nbproject/platform.properties | 52 --
.../nbproject/platform.xml | 73 --
.../nbproject/project.properties | 50 --
.../nbproject/project.xml | 48 -
apisupport.crudsample/manifest.mf | 6 -
.../nbproject/project.properties | 43 -
apisupport.crudsample/nbproject/project.xml | 134 ---
.../apisupport/crudsample/Bundle.properties | 68 --
.../crudsample/SampleAppDescription.html | 50 --
.../crudsample/SampleAppPanelVisual.form | 118 ---
.../crudsample/SampleAppPanelVisual.java | 307 -------
.../crudsample/SampleAppWizardExtraPanel.java | 144 ---
.../crudsample/SampleAppWizardExtraVisual.form | 117 ---
.../crudsample/SampleAppWizardExtraVisual.java | 304 -------
.../crudsample/SampleAppWizardIterator.java | 477 ----------
.../crudsample/SampleAppWizardPanel.java | 143 ---
.../modules/apisupport/crudsample/layer.xml | 65 --
.../apisupport/crudsample/sampleCRUD.png | Bin 362 -> 0 bytes
apisupport.feedreader/build.xml | 88 --
apisupport.feedreader/external/binaries-list | 3 -
.../external/jdom-1.0-license.txt | 56 --
.../external/rome-0.6-license.txt | 208 -----
.../external/rome-fetcher-0.6-license.txt | 208 -----
.../feedreader-suite/FeedReader/build.xml | 47 -
.../feedreader-suite/FeedReader/manifest.mf | 6 -
.../FeedReader/nbproject/build-impl.xml | 45 -
.../FeedReader/nbproject/genfiles.properties | 8 -
.../FeedReader/nbproject/project.properties | 39 -
.../FeedReader/nbproject/project.xml | 165 ----
.../FeedReader/nbproject/suite.properties | 38 -
.../feedreader/BrowserTopComponent.java | 120 ---
.../org/netbeans/feedreader/Bundle.properties | 42 -
.../src/org/netbeans/feedreader/Feed.java | 90 --
.../netbeans/feedreader/FeedTopComponent.java | 89 --
.../feedreader/actions/AddFolderAction.java | 71 --
.../feedreader/actions/AddRssAction.java | 118 ---
.../feedreader/actions/Bundle.properties | 37 -
.../src/org/netbeans/feedreader/layer.xml | 53 --
.../netbeans/feedreader/nodes/Bundle.properties | 29 -
.../feedreader/nodes/EntryBeanNode.java | 81 --
.../feedreader/nodes/EntryOpenCookie.java | 52 --
.../netbeans/feedreader/nodes/FeedChildren.java | 63 --
.../netbeans/feedreader/nodes/OneFeedNode.java | 78 --
.../feedreader/nodes/RssFolderChildren.java | 86 --
.../org/netbeans/feedreader/nodes/RssNode.java | 74 --
.../src/org/netbeans/feedreader/rss16.gif | Bin 337 -> 0 bytes
.../org/netbeans/core/startup/Bundle.properties | 39 -
.../org/netbeans/core/startup/frame48.gif | Bin 378 -> 0 bytes
.../org/netbeans/core/startup/splash.gif | Bin 77832 -> 0 bytes
.../netbeans/core/windows/resources/layer.xml | 59 --
.../core/windows/view/ui/Bundle.properties | 31 -
.../org/netbeans/core/ui/Bundle.properties | 30 -
.../feedreader-suite/build.xml | 47 -
.../feedreader-suite/jdom/build.xml | 47 -
.../feedreader-suite/jdom/manifest.mf | 5 -
.../jdom/nbproject/build-impl.xml | 45 -
.../jdom/nbproject/genfiles.properties | 8 -
.../jdom/nbproject/project.properties | 40 -
.../feedreader-suite/jdom/nbproject/project.xml | 63 --
.../jdom/nbproject/suite.properties | 38 -
.../jdom/src/org/jdom/Bundle.properties | 33 -
.../feedreader-suite/nbproject/build-impl.xml | 50 --
.../nbproject/genfiles.properties | 11 -
.../nbproject/platform.properties | 87 --
.../feedreader-suite/nbproject/platform.xml | 73 --
.../nbproject/project.properties | 50 --
.../feedreader-suite/nbproject/project.xml | 48 -
.../feedreader-suite/rome-fetcher/build.xml | 47 -
.../feedreader-suite/rome-fetcher/manifest.mf | 5 -
.../rome-fetcher/nbproject/build-impl.xml | 45 -
.../rome-fetcher/nbproject/genfiles.properties | 8 -
.../rome-fetcher/nbproject/project.properties | 40 -
.../rome-fetcher/nbproject/project.xml | 68 --
.../rome-fetcher/nbproject/suite.properties | 38 -
.../sun/syndication/fetcher/Bundle.properties | 33 -
.../feedreader-suite/rome/build.xml | 47 -
.../feedreader-suite/rome/manifest.mf | 5 -
.../rome/nbproject/build-impl.xml | 45 -
.../rome/nbproject/genfiles.properties | 8 -
.../rome/nbproject/project.properties | 40 -
.../feedreader-suite/rome/nbproject/project.xml | 75 --
.../rome/nbproject/suite.properties | 38 -
.../src/com/sun/syndication/Bundle.properties | 33 -
apisupport.feedreader/l10n.list | 6 -
apisupport.feedreader/manifest.mf | 6 -
.../nbproject/project.properties | 49 -
apisupport.feedreader/nbproject/project.xml | 193 ----
.../apisupport/feedreader/Bundle.properties | 60 --
.../feedreader/FeedReaderDescription.html | 47 -
.../feedreader/FeedReaderPanelVisual.java | 304 -------
.../feedreader/FeedReaderWizardIterator.java | 189 ----
.../feedreader/FeedReaderWizardPanel.java | 130 ---
.../modules/apisupport/feedreader/layer.xml | 65 --
.../modules/apisupport/feedreader/rss16.gif | Bin 337 -> 0 bytes
.../apisupport/project/BuildFeedreaderTest.java | 190 ----
apisupport.kit/nbproject/project.xml | 25 -
apisupport.osgidemo/build.xml | 62 --
apisupport.osgidemo/manifest.mf | 7 -
.../nbproject/project.properties | 43 -
apisupport.osgidemo/nbproject/project.xml | 175 ----
.../org/netbeans/core/startup/Bundle.properties | 43 -
.../org/netbeans/core/startup/splash.gif | Bin 80178 -> 0 bytes
.../core/windows/view/ui/Bundle.properties | 39 -
apisupport.osgidemo/osgidemo/build.xml | 55 --
.../osgidemo/nbproject/build-impl.xml | 49 -
.../osgidemo/nbproject/genfiles.properties | 11 -
.../osgidemo/nbproject/platform.properties | 68 --
.../osgidemo/nbproject/platform.xml | 73 --
.../osgidemo/nbproject/project.properties | 51 --
.../osgidemo/nbproject/project.xml | 48 -
.../osgidemo/showbundles/build.xml | 47 -
.../osgidemo/showbundles/manifest.mf | 10 -
.../showbundles/nbproject/build-impl.xml | 45 -
.../showbundles/nbproject/genfiles.properties | 8 -
.../showbundles/nbproject/project.properties | 39 -
.../osgidemo/showbundles/nbproject/project.xml | 139 ---
.../showbundles/nbproject/suite.properties | 38 -
.../demo/osgi/showbundles/Bundle.properties | 43 -
.../demo/osgi/showbundles/Installer.java | 123 ---
.../showbundles/ShowBundlesTopComponent.form | 58 --
.../showbundles/ShowBundlesTopComponent.java | 192 ----
.../ShowBundlesTopComponentSettings.xml | 47 -
.../ShowBundlesTopComponentWstcref.xml | 46 -
.../netbeans/demo/osgi/showbundles/bundle.png | Bin 976 -> 0 bytes
.../netbeans/demo/osgi/showbundles/layer.xml | 71 --
.../netbeans/demo/osgi/showbundles/module.png | Bin 554 -> 0 bytes
.../demo/osgi/showbundles/InstallerTest.java | 88 --
.../apisupport/osgidemo/Bundle.properties | 67 --
.../osgidemo/SampleAppDescription.html | 52 --
.../osgidemo/SampleAppPanelVisual.form | 142 ---
.../osgidemo/SampleAppPanelVisual.java | 309 -------
.../osgidemo/SampleAppWizardIterator.java | 272 ------
.../osgidemo/SampleAppWizardPanel.java | 138 ---
.../osgidemo/SampleFelixDescription.html | 49 -
.../modules/apisupport/osgidemo/bundle.png | Bin 976 -> 0 bytes
.../modules/apisupport/osgidemo/equinox.png | Bin 884 -> 0 bytes
.../modules/apisupport/osgidemo/layer.xml | 73 --
.../BuildEquinoxSampleApplicationTest.java | 66 --
.../BuildFelixSampleApplicationTest.java | 65 --
.../osgidemo/BuildSampleApplicationBase.java | 225 -----
.../PaintApp-suite/ColorChooser/build.xml | 47 -
.../PaintApp-suite/ColorChooser/manifest.mf | 5 -
.../ColorChooser/nbproject/build-impl.xml | 45 -
.../ColorChooser/nbproject/genfiles.properties | 8 -
.../ColorChooser/nbproject/project.properties | 40 -
.../ColorChooser/nbproject/project.xml | 57 --
.../ColorChooser/nbproject/suite.properties | 38 -
.../modules/ext/ColorChooser-license.txt | 386 --------
.../swing/colorchooser/Bundle.properties | 29 -
.../PaintApp-suite/Paint/build.xml | 47 -
.../PaintApp-suite/Paint/manifest.mf | 6 -
.../Paint/nbproject/build-impl.xml | 45 -
.../Paint/nbproject/genfiles.properties | 8 -
.../Paint/nbproject/project.properties | 39 -
.../PaintApp-suite/Paint/nbproject/project.xml | 149 ----
.../Paint/nbproject/suite.properties | 38 -
.../src/org/netbeans/paint/Bundle.properties | 38 -
.../src/org/netbeans/paint/PaintCanvas.java | 160 ----
.../org/netbeans/paint/PaintTopComponent.java | 257 ------
.../Paint/src/org/netbeans/paint/layer.xml | 119 ---
.../Paint/src/org/netbeans/paint/new_icon.png | Bin 628 -> 0 bytes
.../Paint/src/org/netbeans/paint/new_icon24.png | Bin 793 -> 0 bytes
.../org/netbeans/core/startup/Bundle.properties | 45 -
.../org/netbeans/core/startup/splash.gif | Bin 9350 -> 0 bytes
.../core/windows/actions/Bundle.properties | 60 --
.../core/windows/view/ui/Bundle.properties | 30 -
.../org/netbeans/core/ui/Bundle.properties | 29 -
apisupport.paintapp/PaintApp-suite/build.xml | 47 -
.../PaintApp-suite/nbproject/build-impl.xml | 50 --
.../nbproject/genfiles.properties | 11 -
.../nbproject/platform.properties | 101 ---
.../PaintApp-suite/nbproject/platform.xml | 73 --
.../PaintApp-suite/nbproject/project.properties | 46 -
.../PaintApp-suite/nbproject/project.xml | 48 -
apisupport.paintapp/build.xml | 61 --
apisupport.paintapp/l10n.list | 6 -
apisupport.paintapp/manifest.mf | 6 -
.../nbproject/project.properties | 46 -
apisupport.paintapp/nbproject/project.xml | 193 ----
.../apisupport/paintapp/Bundle.properties | 59 --
.../paintapp/PaintAppDescription.html | 50 --
.../paintapp/PaintAppPanelVisual.form | 118 ---
.../paintapp/PaintAppPanelVisual.java | 302 -------
.../paintapp/PaintAppWizardIterator.java | 209 -----
.../paintapp/PaintAppWizardPanel.java | 132 ---
.../modules/apisupport/paintapp/layer.xml | 65 --
.../modules/apisupport/paintapp/paint.png | Bin 881 -> 0 bytes
.../project/BuildPaintapplicationTest.java | 196 ----
nbbuild/cluster.properties | 4 -
nbbuild/hudson/core-main | 4 -
259 files changed, 18433 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/build.xml b/apisupport.crudsample/build.xml
deleted file mode 100755
index fab97b9..0000000
--- a/apisupport.crudsample/build.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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-2006 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.
--->
-<project basedir="." default="netbeans" name="apisupport.crudsample">
- <import file="../nbbuild/templates/projectized.xml"/>
-
- <target name="jar" depends="zip-project,projectized-common.jar"/>
-
- <target name="zip-project" depends="init">
- <property name="examples" location="${build.classes.dir}/org/netbeans/modules/apisupport/crudsample/"/>
- <mkdir dir="${examples}"/>
- <zip basedir="crud-sample-application" destfile="${examples}/SampleCRUDAppProject.zip">
- <exclude name="**/build/"/>
- <exclude name="**/dist/"/>
- <exclude name="**/nbproject/private/"/>
- </zip>
- </target>
-
-</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/build.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/build.xml
deleted file mode 100755
index 87ca431..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/build.xml
+++ /dev/null
@@ -1,113 +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 commented blocks below for -->
-<!-- some examples of how to customize the build. -->
-<!-- (If you delete it and reopen the project it will be recreated.) -->
-<!-- By default, only the Clean and Build commands use this build script. -->
-<!-- Commands such as Run, Debug, and Test only use this build script if -->
-<!-- the Compile on Save feature is turned off for the project. -->
-<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
-<!-- in the project's Project Properties dialog box.-->
-<project name="CustomerDBAccess" default="default" basedir=".">
- <description>Builds, tests, and runs the project CustomerDBAccess.</description>
- <import file="nbproject/build-impl.xml"/>
- <!--
-
- There exist several targets which are by default empty and which can be
- used for execution of your tasks. These targets are usually executed
- before and after some main targets. They are:
-
- -pre-init: called before initialization of project properties
- -post-init: called after initialization of project properties
- -pre-compile: called before javac compilation
- -post-compile: called after javac compilation
- -pre-compile-single: called before javac compilation of single file
- -post-compile-single: called after javac compilation of single file
- -pre-compile-test: called before javac compilation of JUnit tests
- -post-compile-test: called after javac compilation of JUnit tests
- -pre-compile-test-single: called before javac compilation of single JUnit test
- -post-compile-test-single: called after javac compilation of single JUunit test
- -pre-jar: called before JAR building
- -post-jar: called after JAR building
- -post-clean: called after cleaning build products
-
- (Targets beginning with '-' are not intended to be called on their own.)
-
- Example of inserting an obfuscator after compilation could look like this:
-
- <target name="-post-compile">
- <obfuscate>
- <fileset dir="${build.classes.dir}"/>
- </obfuscate>
- </target>
-
- For list of available properties check the imported
- nbproject/build-impl.xml file.
-
-
- Another way to customize the build is by overriding existing main targets.
- The targets of interest are:
-
- -init-macrodef-javac: defines macro for javac compilation
- -init-macrodef-junit: defines macro for junit execution
- -init-macrodef-debug: defines macro for class debugging
- -init-macrodef-java: defines macro for class execution
- -do-jar-with-manifest: JAR building (if you are using a manifest)
- -do-jar-without-manifest: JAR building (if you are not using a manifest)
- run: execution of project
- -javadoc-build: Javadoc generation
- test-report: JUnit report generation
-
- An example of overriding the target for project execution could look like this:
-
- <target name="run" depends="CustomerDBAccess-impl.jar">
- <exec dir="bin" executable="launcher.exe">
- <arg file="${dist.jar}"/>
- </exec>
- </target>
-
- Notice that the overridden target depends on the jar target and not only on
- the compile target as the regular run target does. Again, for a list of available
- properties which you can use, check the target you are overriding in the
- nbproject/build-impl.xml file.
-
- -->
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/manifest.mf b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/manifest.mf
deleted file mode 100755
index 328e8e5..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/manifest.mf
+++ /dev/null
@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-X-COMMENT: Main-Class will be added automatically by build
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/build-impl.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/build-impl.xml
deleted file mode 100755
index 87614f4..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/build-impl.xml
+++ /dev/null
@@ -1,887 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT ***
-*** EDIT ../build.xml INSTEAD ***
-
-For the purpose of easier reading the script
-is divided into following sections:
-
- - initialization
- - compilation
- - jar
- - execution
- - debugging
- - javadoc
- - junit compilation
- - junit execution
- - junit debugging
- - applet
- - cleanup
-
- -->
-<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="CustomerDBAccess-impl">
- <fail message="Please build using Ant 1.7.1 or higher.">
- <condition>
- <not>
- <antversion atleast="1.7.1"/>
- </not>
- </condition>
- </fail>
- <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
- <!--
- ======================
- INITIALIZATION SECTION
- ======================
- -->
- <target name="-pre-init">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="-pre-init" name="-init-private">
- <property file="nbproject/private/config.properties"/>
- <property file="nbproject/private/configs/${config}.properties"/>
- <property file="nbproject/private/private.properties"/>
- </target>
- <target depends="-pre-init,-init-private" name="-init-user">
- <property file="${user.properties.file}"/>
- <!-- The two properties below are usually overridden -->
- <!-- by the active platform. Just a fallback. -->
- <property name="default.javac.source" value="1.4"/>
- <property name="default.javac.target" value="1.4"/>
- </target>
- <target depends="-pre-init,-init-private,-init-user" name="-init-project">
- <property file="nbproject/configs/${config}.properties"/>
- <property file="nbproject/project.properties"/>
- </target>
- <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
- <available file="${manifest.file}" property="manifest.available"/>
- <available file="${application.splash}" property="splashscreen.available"/>
- <condition property="main.class.available">
- <and>
- <isset property="main.class"/>
- <not>
- <equals arg1="${main.class}" arg2="" trim="true"/>
- </not>
- </and>
- </condition>
- <condition property="manifest.available+main.class">
- <and>
- <isset property="manifest.available"/>
- <isset property="main.class.available"/>
- </and>
- </condition>
- <condition property="do.mkdist">
- <and>
- <isset property="libs.CopyLibs.classpath"/>
- <not>
- <istrue value="${mkdist.disabled}"/>
- </not>
- </and>
- </condition>
- <condition property="manifest.available+main.class+mkdist.available">
- <and>
- <istrue value="${manifest.available+main.class}"/>
- <isset property="do.mkdist"/>
- </and>
- </condition>
- <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
- <and>
- <istrue value="${manifest.available+main.class+mkdist.available}"/>
- <istrue value="${splashscreen.available}"/>
- </and>
- </condition>
- <condition property="manifest.available+mkdist.available">
- <and>
- <istrue value="${manifest.available}"/>
- <isset property="do.mkdist"/>
- </and>
- </condition>
- <condition property="manifest.available-mkdist.available">
- <or>
- <istrue value="${manifest.available}"/>
- <isset property="do.mkdist"/>
- </or>
- </condition>
- <condition property="manifest.available+main.class-mkdist.available">
- <or>
- <istrue value="${manifest.available+main.class}"/>
- <isset property="do.mkdist"/>
- </or>
- </condition>
- <condition property="have.tests">
- <or>
- <available file="${test.src.dir}"/>
- </or>
- </condition>
- <condition property="have.sources">
- <or>
- <available file="${src.dir}"/>
- </or>
- </condition>
- <condition property="netbeans.home+have.tests">
- <and>
- <isset property="netbeans.home"/>
- <isset property="have.tests"/>
- </and>
- </condition>
- <condition property="no.javadoc.preview">
- <and>
- <isset property="javadoc.preview"/>
- <isfalse value="${javadoc.preview}"/>
- </and>
- </condition>
- <property name="run.jvmargs" value=""/>
- <property name="javac.compilerargs" value=""/>
- <property name="work.dir" value="${basedir}"/>
- <condition property="no.deps">
- <and>
- <istrue value="${no.dependencies}"/>
- </and>
- </condition>
- <property name="javac.debug" value="true"/>
- <property name="javadoc.preview" value="true"/>
- <property name="application.args" value=""/>
- <property name="source.encoding" value="${file.encoding}"/>
- <property name="runtime.encoding" value="${source.encoding}"/>
- <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
- <and>
- <isset property="javadoc.encoding"/>
- <not>
- <equals arg1="${javadoc.encoding}" arg2=""/>
- </not>
- </and>
- </condition>
- <property name="javadoc.encoding.used" value="${source.encoding}"/>
- <property name="includes" value="**"/>
- <property name="excludes" value=""/>
- <property name="do.depend" value="false"/>
- <condition property="do.depend.true">
- <istrue value="${do.depend}"/>
- </condition>
- <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
- <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
- <length length="0" string="${endorsed.classpath}" when="greater"/>
- </condition>
- <property name="javac.fork" value="false"/>
- <property name="jar.index" value="false"/>
- </target>
- <target name="-post-init">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
- <fail unless="src.dir">Must set src.dir</fail>
- <fail unless="test.src.dir">Must set test.src.dir</fail>
- <fail unless="build.dir">Must set build.dir</fail>
- <fail unless="dist.dir">Must set dist.dir</fail>
- <fail unless="build.classes.dir">Must set build.classes.dir</fail>
- <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
- <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
- <fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
- <fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
- <fail unless="dist.jar">Must set dist.jar</fail>
- </target>
- <target name="-init-macrodef-property">
- <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
- <attribute name="name"/>
- <attribute name="value"/>
- <sequential>
- <property name="@{name}" value="${@{value}}"/>
- </sequential>
- </macrodef>
- </target>
- <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
- <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
- <attribute default="${src.dir}" name="srcdir"/>
- <attribute default="${build.classes.dir}" name="destdir"/>
- <attribute default="${javac.classpath}" name="classpath"/>
- <attribute default="${javac.processorpath}" name="processorpath"/>
- <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
- <attribute default="${includes}" name="includes"/>
- <attribute default="${excludes}" name="excludes"/>
- <attribute default="${javac.debug}" name="debug"/>
- <attribute default="${empty.dir}" name="sourcepath"/>
- <attribute default="${empty.dir}" name="gensrcdir"/>
- <element name="customize" optional="true"/>
- <sequential>
- <property location="${build.dir}/empty" name="empty.dir"/>
- <mkdir dir="${empty.dir}"/>
- <mkdir dir="@{apgeneratedsrcdir}"/>
- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
- <src>
- <dirset dir="@{gensrcdir}" erroronmissingdir="false">
- <include name="*"/>
- </dirset>
- </src>
- <classpath>
- <path path="@{classpath}"/>
- </classpath>
- <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
- <compilerarg line="${javac.compilerargs}"/>
- <compilerarg value="-processorpath"/>
- <compilerarg path="@{processorpath}"/>
- <compilerarg line="${ap.processors.internal}"/>
- <compilerarg value="-s"/>
- <compilerarg path="@{apgeneratedsrcdir}"/>
- <compilerarg line="${ap.proc.none.internal}"/>
- <customize/>
- </javac>
- </sequential>
- </macrodef>
- </target>
- <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
- <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
- <attribute default="${src.dir}" name="srcdir"/>
- <attribute default="${build.classes.dir}" name="destdir"/>
- <attribute default="${javac.classpath}" name="classpath"/>
- <attribute default="${javac.processorpath}" name="processorpath"/>
- <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
- <attribute default="${includes}" name="includes"/>
- <attribute default="${excludes}" name="excludes"/>
- <attribute default="${javac.debug}" name="debug"/>
- <attribute default="${empty.dir}" name="sourcepath"/>
- <attribute default="${empty.dir}" name="gensrcdir"/>
- <element name="customize" optional="true"/>
- <sequential>
- <property location="${build.dir}/empty" name="empty.dir"/>
- <mkdir dir="${empty.dir}"/>
- <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
- <src>
- <dirset dir="@{gensrcdir}" erroronmissingdir="false">
- <include name="*"/>
- </dirset>
- </src>
- <classpath>
- <path path="@{classpath}"/>
- </classpath>
- <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
- <compilerarg line="${javac.compilerargs}"/>
- <customize/>
- </javac>
- </sequential>
- </macrodef>
- </target>
- <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
- <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
- <attribute default="${src.dir}" name="srcdir"/>
- <attribute default="${build.classes.dir}" name="destdir"/>
- <attribute default="${javac.classpath}" name="classpath"/>
- <sequential>
- <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
- <classpath>
- <path path="@{classpath}"/>
- </classpath>
- </depend>
- </sequential>
- </macrodef>
- <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
- <attribute default="${build.classes.dir}" name="destdir"/>
- <sequential>
- <fail unless="javac.includes">Must set javac.includes</fail>
- <pathconvert pathsep="," property="javac.includes.binary">
- <path>
- <filelist dir="@{destdir}" files="${javac.includes}"/>
- </path>
- <globmapper from="*.java" to="*.class"/>
- </pathconvert>
- <delete>
- <files includes="${javac.includes.binary}"/>
- </delete>
- </sequential>
- </macrodef>
- </target>
- <target name="-init-macrodef-junit">
- <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
- <attribute default="${includes}" name="includes"/>
- <attribute default="${excludes}" name="excludes"/>
- <attribute default="**" name="testincludes"/>
- <sequential>
- <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}">
- <batchtest todir="${build.test.results.dir}">
- <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
- <filename name="@{testincludes}"/>
- </fileset>
- </batchtest>
- <classpath>
- <path path="${run.test.classpath}"/>
- </classpath>
- <syspropertyset>
- <propertyref prefix="test-sys-prop."/>
- <mapper from="test-sys-prop.*" to="*" type="glob"/>
- </syspropertyset>
- <formatter type="brief" usefile="false"/>
- <formatter type="xml"/>
- <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
- <jvmarg line="${run.jvmargs}"/>
- </junit>
- </sequential>
- </macrodef>
- </target>
- <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
- <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
- <attribute default="${main.class}" name="name"/>
- <attribute default="${debug.classpath}" name="classpath"/>
- <attribute default="" name="stopclassname"/>
- <sequential>
- <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
- <classpath>
- <path path="@{classpath}"/>
- </classpath>
- </nbjpdastart>
- </sequential>
- </macrodef>
- <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
- <attribute default="${build.classes.dir}" name="dir"/>
- <sequential>
- <nbjpdareload>
- <fileset dir="@{dir}" includes="${fix.classes}">
- <include name="${fix.includes}*.class"/>
- </fileset>
- </nbjpdareload>
- </sequential>
- </macrodef>
- </target>
- <target name="-init-debug-args">
- <property name="version-output" value="java version "${ant.java.version}"/>
- <condition property="have-jdk-older-than-1.4">
- <or>
- <contains string="${version-output}" substring="java version "1.0"/>
- <contains string="${version-output}" substring="java version "1.1"/>
- <contains string="${version-output}" substring="java version "1.2"/>
- <contains string="${version-output}" substring="java version "1.3"/>
- </or>
- </condition>
- <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
- <istrue value="${have-jdk-older-than-1.4}"/>
- </condition>
- <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
- <os family="windows"/>
- </condition>
- <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
- <isset property="debug.transport"/>
- </condition>
- </target>
- <target depends="-init-debug-args" name="-init-macrodef-debug">
- <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
- <attribute default="${main.class}" name="classname"/>
- <attribute default="${debug.classpath}" name="classpath"/>
- <element name="customize" optional="true"/>
- <sequential>
- <java classname="@{classname}" dir="${work.dir}" fork="true">
- <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
- <jvmarg line="${debug-args-line}"/>
- <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
- <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
- <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
- <jvmarg line="${run.jvmargs}"/>
- <classpath>
- <path path="@{classpath}"/>
- </classpath>
- <syspropertyset>
- <propertyref prefix="run-sys-prop."/>
- <mapper from="run-sys-prop.*" to="*" type="glob"/>
- </syspropertyset>
- <customize/>
- </java>
- </sequential>
- </macrodef>
- </target>
- <target name="-init-macrodef-java">
- <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
- <attribute default="${main.class}" name="classname"/>
- <attribute default="${run.classpath}" name="classpath"/>
- <element name="customize" optional="true"/>
- <sequential>
- <java classname="@{classname}" dir="${work.dir}" fork="true">
- <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
- <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
- <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
- <jvmarg line="${run.jvmargs}"/>
- <classpath>
- <path path="@{classpath}"/>
- </classpath>
- <syspropertyset>
- <propertyref prefix="run-sys-prop."/>
- <mapper from="run-sys-prop.*" to="*" type="glob"/>
- </syspropertyset>
- <customize/>
- </java>
- </sequential>
- </macrodef>
- </target>
- <target name="-init-macrodef-copylibs">
- <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
- <element name="customize" optional="true"/>
- <sequential>
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
- <pathconvert property="run.classpath.without.build.classes.dir">
- <path path="${run.classpath}"/>
- <map from="${build.classes.dir.resolved}" to=""/>
- </pathconvert>
- <pathconvert pathsep=" " property="jar.classpath">
- <path path="${run.classpath.without.build.classes.dir}"/>
- <chainedmapper>
- <flattenmapper/>
- <globmapper from="*" to="lib/*"/>
- </chainedmapper>
- </pathconvert>
- <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
- <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
- <fileset dir="${build.classes.dir}"/>
- <manifest>
- <attribute name="Class-Path" value="${jar.classpath}"/>
- <customize/>
- </manifest>
- </copylibs>
- </sequential>
- </macrodef>
- </target>
- <target name="-init-presetdef-jar">
- <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
- <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
- <j2seproject1:fileset dir="${build.classes.dir}"/>
- </jar>
- </presetdef>
- </target>
- <target name="-init-ap-cmdline-properties">
- <property name="annotation.processing.enabled" value="true"/>
- <property name="annotation.processing.processors.list" value=""/>
- <property name="annotation.processing.run.all.processors" value="true"/>
- <property name="javac.processorpath" value="${javac.classpath}"/>
- <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
- <condition property="ap.supported.internal" value="true">
- <not>
- <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
- </not>
- </condition>
- </target>
- <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
- <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
- <isfalse value="${annotation.processing.run.all.processors}"/>
- </condition>
- <condition else="" property="ap.proc.none.internal" value="-proc:none">
- <isfalse value="${annotation.processing.enabled}"/>
- </condition>
- </target>
- <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
- <property name="ap.cmd.line.internal" value=""/>
- </target>
- <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
- <!--
- ===================
- COMPILATION SECTION
- ===================
- -->
- <target name="-deps-jar-init" unless="built-jar.properties">
- <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
- <delete file="${built-jar.properties}" quiet="true"/>
- </target>
- <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
- <echo level="warn" message="Cycle detected: CustomerDBAccess was already built"/>
- </target>
- <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
- <mkdir dir="${build.dir}"/>
- <touch file="${built-jar.properties}" verbose="false"/>
- <property file="${built-jar.properties}" prefix="already.built.jar."/>
- <antcall target="-warn-already-built-jar"/>
- <propertyfile file="${built-jar.properties}">
- <entry key="${basedir}" value=""/>
- </propertyfile>
- </target>
- <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
- <target depends="init" name="-check-automatic-build">
- <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
- </target>
- <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
- <antcall target="clean"/>
- </target>
- <target depends="init,deps-jar" name="-pre-pre-compile">
- <mkdir dir="${build.classes.dir}"/>
- </target>
- <target name="-pre-compile">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target if="do.depend.true" name="-compile-depend">
- <pathconvert property="build.generated.subdirs">
- <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
- <include name="*"/>
- </dirset>
- </pathconvert>
- <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
- </target>
- <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
- <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
- <copy todir="${build.classes.dir}">
- <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
- </copy>
- </target>
- <target name="-post-compile">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
- <target name="-pre-compile-single">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
- <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
- <j2seproject3:force-recompile/>
- <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/>
- </target>
- <target name="-post-compile-single">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
- <!--
- ====================
- JAR BUILDING SECTION
- ====================
- -->
- <target depends="init" name="-pre-pre-jar">
- <dirname file="${dist.jar}" property="dist.jar.dir"/>
- <mkdir dir="${dist.jar.dir}"/>
- </target>
- <target name="-pre-jar">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available">
- <j2seproject1:jar/>
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available">
- <j2seproject1:jar manifest="${manifest.file}"/>
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
- <j2seproject1:jar manifest="${manifest.file}">
- <j2seproject1:manifest>
- <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
- </j2seproject1:manifest>
- </j2seproject1:jar>
- <echo>To run this application from the command line without Ant, try:</echo>
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
- <property location="${dist.jar}" name="dist.jar.resolved"/>
- <pathconvert property="run.classpath.with.dist.jar">
- <path path="${run.classpath}"/>
- <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
- </pathconvert>
- <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
- <basename file="${application.splash}" property="splashscreen.basename"/>
- <mkdir dir="${build.classes.dir}/META-INF"/>
- <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
- <j2seproject3:copylibs>
- <customize>
- <attribute name="Main-Class" value="${main.class}"/>
- <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
- </customize>
- </j2seproject3:copylibs>
- <echo>To run this application from the command line without Ant, try:</echo>
- <property location="${dist.jar}" name="dist.jar.resolved"/>
- <echo>java -jar "${dist.jar.resolved}"</echo>
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
- <j2seproject3:copylibs>
- <customize>
- <attribute name="Main-Class" value="${main.class}"/>
- </customize>
- </j2seproject3:copylibs>
- <echo>To run this application from the command line without Ant, try:</echo>
- <property location="${dist.jar}" name="dist.jar.resolved"/>
- <echo>java -jar "${dist.jar.resolved}"</echo>
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="manifest.available+mkdist.available" name="-do-jar-with-libraries-without-mainclass" unless="main.class.available">
- <j2seproject3:copylibs/>
- </target>
- <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.mkdist" name="-do-jar-with-libraries-without-manifest" unless="manifest.available">
- <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
- <pathconvert property="run.classpath.without.build.classes.dir">
- <path path="${run.classpath}"/>
- <map from="${build.classes.dir.resolved}" to=""/>
- </pathconvert>
- <pathconvert pathsep=" " property="jar.classpath">
- <path path="${run.classpath.without.build.classes.dir}"/>
- <chainedmapper>
- <flattenmapper/>
- <globmapper from="*" to="lib/*"/>
- </chainedmapper>
- </pathconvert>
- <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
- <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
- <fileset dir="${build.classes.dir}"/>
- <manifest>
- <attribute name="Class-Path" value="${jar.classpath}"/>
- </manifest>
- </copylibs>
- </target>
- <target name="-post-jar">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-do-jar-with-libraries-without-mainclass,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
- <!--
- =================
- EXECUTION SECTION
- =================
- -->
- <target depends="init,compile" description="Run a main class." name="run">
- <j2seproject1:java>
- <customize>
- <arg line="${application.args}"/>
- </customize>
- </j2seproject1:java>
- </target>
- <target name="-do-not-recompile">
- <property name="javac.includes.binary" value=""/>
- </target>
- <target depends="init,compile-single" name="run-single">
- <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
- <j2seproject1:java classname="${run.class}"/>
- </target>
- <target depends="init,compile-test-single" name="run-test-with-main">
- <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
- <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
- </target>
- <!--
- =================
- DEBUGGING SECTION
- =================
- -->
- <target depends="init" if="netbeans.home" name="-debug-start-debugger">
- <j2seproject1:nbjpdastart name="${debug.class}"/>
- </target>
- <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
- <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
- </target>
- <target depends="init,compile" name="-debug-start-debuggee">
- <j2seproject3:debug>
- <customize>
- <arg line="${application.args}"/>
- </customize>
- </j2seproject3:debug>
- </target>
- <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
- <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
- <j2seproject1:nbjpdastart stopclassname="${main.class}"/>
- </target>
- <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
- <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
- <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
- <j2seproject3:debug classname="${debug.class}"/>
- </target>
- <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
- <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
- <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
- <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
- </target>
- <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
- <target depends="init" name="-pre-debug-fix">
- <fail unless="fix.includes">Must set fix.includes</fail>
- <property name="javac.includes" value="${fix.includes}.java"/>
- </target>
- <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
- <j2seproject1:nbjpdareload/>
- </target>
- <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
- <!--
- ===============
- JAVADOC SECTION
- ===============
- -->
- <target depends="init" if="have.sources" name="-javadoc-build">
- <mkdir dir="${dist.javadoc.dir}"/>
- <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
- <classpath>
- <path path="${javac.classpath}"/>
- </classpath>
- <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
- <filename name="**/*.java"/>
- </fileset>
- <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
- <include name="**/*.java"/>
- </fileset>
- </javadoc>
- </target>
- <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
- <nbbrowse file="${dist.javadoc.dir}/index.html"/>
- </target>
- <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
- <!--
- =========================
- JUNIT COMPILATION SECTION
- =========================
- -->
- <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
- <mkdir dir="${build.test.classes.dir}"/>
- </target>
- <target name="-pre-compile-test">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target if="do.depend.true" name="-compile-test-depend">
- <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
- </target>
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
- <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
- <copy todir="${build.test.classes.dir}">
- <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
- </copy>
- </target>
- <target name="-post-compile-test">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
- <target name="-pre-compile-test-single">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
- <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
- <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
- <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
- <copy todir="${build.test.classes.dir}">
- <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
- </copy>
- </target>
- <target name="-post-compile-test-single">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
- <!--
- =======================
- JUNIT EXECUTION SECTION
- =======================
- -->
- <target depends="init" if="have.tests" name="-pre-test-run">
- <mkdir dir="${build.test.results.dir}"/>
- </target>
- <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
- <j2seproject3:junit testincludes="**/*Test.java"/>
- </target>
- <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
- <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
- </target>
- <target depends="init" if="have.tests" name="test-report"/>
- <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
- <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
- <target depends="init" if="have.tests" name="-pre-test-run-single">
- <mkdir dir="${build.test.results.dir}"/>
- </target>
- <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
- <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
- <j2seproject3:junit excludes="" includes="${test.includes}"/>
- </target>
- <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
- <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
- </target>
- <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
- <!--
- =======================
- JUNIT DEBUGGING SECTION
- =======================
- -->
- <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test">
- <fail unless="test.class">Must select one file in the IDE or set test.class</fail>
- <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/>
- <delete file="${test.report.file}"/>
- <mkdir dir="${build.test.results.dir}"/>
- <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}">
- <customize>
- <syspropertyset>
- <propertyref prefix="test-sys-prop."/>
- <mapper from="test-sys-prop.*" to="*" type="glob"/>
- </syspropertyset>
- <arg value="${test.class}"/>
- <arg value="showoutput=true"/>
- <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/>
- <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/>
- </customize>
- </j2seproject3:debug>
- </target>
- <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
- <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
- </target>
- <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
- <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
- <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
- </target>
- <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
- <!--
- =========================
- APPLET EXECUTION SECTION
- =========================
- -->
- <target depends="init,compile-single" name="run-applet">
- <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
- <j2seproject1:java classname="sun.applet.AppletViewer">
- <customize>
- <arg value="${applet.url}"/>
- </customize>
- </j2seproject1:java>
- </target>
- <!--
- =========================
- APPLET DEBUGGING SECTION
- =========================
- -->
- <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
- <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
- <j2seproject3:debug classname="sun.applet.AppletViewer">
- <customize>
- <arg value="${applet.url}"/>
- </customize>
- </j2seproject3:debug>
- </target>
- <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
- <!--
- ===============
- CLEANUP SECTION
- ===============
- -->
- <target name="-deps-clean-init" unless="built-clean.properties">
- <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
- <delete file="${built-clean.properties}" quiet="true"/>
- </target>
- <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
- <echo level="warn" message="Cycle detected: CustomerDBAccess was already built"/>
- </target>
- <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
- <mkdir dir="${build.dir}"/>
- <touch file="${built-clean.properties}" verbose="false"/>
- <property file="${built-clean.properties}" prefix="already.built.clean."/>
- <antcall target="-warn-already-built-clean"/>
- <propertyfile file="${built-clean.properties}">
- <entry key="${basedir}" value=""/>
- </propertyfile>
- </target>
- <target depends="init" name="-do-clean">
- <delete dir="${build.dir}"/>
- <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
- </target>
- <target name="-post-clean">
- <!-- Empty placeholder for easier customization. -->
- <!-- You can override this target in the ../build.xml file. -->
- </target>
- <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
- <target name="-check-call-dep">
- <property file="${call.built.properties}" prefix="already.built."/>
- <condition property="should.call.dep">
- <not>
- <isset property="already.built.${call.subproject}"/>
- </not>
- </condition>
- </target>
- <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
- <ant antfile="${call.script}" inheritall="false" target="${call.target}">
- <propertyset>
- <propertyref prefix="transfer."/>
- <mapper from="transfer.*" to="*" type="glob"/>
- </propertyset>
- </ant>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/genfiles.properties b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/genfiles.properties
deleted file mode 100755
index e6432b9..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=13915d56
-build.xml.script.CRC32=c978cfed
-build.xml.stylesheet.CRC32=958a1d3e@1.34.0.45
-# 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=13915d56
-nbproject/build-impl.xml.script.CRC32=621ea18a
-nbproject/build-impl.xml.stylesheet.CRC32=3e545083@1.35.0.45
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.properties b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.properties
deleted file mode 100755
index db45b5f..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.properties
+++ /dev/null
@@ -1,106 +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):
-annotation.processing.enabled=true
-annotation.processing.enabled.in.editor=false
-annotation.processing.run.all.processors=true
-application.title=CustomerDBAccess
-application.vendor=Jiri Rechtacek
-build.classes.dir=${build.dir}/classes
-build.classes.excludes=**/*.java,**/*.form
-# This directory is removed when the project is cleaned:
-build.dir=build
-build.generated.dir=${build.dir}/generated
-build.generated.sources.dir=${build.dir}/generated-sources
-# Only compile against the classpath explicitly listed here:
-build.sysclasspath=ignore
-build.test.classes.dir=${build.dir}/test/classes
-build.test.results.dir=${build.dir}/test/results
-# Uncomment to specify the preferred debugger connection transport:
-#debug.transport=dt_socket
-debug.classpath=\
- ${run.classpath}
-debug.test.classpath=\
- ${run.test.classpath}
-# This directory is removed when the project is cleaned:
-dist.dir=dist
-dist.jar=${dist.dir}/CustomerDBAccess.jar
-dist.javadoc.dir=${dist.dir}/javadoc
-endorsed.classpath=
-excludes=
-includes=**
-jar.compress=false
-javac.classpath=${libs.eclipselink.classpath}
-# Space-separated list of extra javac options
-javac.compilerargs=
-javac.deprecation=false
-javac.processorpath=\
- ${javac.classpath}
-javac.source=1.6
-javac.target=1.6
-javac.test.classpath=\
- ${javac.classpath}:\
- ${build.classes.dir}
-javadoc.additionalparam=
-javadoc.author=false
-javadoc.encoding=${source.encoding}
-javadoc.noindex=false
-javadoc.nonavbar=false
-javadoc.notree=false
-javadoc.private=false
-javadoc.splitindex=true
-javadoc.use=true
-javadoc.version=false
-javadoc.windowtitle=
-jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api"
-main.class=
-manifest.file=manifest.mf
-meta.inf.dir=${src.dir}/META-INF
-platform.active=default_platform
-run.classpath=\
- ${javac.classpath}:\
- ${build.classes.dir}
-# Space-separated list of JVM arguments used when running the project
-# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
-# or test-sys-prop.name=value to set system properties for unit tests):
-run.jvmargs=
-run.test.classpath=\
- ${javac.test.classpath}:\
- ${build.test.classes.dir}
-source.encoding=UTF-8
-src.dir=src
-test.src.dir=test
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.xml
deleted file mode 100755
index cabe637..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/nbproject/project.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):
--->
-<project xmlns="http://www.netbeans.org/ns/project/1">
- <type>org.netbeans.modules.java.j2seproject</type>
- <configuration>
- <data xmlns="http://www.netbeans.org/ns/j2se-project/3">
- <name>CustomerDBAccess</name>
- <source-roots>
- <root id="src.dir"/>
- </source-roots>
- <test-roots>
- <root id="test.src.dir"/>
- </test-roots>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/eclipselink.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/eclipselink.xml b/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/eclipselink.xml
deleted file mode 100644
index bf620d1..0000000
--- a/apisupport.crudsample/crud-sample-application/CustomerDBAccess/src/META-INF/eclipselink.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>org.eclipse.persistence.jpa.PersistenceProvider</provider>
- <class>demo.Customer</class>
- <class>demo.DiscountCode</class>
- <class>demo.MicroMarket</class>
- <properties>
- <property name="javax.persistence.jdbc.url" value="jdbc:derby://localhost:1527/sample"/>
- <property name="javax.persistence.jdbc.password" value="app"/>
- <property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
- <property name="javax.persistence.jdbc.user" value="app"/>
- </properties>
- </persistence-unit>
-</persistence>
[12/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
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
-build.xml.stylesheet.CRC32=79c3b980@1.34
-# 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/build-impl.xml.stylesheet.CRC32=238281d1@2.56
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
-build.xml.stylesheet.CRC32=a56c6a5b@2.56
-# 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/build-impl.xml.stylesheet.CRC32=238281d1@2.56
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>
[09/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.java b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.java
deleted file mode 100755
index 22dd43b..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppPanelVisual.java
+++ /dev/null
@@ -1,307 +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.apisupport.crudsample;
-
-import java.io.File;
-import javax.swing.JFileChooser;
-import javax.swing.JPanel;
-import javax.swing.event.DocumentEvent;
-import javax.swing.event.DocumentListener;
-import javax.swing.text.Document;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.filesystems.FileUtil;
-
-public class SampleAppPanelVisual extends JPanel implements DocumentListener {
-
- private static final String WIZARD_PANEL_ERROR_MESSAGE = WizardDescriptor.PROP_ERROR_MESSAGE; // NOI18N
-
- public static final String PROP_PROJECT_NAME = "projectName"; // NOI18N
-
- private SampleAppWizardPanel panel;
-
- /** Creates new form PanelProjectLocationVisual */
- @SuppressWarnings("LeakingThisInConstructor")
- public SampleAppPanelVisual(SampleAppWizardPanel panel) {
- initComponents();
- this.panel = panel;
- // Register listener on the textFields to make the automatic updates
- projectNameTextField.getDocument().addDocumentListener(this);
- projectLocationTextField.getDocument().addDocumentListener(this);
- }
-
-
- public String getProjectName() {
- return this.projectNameTextField.getText();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- projectNameLabel = new javax.swing.JLabel();
- projectNameTextField = new javax.swing.JTextField();
- projectLocationLabel = new javax.swing.JLabel();
- projectLocationTextField = new javax.swing.JTextField();
- browseButton = new javax.swing.JButton();
- createdFolderLabel = new javax.swing.JLabel();
- createdFolderTextField = new javax.swing.JTextField();
-
- projectNameLabel.setLabelFor(projectNameTextField);
- org.openide.awt.Mnemonics.setLocalizedText(projectNameLabel, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_name")); // NOI18N
-
- projectLocationLabel.setLabelFor(projectLocationTextField);
- org.openide.awt.Mnemonics.setLocalizedText(projectLocationLabel, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_location")); // NOI18N
-
- org.openide.awt.Mnemonics.setLocalizedText(browseButton, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.browse")); // NOI18N
- browseButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- browseButtonActionPerformed(evt);
- }
- });
-
- createdFolderLabel.setLabelFor(createdFolderTextField);
- org.openide.awt.Mnemonics.setLocalizedText(createdFolderLabel, org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.project_folder")); // NOI18N
-
- createdFolderTextField.setEditable(false);
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(projectNameLabel)
- .addComponent(projectLocationLabel)
- .addComponent(createdFolderLabel))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(projectNameTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
- .addComponent(projectLocationTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
- .addComponent(createdFolderTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(browseButton)
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(projectNameLabel)
- .addComponent(projectNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(projectLocationLabel)
- .addComponent(projectLocationTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(browseButton))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(createdFolderLabel)
- .addComponent(createdFolderTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(213, Short.MAX_VALUE))
- );
- }// </editor-fold>//GEN-END:initComponents
-
- private void browseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseButtonActionPerformed
- JFileChooser chooser = new JFileChooser();
- chooser.setCurrentDirectory(null);
- chooser.setDialogTitle(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.select_project_location"));
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- String path = this.projectLocationTextField.getText();
- if (path.length() > 0) {
- File f = new File(path);
- if (f.exists()) {
- chooser.setSelectedFile(f);
- }
- }
- if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(this)) {
- File projectDir = chooser.getSelectedFile();
- projectLocationTextField.setText(FileUtil.normalizeFile(projectDir).getAbsolutePath());
- }
- panel.fireChangeEvent();
-
- }//GEN-LAST:event_browseButtonActionPerformed
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton browseButton;
- private javax.swing.JLabel createdFolderLabel;
- private javax.swing.JTextField createdFolderTextField;
- private javax.swing.JLabel projectLocationLabel;
- private javax.swing.JTextField projectLocationTextField;
- private javax.swing.JLabel projectNameLabel;
- private javax.swing.JTextField projectNameTextField;
- // End of variables declaration//GEN-END:variables
-
- @Override
- public void addNotify() {
- super.addNotify();
- //same problem as in 31086, initial focus on Cancel button
- projectNameTextField.requestFocus();
- }
-
- boolean valid(WizardDescriptor wizardDescriptor) {
-
- if (projectNameTextField.getText().length() == 0) {
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.invalid_folder_name"));
- return false; // Display name not specified
- }
- File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
- if (!f.isDirectory()) {
- String message = org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.invalid_path");
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, message);
- return false;
- }
- final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
-
- File projLoc = destFolder;
- while (projLoc != null && !projLoc.exists()) {
- projLoc = projLoc.getParentFile();
- }
- if (projLoc == null || !projLoc.canWrite()) {
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.folder_creation_error"));
- return false;
- }
-
- if (FileUtil.toFileObject(projLoc) == null) {
- String message = org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.invalid_path");
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, message);
- return false;
- }
-
- File[] kids = destFolder.listFiles();
- if (destFolder.exists() && kids != null && kids.length > 0) {
- // Folder exists and is not empty
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.folder_exists"));
- return false;
- }
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, "");
- return true;
- }
-
- void store(WizardDescriptor d) {
- String name = projectNameTextField.getText().trim();
- String folder = createdFolderTextField.getText().trim();
-
- d.putProperty("projdir", new File(folder)); // NOI18N
- d.putProperty("name", name); // NOI18N
- }
-
- void read(WizardDescriptor settings) {
- File projectLocation = (File) settings.getProperty("projdir"); // NOI18N
- if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
- projectLocation = ProjectChooser.getProjectsFolder();
- } else {
- projectLocation = projectLocation.getParentFile();
- }
- this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
-
- String projectName = (String) settings.getProperty("name"); // NOI18N
- if(projectName == null) {
- projectName = org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.default_prj_name");
- }
- this.projectNameTextField.setText(projectName);
- this.projectNameTextField.selectAll();
- }
-
- void validate(WizardDescriptor d) throws WizardValidationException {
- // nothing to validate
- }
-
- // Implementation of DocumentListener --------------------------------------
-
- @Override
- public void changedUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- @Override
- public void insertUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- @Override
- public void removeUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- /** Handles changes in the Project name and project directory, */
- private void updateTexts(DocumentEvent e) {
-
- Document doc = e.getDocument();
-
- if (doc == projectNameTextField.getDocument() || doc == projectLocationTextField.getDocument()) {
- // Change in the project name
-
- String projectName = projectNameTextField.getText();
- String projectFolder = projectLocationTextField.getText();
-
- //if (projectFolder.trim().length() == 0 || projectFolder.equals(oldName)) {
- createdFolderTextField.setText(projectFolder + File.separatorChar + projectName);
- //}
-
- }
- panel.fireChangeEvent(); // Notify that the panel changed
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraPanel.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraPanel.java b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraPanel.java
deleted file mode 100644
index 677cc89..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraPanel.java
+++ /dev/null
@@ -1,144 +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.apisupport.crudsample;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.project.libraries.Library;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-/**
- * Panel just asking for basic info.
- */
-public class SampleAppWizardExtraPanel implements WizardDescriptor.Panel,
- WizardDescriptor.ValidatingPanel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor wizardDescriptor;
- private SampleAppWizardExtraVisual component;
-
- /** Creates a new instance of templateWizardPanel */
- public SampleAppWizardExtraPanel() {
- }
-
- @Override
- public Component getComponent() {
- if (component == null) {
- component = new SampleAppWizardExtraVisual(this);
- component.setName(NbBundle.getMessage(SampleAppWizardExtraPanel.class, "LBL_CreatePersistenceStep"));
- }
- return component;
- }
-
- @Override
- public HelpCtx getHelp() {
- return new HelpCtx(SampleAppWizardExtraPanel.class);
- }
-
- @Override
- public boolean isValid() {
- getComponent();
- return component.valid(wizardDescriptor);
- }
-
- private final Set<ChangeListener> listeners = new HashSet<ChangeListener>(1);
- @Override
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- @Override
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet<ChangeListener>(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener) it.next()).stateChanged(ev);
- }
- }
-
- @Override
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor) settings;
- }
-
- @Override
- public void storeSettings(Object settings) {
- WizardDescriptor d = (WizardDescriptor) settings;
- }
-
- @Override
- public boolean isFinishPanel() {
- return true;
- }
-
- @Override
- public void validate() throws WizardValidationException {
- getComponent();
- component.validate(wizardDescriptor);
- }
-
- public String getDerbyLocation() {
- return component.getDerbyLocation();
- }
-
- public Library getSelectedLibrary() {
- return component.getSelectedLibrary();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.form
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.form b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.form
deleted file mode 100644
index 4b31905..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.form
+++ /dev/null
@@ -1,117 +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="0"/>
- </AuxValues>
-
- <Layout>
- <DimensionLayout dim="0">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="lDerby" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="lLibarary" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="lDerbyHint" alignment="0" min="-2" max="-2" attributes="0"/>
- <Group type="102" alignment="0" attributes="0">
- <Component id="tfDerby" pref="202" max="32767" attributes="0"/>
- <EmptySpace min="-2" pref="9" max="-2" attributes="1"/>
- <Component id="bDerby" min="-2" max="-2" attributes="0"/>
- </Group>
- <Group type="102" alignment="0" attributes="0">
- <Component id="cbLibrary" pref="202" max="32767" attributes="0"/>
- <EmptySpace min="-2" pref="79" max="-2" attributes="1"/>
- </Group>
- </Group>
- <EmptySpace min="-2" 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="lDerby" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="tfDerby" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="bDerby" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Component id="lDerbyHint" min="-2" max="-2" attributes="0"/>
- <EmptySpace type="unrelated" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="lLibarary" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="cbLibrary" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="lDerby">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="tfDerby"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppWizardExtraVisual.lDerby.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="tfDerby">
- <Properties>
- <Property name="columns" type="int" value="280"/>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppWizardExtraVisual.tfDerby.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JButton" name="bDerby">
- <Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppWizardExtraVisual.bDerby.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="bDerbyActionPerformed"/>
- </Events>
- </Component>
- <Component class="javax.swing.JLabel" name="lDerbyHint">
- <Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppWizardExtraVisual.lDerbyHint.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JLabel" name="lLibarary">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="cbLibrary"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/crudsample/Bundle.properties" key="SampleAppWizardExtraVisual.lLibarary.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JComboBox" name="cbLibrary">
- <Properties>
- <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
- <StringArray count="0"/>
- </Property>
- </Properties>
- </Component>
- </SubComponents>
-</Form>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.java b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.java
deleted file mode 100644
index 9d29563..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardExtraVisual.java
+++ /dev/null
@@ -1,304 +0,0 @@
-/*
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
- *
- * Copyright 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]"
- *
- * 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):
- *
- * Portions Copyrighted 2010 Sun Microsystems, Inc.
- */
-
-package org.netbeans.modules.apisupport.crudsample;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.JFileChooser;
-import javax.swing.JPanel;
-import javax.swing.event.DocumentEvent;
-import javax.swing.event.DocumentListener;
-import org.netbeans.api.project.libraries.Library;
-import org.netbeans.api.project.libraries.LibraryManager;
-import org.netbeans.modules.derby.spi.support.DerbySupport;
-import org.openide.WizardDescriptor;
-import org.openide.filesystems.FileUtil;
-
-/**
- *
- * @author jirka
- */
-public class SampleAppWizardExtraVisual extends JPanel implements DocumentListener {
- public static final String[] SUPPORTED_PU_LIBRARIES = new String[] {"eclipselink"};
- public static final String JAVADB_HOME = "javadb.home";
-
- private final SampleAppWizardExtraPanel panel;
- private Map<String, Library> dn2lib = new HashMap<String, Library>();
-
- /** Creates new form SampleAppWizardExtraPanelVisual */
- @SuppressWarnings("LeakingThisInConstructor")
- public SampleAppWizardExtraVisual(SampleAppWizardExtraPanel panel) {
- initComponents();
- this.panel = panel;
- this.cbLibrary.setModel(new DefaultComboBoxModel(getLibrariesDN()));
- this.tfDerby.setText(getDerbyInstallation());
- this.tfDerby.getDocument().addDocumentListener(this);
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- lDerby = new javax.swing.JLabel();
- tfDerby = new javax.swing.JTextField();
- bDerby = new javax.swing.JButton();
- lDerbyHint = new javax.swing.JLabel();
- lLibarary = new javax.swing.JLabel();
- cbLibrary = new javax.swing.JComboBox();
-
- lDerby.setLabelFor(tfDerby);
- org.openide.awt.Mnemonics.setLocalizedText(lDerby, org.openide.util.NbBundle.getMessage(SampleAppWizardExtraVisual.class, "SampleAppWizardExtraVisual.lDerby.text")); // NOI18N
-
- tfDerby.setColumns(280);
- tfDerby.setText(org.openide.util.NbBundle.getMessage(SampleAppWizardExtraVisual.class, "SampleAppWizardExtraVisual.tfDerby.text")); // NOI18N
-
- org.openide.awt.Mnemonics.setLocalizedText(bDerby, org.openide.util.NbBundle.getMessage(SampleAppWizardExtraVisual.class, "SampleAppWizardExtraVisual.bDerby.text")); // NOI18N
- bDerby.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- bDerbyActionPerformed(evt);
- }
- });
-
- org.openide.awt.Mnemonics.setLocalizedText(lDerbyHint, org.openide.util.NbBundle.getMessage(SampleAppWizardExtraVisual.class, "SampleAppWizardExtraVisual.lDerbyHint.text")); // NOI18N
-
- lLibarary.setLabelFor(cbLibrary);
- org.openide.awt.Mnemonics.setLocalizedText(lLibarary, org.openide.util.NbBundle.getMessage(SampleAppWizardExtraVisual.class, "SampleAppWizardExtraVisual.lLibarary.text")); // NOI18N
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(lDerby)
- .addComponent(lLibarary))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(lDerbyHint)
- .addGroup(layout.createSequentialGroup()
- .addComponent(tfDerby, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
- .addGap(9, 9, 9)
- .addComponent(bDerby))
- .addGroup(layout.createSequentialGroup()
- .addComponent(cbLibrary, 0, 202, Short.MAX_VALUE)
- .addGap(79, 79, 79)))
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(lDerby)
- .addComponent(tfDerby, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(bDerby))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(lDerbyHint)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(lLibarary)
- .addComponent(cbLibrary, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- }// </editor-fold>//GEN-END:initComponents
-
- private void bDerbyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bDerbyActionPerformed
- JFileChooser chooser = new JFileChooser();
- chooser.setCurrentDirectory(null);
- chooser.setDialogTitle(org.openide.util.NbBundle.getMessage(SampleAppPanelVisual.class, "SampleAppPanelVisual.select_derby_location"));
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- String path = this.tfDerby.getText();
- if (path.length() > 0) {
- File f = new File(path);
- if (f.exists()) {
- chooser.setSelectedFile(f);
- }
- }
- if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(this)) {
- File projectDir = chooser.getSelectedFile();
- tfDerby.setText(FileUtil.normalizeFile(projectDir).getAbsolutePath());
- }
- panel.fireChangeEvent();
- }//GEN-LAST:event_bDerbyActionPerformed
-
- @Override
- public void insertUpdate(DocumentEvent e) {
- panel.fireChangeEvent();
- }
-
- @Override
- public void removeUpdate(DocumentEvent e) {
- panel.fireChangeEvent();
- }
-
- @Override
- public void changedUpdate(DocumentEvent e) {
- panel.fireChangeEvent();
- }
-
- boolean valid(WizardDescriptor wizardDescriptor) {
- if (! validateDerby(tfDerby.getText())) {
- if (wizardDescriptor != null) {
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppWizardExtraVisual.class, "SampleAppWizardExtraVisual.invalid_derby_location"));
- }
- return false;
- } else if (! validatePersistenceLibrary()) {
- if (wizardDescriptor != null) {
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(SampleAppWizardExtraVisual.class, "SampleAppWizardExtraVisual.invalid_persistence_libraries"));
- }
- return false;
- } else {
- if (wizardDescriptor != null) {
- wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, null);
- }
- return true;
- }
- }
-
- void validate(WizardDescriptor wizardDescriptor) {}
-
- private String[] getLibrariesDN() {
- List<String> res = new ArrayList<String>();
- for (String name : SUPPORTED_PU_LIBRARIES) {
- Library l = LibraryManager.getDefault().getLibrary(name);
- Logger.getLogger(SampleAppWizardExtraVisual.class.getName()).log(Level.FINE, "Name {0} has library {1}", new Object[]{name, l});
- if (l != null) {
- res.add(l.getDisplayName());
- dn2lib.put(l.getDisplayName(), l);
- }
- }
- return res.toArray(new String[0]);
- }
-
- private Library getLibrary(String dn) {
- assert dn2lib.get(dn) != null : "Library " + dn + " found in " + dn2lib;
- return dn2lib.get(dn);
- }
-
- private static String getDerbyInstallation() {
- File f = null;
- String javaDBHome = System.getProperty(JAVADB_HOME);
- Logger.getLogger(SampleAppWizardExtraVisual.class.getName()).finest("System.getProperty(\"javadb.home\") returns " + javaDBHome);
- if (javaDBHome == null) {
- String javaDBLoc = DerbySupport.getLocation();
- Logger.getLogger(SampleAppWizardExtraVisual.class.getName()).finer("DerbySupport.getLocation() returns " + javaDBLoc);
- if (javaDBLoc != null && javaDBLoc.length() > 0) {
- f = new File(javaDBLoc);
- }
- if (f == null || ! f.exists()) {
- // fallback to JDK6
- String javaHome = System.getProperty("java.home");
- // path to JavaDB in JDK6
- f = new File(javaHome + File.separator + ".." + File.separator + "db" + File.separator);
- Logger.getLogger(SampleAppWizardExtraVisual.class.getName()).finer("JavaDB in JDK6 is " + f);
- }
- } else {
- f = new File(javaDBHome);
- }
- String path;
- try {
- path = f != null && f.exists() ? f.getCanonicalPath() : null;
- } catch (IOException ex) {
- path = f != null && f.exists() ? f.getAbsolutePath() : null;
- }
- Logger.getLogger(SampleAppWizardExtraVisual.class.getName()).fine("Java DB installation is " + path);
- return path;
- }
-
- private static boolean validateDerby(String path) {
- boolean res = path != null;
- if (res) {
- File dir = new File(path);
- res = dir.exists() && dir.isDirectory();
- if (res) {
- // finding derbyclient
- File f = new File(dir, "lib" + File.separator + "derbyclient.jar");
- res = f.exists() && f.isFile();
- }
- }
- return res;
- }
-
- private boolean validatePersistenceLibrary() {
- return getLibrariesDN().length > 0;
- // XXX: maybe also check if drivers really exist
- }
-
- String getDerbyLocation() {
- assert validateDerby(tfDerby.getText()) : "DB Location " + tfDerby.getText() + " must contain lib/derbyclient.jar";
- return tfDerby.getText();
- }
-
- Library getSelectedLibrary() {
- assert getLibrary((String) cbLibrary.getSelectedItem()) != null : "Some Persistence Library must found.";
- Logger.getLogger(SampleAppWizardExtraVisual.class.getName()).log(Level.FINE,
- "Selected library in {0} is {1}", new Object[]{cbLibrary.getSelectedItem(), getLibrary((String) cbLibrary.getSelectedItem())});
- return getLibrary((String) cbLibrary.getSelectedItem());
- }
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- javax.swing.JButton bDerby;
- javax.swing.JComboBox cbLibrary;
- javax.swing.JLabel lDerby;
- javax.swing.JLabel lDerbyHint;
- javax.swing.JLabel lLibarary;
- javax.swing.JTextField tfDerby;
- // End of variables declaration//GEN-END:variables
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardIterator.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardIterator.java b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardIterator.java
deleted file mode 100755
index 43b9c16..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardIterator.java
+++ /dev/null
@@ -1,477 +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.apisupport.crudsample;
-
-import java.awt.Component;
-import java.io.File;
-import java.io.FileFilter;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Map;
-import java.util.NoSuchElementException;
-import java.util.Properties;
-import java.util.Set;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.api.project.libraries.Library;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.netbeans.spi.project.ui.templates.support.Templates;
-import org.openide.WizardDescriptor;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.filesystems.URLMapper;
-import org.openide.util.NbBundle;
-import org.openide.xml.XMLUtil;
-import org.w3c.dom.Document;
-import org.w3c.dom.Element;
-
-public class SampleAppWizardIterator implements WizardDescriptor.InstantiatingIterator {
-
- private static final long serialVersionUID = 1L;
-
- private transient int index;
- private transient WizardDescriptor.Panel[] panels;
- private transient WizardDescriptor wiz;
- private SampleAppWizardExtraPanel configurationPanel;
-
- public SampleAppWizardIterator() {}
-
- public static SampleAppWizardIterator createIterator() {
- return new SampleAppWizardIterator();
- }
-
- private WizardDescriptor.Panel[] createPanels() {
- configurationPanel = new SampleAppWizardExtraPanel();
- return new WizardDescriptor.Panel[] {
- new SampleAppWizardPanel(configurationPanel.isValid()),
- configurationPanel
- };
- }
-
- private String[] createSteps() {
- return new String[] {
- NbBundle.getMessage(SampleAppWizardIterator.class, "LBL_CreateProjectStep"), // NOI18N
- NbBundle.getMessage(SampleAppWizardIterator.class, "LBL_CreatePersistenceStep"), // NOI18N
- };
- }
-
- @Override
- public Set/*<FileObject>*/ instantiate() throws IOException {
- Set<FileObject> resultSet = new LinkedHashSet<FileObject>();
- File dirF = FileUtil.normalizeFile((File) wiz.getProperty("projdir")); // NOI18N
- dirF.mkdirs();
-
- FileObject template = Templates.getTemplate(wiz);
- FileObject dir = FileUtil.toFileObject(dirF);
-
- // 1) unzip
- unZipFile(template.getInputStream(), dir);
- try {
- // 2) copy persistence libraries
- copyPersistenceLibraries(configurationPanel.getSelectedLibrary(), dir);
- } catch (URISyntaxException ex) {
- throw new IOException(ex);
- } catch (IllegalStateException ex) {
- throw new IOException(ex);
- }
-
- // 3) set DB location in Derby module
- configureDerby(configurationPanel.getDerbyLocation(), dir);
-
- // Always open top dir as a project:
- resultSet.add(dir);
- // Look for nested projects to open as well:
- Enumeration e = dir.getFolders(true);
- while (e.hasMoreElements()) {
- FileObject subfolder = (FileObject) e.nextElement();
- if (ProjectManager.getDefault().isProject(subfolder)) {
- resultSet.add(subfolder);
- }
- }
-
- File parent = dirF.getParentFile();
- if (parent != null && parent.exists()) {
- ProjectChooser.setProjectsFolder(parent);
- }
-
- return resultSet;
- }
-
- @Override
- public void initialize(WizardDescriptor wiz) {
- this.wiz = wiz;
- index = 0;
- panels = createPanels();
- // Make sure list of steps is accurate.
- String[] steps = createSteps();
- for (int i = 0; i < panels.length; i++) {
- Component c = panels[i].getComponent();
- if (steps[i] == null) {
- // Default step name to component name of panel.
- // Mainly useful for getting the name of the target
- // chooser to appear in the list of steps.
- steps[i] = c.getName();
- }
- if (c instanceof JComponent) { // assume Swing components
- JComponent jc = (JComponent) c;
- // Step #.
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, new Integer(i)); // NOI18N
- // Step name (actually the whole list for reference).
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps); // NOI18N
- }
- }
- }
-
- @Override
- public void uninitialize(WizardDescriptor wiz) {
- this.wiz.putProperty("projdir",null); // NOI18N
- this.wiz.putProperty("name",null); // NOI18N
- this.wiz = null;
- panels = null;
- }
-
- @Override
- public String name() {
- return NbBundle.getMessage(SampleAppWizardIterator.class, "SampleAppWizardIterator.name.format", // NOI18N
- new Object[] {new Integer(index + 1), new Integer(panels.length)});
- }
-
- @Override
- public boolean hasNext() {
- return index < panels.length - 1;
- }
-
- @Override
- public boolean hasPrevious() {
- return index > 0;
- }
-
- @Override
- public void nextPanel() {
- if (!hasNext()) {
- throw new NoSuchElementException();
- }
- index++;
- }
-
- @Override
- public void previousPanel() {
- if (!hasPrevious()) {
- throw new NoSuchElementException();
- }
- index--;
- }
-
- @Override
- public WizardDescriptor.Panel current() {
- return panels[index];
- }
-
- // If nothing unusual changes in the middle of the wizard, simply:
- @Override
- public final void addChangeListener(ChangeListener l) {}
- @Override
- public final void removeChangeListener(ChangeListener l) {}
-
- private static void unZipFile(InputStream source, FileObject projectRoot) throws IOException {
- try {
- ZipInputStream str = new ZipInputStream(source);
- ZipEntry entry;
- while ((entry = str.getNextEntry()) != null) {
- if (entry.isDirectory()) {
- FileUtil.createFolder(projectRoot, entry.getName());
- } else {
- FileObject fo = FileUtil.createData(projectRoot, entry.getName());
- OutputStream out = fo.getOutputStream();
- try {
- FileUtil.copy(str, out);
- } finally {
- out.close();
- }
- }
- }
- } finally {
- source.close();
- }
- }
-
- private void copyPersistenceLibraries(Library l, FileObject projectRoot) throws URISyntaxException, IllegalStateException, FileNotFoundException, IOException {
- // 1) source libraries
- List<FileObject> libs = new ArrayList<FileObject>();
- for (URL url : l.getContent("classpath")) { //NOI18N
- FileObject fo = URLMapper.findFileObject(url);
- Logger.getLogger(SampleAppWizardIterator.class.getName()).log(Level.FINE, "Libary {0} has jar: {1}", new Object[]{l.getName(), fo});
- FileObject jarFO = null;
- if ("jar".equals(url.getProtocol())) { //NOI18N
- jarFO = FileUtil.getArchiveFile(fo);
- }
- if (jarFO == null) {
- throw new IllegalStateException("No file object on " + url);
- }
- libs.add(jarFO);
- }
-
- // 2) target place
- File targetFile = new File(FileUtil.toFile(projectRoot), "CustomerDBAccessLibrary" + File.separator + "external"); // NOI18N
- targetFile.mkdirs();
- FileObject targetFO = FileUtil.toFileObject(targetFile);
-
- // 3) copying
- for (FileObject fo : libs) {
- File f = FileUtil.toFile(fo);
- Logger.getLogger(SampleAppWizardIterator.class.getName()).log(Level.FINE, "Copy {0} in {1} as {2}", new Object[]{fo, targetFO, f.getName()});
- FileUtil.copyFile(fo, targetFO, fo.getName());
- }
-
- // 4) modify project.xml with native jars names
- File projectXMLFile = new File(FileUtil.toFile(projectRoot), "CustomerDBAccessLibrary" + File.separator + // NOI18N
- "nbproject" + File.separator + "project.xml"); // NOI18N
- FileObject projectXMLFO = FileUtil.toFileObject(projectXMLFile);
-
- Set<String> publicPackages = new HashSet<String> ();
- Collections.addAll(publicPackages, "demo",
- "javax.persistence",
- "javax.persistence.spi",
- "javax.persistence.metamodel",
- "javax.persistence.criteria",
- "org.netbeans.modules.customerdb"); // NOI18N
- Map<String, String> cp2origin = new HashMap<String, String>(libs.size());
- // add wrapping project CustomerDBAccess
- cp2origin.put("ext/CustomerDBAccess.jar", "../CustomerDBAccess/dist/CustomerDBAccess.jar"); // NOI18N
- for (FileObject jar : libs) {
- String cp = "ext/persistence/" + jar.getNameExt(); // NOI18N
- String origin = "external/" + jar.getNameExt(); // NOI18N
- cp2origin.put(cp, origin);
- }
- Map<String, String> dep2version = new HashMap<String, String> ();
- dep2version.put("org.netbeans.modules.derbyclientlibrary", "1.1"); // NOI18N
- dep2version.put("org.openide.execution", "9.0"); // NOI18N
- dep2version.put("org.openide.util", "9.3"); // NOI18N
- generateLibraryModuleTemplate(projectXMLFO, "org.netbeans.modules.customerdb", // NOI18N
- publicPackages,
- cp2origin,
- dep2version);
- Logger.getLogger(SampleAppWizardIterator.class.getName()).log(Level.FINE, "project.xml file written : {0}", new Object[]{projectXMLFO}); // NOI18N
-
- // 5) modify $persistencelibrary.xml to persistence.xml
- File libraryConfFile = new File(FileUtil.toFile(projectRoot), "CustomerDBAccess" + File.separator + // NOI18N
- "src" + File.separator + "META-INF" + File.separator + l.getName() + ".xml"); // NOI18N
- Logger.getLogger(SampleAppWizardIterator.class.getName()).log(Level.FINE, "META-INF/peristence.xml found at {0}", new Object[]{libraryConfFile});
- assert libraryConfFile.exists() : libraryConfFile + " exists."; // NOI18N
- final File persistenceConfFile = new File(libraryConfFile.getParent(), "persistence.xml"); // NOI18N
- libraryConfFile.renameTo(persistenceConfFile);
- // remove other xml containing persistence info
- for (File f : libraryConfFile.getParentFile().listFiles(new FileFilter() {
- @Override
- public boolean accept(File pathname) {
- return pathname.isFile() && pathname.getName().endsWith(".xml") && ! persistenceConfFile.equals(pathname); //
- }
- })) {
- f.delete();
- }
- }
-
- private void configureDerby(String loc, FileObject projectRoot) throws FileNotFoundException, IOException {
- File projectPropertiesFile = new File(FileUtil.toFile(projectRoot), "derbyclient-library" + File.separator + // NOI18N
- "nbproject" + File.separator + "project.properties"); // NOI18N
- FileObject projectPropertiesFO = FileUtil.toFileObject(projectPropertiesFile);
- Properties projectProperties = new Properties();
- InputStream inputStream = null;
- try {
- inputStream = projectPropertiesFO.getInputStream();
- projectProperties.load(inputStream);
- } finally {
- if (inputStream != null) {
- inputStream.close();
- }
- }
- projectProperties.setProperty("derbyclient.jar", loc + "/lib/derbyclient.jar"); // NOI18N
- OutputStream outputStream = null;
- try {
- outputStream = projectPropertiesFO.getOutputStream();
- projectProperties.store(outputStream, null);
- } finally {
- if (outputStream != null) {
- outputStream.close();
- }
- }
- Logger.getLogger(SampleAppWizardIterator.class.getName()).log(Level.FINE, "derbyclient.jar location in project.properties is {0}", new Object[]{loc + "/lib/derbyclient.jar"});
-
- File bundleFile = new File(FileUtil.toFile(projectRoot), "CustomerDBAccessLibrary" + File.separator + // NOI18N
- "src" + File.separator + // NOI18N
- "org" + File.separator + // NOI18N
- "netbeans" + File.separator + // NOI18N
- "modules" + File.separator + // NOI18N
- "customerdb" + File.separator + // NOI18N
- "Bundle.properties"); // NOI18N
- FileObject bundleFO = FileUtil.toFileObject(bundleFile);
- Properties bundleProperties = new Properties();
- inputStream = null;
- try {
- inputStream = bundleFO.getInputStream();
- bundleProperties.load(inputStream);
- } finally {
- if (inputStream != null) {
- inputStream.close();
- }
- }
- bundleProperties.setProperty("javadb.home", loc); // NOI18N
- outputStream = null;
- try {
- outputStream = bundleFO.getOutputStream();
- bundleProperties.store(outputStream, null);
- } finally {
- if (outputStream != null) {
- outputStream.close();
- }
- }
- Logger.getLogger(SampleAppWizardIterator.class.getName()).log(Level.FINE, "JavaDB home is {0}", new Object[]{loc});
- }
-
- /**
- * Create a library wrapper project.xml.
- *
- * @param publicPackages set of <code>String</code>s representing the packages
- * @param extensions <key=runtime path(String), value=binary path (String)>
- *
- * XXX: copy of apisupport.project/src/org/netbeans/modules/apisupport/project/ProjectXMLManager.java
- */
- private static void generateLibraryModuleTemplate(FileObject projectXml, String cnb,
- Set<String> publicPackages, Map<String,String> extensions, Map<String, String> dep2version) throws IOException {
-
- Document prjDoc = XMLUtil.createDocument("project", "http://www.netbeans.org/ns/project/1", null, null); // NOI18N
-
- // generate general project elements
- Element typeEl = prjDoc.createElementNS("http://www.netbeans.org/ns/project/1", "type"); // NOI18N
- typeEl.appendChild(prjDoc.createTextNode("org.netbeans.modules.apisupport.project")); // NOI18N
- prjDoc.getDocumentElement().appendChild(typeEl);
- Element confEl = prjDoc.createElementNS("http://www.netbeans.org/ns/project/1", "configuration"); // NOI18N
- prjDoc.getDocumentElement().appendChild(confEl);
-
- // generate NB Module project type specific elements
- Element dataEl = createModuleElement(confEl.getOwnerDocument(), "data"); // NOI18N
- confEl.appendChild(dataEl);
- Document dataDoc = dataEl.getOwnerDocument();
- dataEl.appendChild(createModuleElement(dataDoc, "code-name-base", cnb)); // NOI18N
- Element moduleTypeEl = createModuleElement(dataDoc, "suite-component"); // NOI18N
- if (moduleTypeEl != null) {
- dataEl.appendChild(moduleTypeEl);
- }
- Element moduleDependeciesElement = createModuleElement(dataDoc, "module-dependencies"); // NOI18N
- if (dep2version != null && ! dep2version.isEmpty()) {
- for (String dep : dep2version.keySet()) {
- createModuleDependencyElement(moduleDependeciesElement, dep, dep2version.get(dep));
- }
- }
- dataEl.appendChild(moduleDependeciesElement);
- Element packages = createModuleElement(dataDoc, "public-packages"); // NOI18N
- dataEl.appendChild(packages);
- for (String pkg : publicPackages) {
- packages.appendChild(createModuleElement(dataDoc, "package", pkg)); // NOI18N
- }
- for (Map.Entry<String,String> entry : extensions.entrySet()) {
- Element cp = createModuleElement(dataDoc, "class-path-extension"); // NOI18N
- dataEl.appendChild(cp);
- cp.appendChild(createModuleElement(dataDoc, "runtime-relative-path", entry.getKey())); // NOI18N
- cp.appendChild(createModuleElement(dataDoc, "binary-origin", entry.getValue())); // NOI18N
- }
-
- // store document to disk
- OutputStream os = projectXml.getOutputStream();
- try {
- XMLUtil.write(prjDoc, os, "UTF-8"); // NOI18N
- } finally {
- os.close();
- }
- }
-
- static void createModuleDependencyElement(
- Element moduleDependencies, String depCNB, String depSV) {
-
- Document doc = moduleDependencies.getOwnerDocument();
- Element modDepEl = createModuleElement(doc, "dependency"); // NOI18N
- moduleDependencies.insertBefore(modDepEl, null);
-
- modDepEl.appendChild(createModuleElement(doc, "code-name-base", depCNB)); // NOI18N
- if (depCNB.startsWith("org.openide")) { // NOI18N
- modDepEl.appendChild(createModuleElement(doc, "build-prerequisite")); // NOI18N
- modDepEl.appendChild(createModuleElement(doc, "compile-dependency")); // NOI18N
- }
-
- Element runDepEl = createModuleElement(doc, "run-dependency"); // NOI18N
- modDepEl.appendChild(runDepEl);
-
- if (depSV != null && ! "".equals(depSV)) { // NOI18N
- runDepEl.appendChild(createModuleElement(
- doc, "specification-version", depSV)); // NOI18N
- }
- }
-
- private static Element createModuleElement(Document doc, String name) {
- return doc.createElementNS("http://www.netbeans.org/ns/nb-module-project/3", name); // NOI18N
- }
-
- private static Element createModuleElement(Document doc, String name, String innerText) {
- Element el = createModuleElement(doc, name);
- el.appendChild(doc.createTextNode(innerText));
- return el;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardPanel.java
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardPanel.java b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardPanel.java
deleted file mode 100755
index 62d5e00..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/SampleAppWizardPanel.java
+++ /dev/null
@@ -1,143 +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.apisupport.crudsample;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-/**
- * Panel just asking for basic info.
- */
-public class SampleAppWizardPanel implements WizardDescriptor.Panel,
- WizardDescriptor.ValidatingPanel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor wizardDescriptor;
- private SampleAppPanelVisual component;
- private final boolean isFinishPanel;
-
- /** Creates a new instance of templateWizardPanel */
- public SampleAppWizardPanel(boolean isFinishPanel) {
- this.isFinishPanel = isFinishPanel;
- }
-
- @Override
- public Component getComponent() {
- if (component == null) {
- component = new SampleAppPanelVisual(this);
- component.setName(NbBundle.getMessage(SampleAppWizardPanel.class, "LBL_CreateProjectStep"));
- }
- return component;
- }
-
- @Override
- public HelpCtx getHelp() {
- return null;
- }
-
- @Override
- public boolean isValid() {
- getComponent();
- return component.valid(wizardDescriptor);
- }
-
- private final Set<ChangeListener> listeners = new HashSet<ChangeListener>(1);
- @Override
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- @Override
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet<ChangeListener>(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener) it.next()).stateChanged(ev);
- }
- }
-
- @Override
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor) settings;
- component.read(wizardDescriptor);
- wizardDescriptor.putProperty("NewProjectWizard_Title", //NOI18N
- NbBundle.getMessage(SampleAppWizardPanel.class,
- "Templates/Project/Samples/ApiSupport/SampleCRUDAppProject.zip")); //NOI18N
- }
-
- @Override
- public void storeSettings(Object settings) {
- WizardDescriptor d = (WizardDescriptor) settings;
- component.store(d);
- d.putProperty("NewProjectWizard_Title", null); //NOI18N
- }
-
- @Override
- public boolean isFinishPanel() {
- return isFinishPanel;
- }
-
- @Override
- public void validate() throws WizardValidationException {
- getComponent();
- component.validate(wizardDescriptor);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/layer.xml b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/layer.xml
deleted file mode 100755
index 0c98f39..0000000
--- a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/layer.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
-<!--
-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-2006 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.
--->
-<filesystem>
- <folder name="Templates">
- <folder name="Project">
- <folder name="Samples">
- <folder name="ApiSupport">
- <file name="SampleCRUDAppProject.zip" url="SampleCRUDAppProject.zip">
- <!--<attr name="position" intvalue="300"/>-->
- <attr name="position" intvalue="3000"/>
- <attr name="SystemFileSystem.icon" urlvalue="nbresloc:/org/netbeans/modules/apisupport/crudsample/sampleCRUD.png"/>
- <attr name="SystemFileSystem.localizingBundle" stringvalue="org.netbeans.modules.apisupport.crudsample.Bundle"/>
- <attr name="instantiatingIterator" methodvalue="org.netbeans.modules.apisupport.crudsample.SampleAppWizardIterator.createIterator"/>
- <attr name="instantiatingWizardURL" urlvalue="nbresloc:/org/netbeans/modules/apisupport/crudsample/SampleAppDescription.html"/>
- <attr name="template" boolvalue="true"/>
- </file>
- </folder>
- </folder>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/sampleCRUD.png
----------------------------------------------------------------------
diff --git a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/sampleCRUD.png b/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/sampleCRUD.png
deleted file mode 100755
index c938743..0000000
Binary files a/apisupport.crudsample/src/org/netbeans/modules/apisupport/crudsample/sampleCRUD.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/build.xml b/apisupport.feedreader/build.xml
deleted file mode 100644
index a0b74b1..0000000
--- a/apisupport.feedreader/build.xml
+++ /dev/null
@@ -1,88 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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-2006 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.
--->
-<project name="apisupport.feedreader" default="netbeans" basedir=".">
- <import file="../nbbuild/templates/projectized.xml"/>
-
- <target name="jar" depends="zip-project,projectized-common.jar"/>
-
- <target name="zip-project" depends="init">
- <mkdir dir="build/substituted-project-metadata"/>
- <copy todir="build/substituted-project-metadata">
- <fileset dir="feedreader-suite">
- <include name="jdom/nbproject/project.xml"/>
- <include name="rome/nbproject/project.xml"/>
- <include name="rome-fetcher/nbproject/project.xml"/>
- </fileset>
- <filterchain>
- <replacestring from="binary-origin>../../external/" to="binary-origin>release/modules/ext/"/>
- </filterchain>
- </copy>
- <property name="examples" location="${build.classes.dir}/org/netbeans/modules/apisupport/feedreader/"/>
- <mkdir dir="${examples}"/>
- <zip basedir="feedreader-suite" destfile="${examples}/FeedReaderProject.zip">
- <exclude name="**/build/"/>
- <exclude name="**/dist/"/>
- <exclude name="**/nbproject/private/"/>
- <exclude name="jdom/nbproject/project.xml"/>
- <exclude name="rome/nbproject/project.xml"/>
- <exclude name="rome-fetcher/nbproject/project.xml"/>
- <fileset dir="build/substituted-project-metadata"/>
- <zipfileset dir="external" prefix="rome/release/modules/ext/" >
- <include name="rome-0.6.jar" />
- <include name="rome-0.6-license.txt" />
- </zipfileset>
- <zipfileset dir="external" prefix="rome-fetcher/release/modules/ext/" >
- <include name="rome-fetcher-0.6.jar" />
- <include name="rome-fetcher-0.6-license.txt" />
- </zipfileset>
- <zipfileset dir="external" prefix="jdom/release/modules/ext/" >
- <include name="jdom-1.0.jar" />
- <include name="jdom-1.0-license.txt" />
- </zipfileset>
- </zip>
- </target>
-
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/external/binaries-list
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/external/binaries-list b/apisupport.feedreader/external/binaries-list
deleted file mode 100644
index 2ba5c4d..0000000
--- a/apisupport.feedreader/external/binaries-list
+++ /dev/null
@@ -1,3 +0,0 @@
-A2AC1CD690AB4C80DEFE7F9BCE14D35934C35CEC jdom-1.0.jar
-EA66BB8EBA805BAD567DB5A6730F96AC89062601 rome-0.6.jar
-7408D747109A701926646E859C8907D3A7C9B26E rome-fetcher-0.6.jar
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/external/jdom-1.0-license.txt
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/external/jdom-1.0-license.txt b/apisupport.feedreader/external/jdom-1.0-license.txt
deleted file mode 100644
index 091178b..0000000
--- a/apisupport.feedreader/external/jdom-1.0-license.txt
+++ /dev/null
@@ -1,56 +0,0 @@
-Name: JDOM
-Version: 1.0
-Description: Java API for XML manipulation.
-License: Apache-JDOM
-OSR: 3391
-Origin: http://www.jdom.org/dist/binary/jdom-1.0.tar.gz
-
-Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-1. Redistributions of source code must retain the above copyright
- notice, this list of conditions, and the following disclaimer.
-
-2. Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions, and the disclaimer that follows
- these conditions in the documentation and/or other materials
- provided with the distribution.
-
-3. The name "JDOM" must not be used to endorse or promote products
- derived from this software without prior written permission. For
- written permission, please contact <request_AT_jdom_DOT_org>.
-
-4. Products derived from this software may not be called "JDOM", nor
- may "JDOM" appear in their name, without prior written permission
- from the JDOM Project Management <request_AT_jdom_DOT_org>.
-
-In addition, we request (but do not require) that you include in the
-end-user documentation provided with the redistribution and/or in the
-software itself an acknowledgement equivalent to the following:
- "This product includes software developed by the
- JDOM Project (http://www.jdom.org/)."
-Alternatively, the acknowledgment may be graphical using the logos
-available at http://www.jdom.org/images/logos.
-
-THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
-WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE JDOM AUTHORS OR THE PROJECT
-CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
-USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
-OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGE.
-
-This software consists of voluntary contributions made by many
-individuals on behalf of the JDOM Project and was originally
-created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
-Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
-on the JDOM Project, please see <http://www.jdom.org/>.
[03/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/build-impl.xml b/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/build-impl.xml
deleted file mode 100644
index 95f6ec4..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/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.swing.colorchooser-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.paintapp/PaintApp-suite/ColorChooser/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/genfiles.properties b/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/genfiles.properties
deleted file mode 100644
index a89faea..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=e8f620a0
-build.xml.script.CRC32=a624b7a6
-build.xml.stylesheet.CRC32=79c3b980@1.30.0.7
-# 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=e8f620a0
-nbproject/build-impl.xml.script.CRC32=76eac7b1
-nbproject/build-impl.xml.stylesheet.CRC32=261c4bef@1.30.0.7
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.properties b/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.properties
deleted file mode 100644
index 44b4e96..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.properties
+++ /dev/null
@@ -1,40 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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
-license.file=release/modules/ext/ColorChooser-license.txt
-jnlp.verify.excludes=modules/ext/ColorChooser-license.txt
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.xml b/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.xml
deleted file mode 100644
index 68582c4..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/project.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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/2">
- <code-name-base>org.netbeans.swing.colorchooser</code-name-base>
- <suite-component/>
- <module-dependencies/>
- <public-packages>
- <package>org.netbeans.swing.colorchooser</package>
- </public-packages>
- <class-path-extension>
- <runtime-relative-path>ext/ColorChooser.jar</runtime-relative-path>
- <binary-origin>release/modules/ext/ColorChooser.jar</binary-origin>
- </class-path-extension>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/suite.properties b/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/suite.properties
deleted file mode 100644
index 3407645..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/nbproject/suite.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.paintapp/PaintApp-suite/ColorChooser/release/modules/ext/ColorChooser-license.txt
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/release/modules/ext/ColorChooser-license.txt b/apisupport.paintapp/PaintApp-suite/ColorChooser/release/modules/ext/ColorChooser-license.txt
deleted file mode 100644
index 8735fce..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/release/modules/ext/ColorChooser-license.txt
+++ /dev/null
@@ -1,386 +0,0 @@
-Name: ColorChooser
-License: CDDL-1.0
-Origin: https://colorchooser.dev.java.net/
-Description: Color picker component for Swing.
-Comment: unknown version imported originally from contrib/coloreditor in netbeans.org CVS
-
-COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
-
-1. Definitions.
-
-1.1. "Contributor" means each individual or entity that
-creates or contributes to the creation of Modifications.
-
-1.2. "Contributor Version" means the combination of the
-Original Software, prior Modifications used by a
-Contributor (if any), and the Modifications made by that
-particular Contributor.
-
-1.3. "Covered Software" means (a) the Original Software, or
-(b) Modifications, or (c) the combination of files
-containing Original Software with files containing
-Modifications, in each case including portions thereof.
-
-1.4. "Executable" means the Covered Software in any form
-other than Source Code.
-
-1.5. "Initial Developer" means the individual or entity
-that first makes Original Software available under this
-License.
-
-1.6. "Larger Work" means a work which combines Covered
-Software or portions thereof with code not governed by the
-terms of this License.
-
-1.7. "License" means this document.
-
-1.8. "Licensable" means having the right to grant, to the
-maximum extent possible, whether at the time of the initial
-grant or subsequently acquired, any and all of the rights
-conveyed herein.
-
-1.9. "Modifications" means the Source Code and Executable
-form of any of the following:
-
-A. Any file that results from an addition to,
-deletion from or modification of the contents of a
-file containing Original Software or previous
-Modifications;
-
-B. Any new file that contains any part of the
-Original Software or previous Modification; or
-
-C. Any new file that is contributed or otherwise made
-available under the terms of this License.
-
-1.10. "Original Software" means the Source Code and
-Executable form of computer software code that is
-originally released under this License.
-
-1.11. "Patent Claims" means any patent claim(s), now owned
-or hereafter acquired, including without limitation,
-method, process, and apparatus claims, in any patent
-Licensable by grantor.
-
-1.12. "Source Code" means (a) the common form of computer
-software code in which modifications are made and (b)
-associated documentation included in or with such code.
-
-1.13. "You" (or "Your") means an individual or a legal
-entity exercising rights under, and complying with all of
-the terms of, this License. For legal entities, "You"
-includes any entity which controls, is controlled by, or is
-under common control with You. For purposes of this
-definition, "control" means (a) the power, direct or
-indirect, to cause the direction or management of such
-entity, whether by contract or otherwise, or (b) ownership
-of more than fifty percent (50%) of the outstanding shares
-or beneficial ownership of such entity.
-
-2. License Grants.
-
-2.1. The Initial Developer Grant.
-
-Conditioned upon Your compliance with Section 3.1 below and
-subject to third party intellectual property claims, the
-Initial Developer hereby grants You a world-wide,
-royalty-free, non-exclusive license:
-
-(a) under intellectual property rights (other than
-patent or trademark) Licensable by Initial Developer,
-to use, reproduce, modify, display, perform,
-sublicense and distribute the Original Software (or
-portions thereof), with or without Modifications,
-and/or as part of a Larger Work; and
-
-(b) under Patent Claims infringed by the making,
-using or selling of Original Software, to make, have
-made, use, practice, sell, and offer for sale, and/or
-otherwise dispose of the Original Software (or
-portions thereof).
-
-(c) The licenses granted in Sections 2.1(a) and (b)
-are effective on the date Initial Developer first
-distributes or otherwise makes the Original Software
-available to a third party under the terms of this
-License.
-
-(d) Notwithstanding Section 2.1(b) above, no patent
-license is granted: (1) for code that You delete from
-the Original Software, or (2) for infringements
-caused by: (i) the modification of the Original
-Software, or (ii) the combination of the Original
-Software with other software or devices.
-
-2.2. Contributor Grant.
-
-Conditioned upon Your compliance with Section 3.1 below and
-subject to third party intellectual property claims, each
-Contributor hereby grants You a world-wide, royalty-free,
-non-exclusive license:
-
-(a) under intellectual property rights (other than
-patent or trademark) Licensable by Contributor to
-use, reproduce, modify, display, perform, sublicense
-and distribute the Modifications created by such
-Contributor (or portions thereof), either on an
-unmodified basis, with other Modifications, as
-Covered Software and/or as part of a Larger Work; and
-
-(b) under Patent Claims infringed by the making,
-using, or selling of Modifications made by that
-Contributor either alone and/or in combination with
-its Contributor Version (or portions of such
-combination), to make, use, sell, offer for sale,
-have made, and/or otherwise dispose of: (1)
-Modifications made by that Contributor (or portions
-thereof); and (2) the combination of Modifications
-made by that Contributor with its Contributor Version
-(or portions of such combination).
-
-(c) The licenses granted in Sections 2.2(a) and
-2.2(b) are effective on the date Contributor first
-distributes or otherwise makes the Modifications
-available to a third party.
-
-(d) Notwithstanding Section 2.2(b) above, no patent
-license is granted: (1) for any code that Contributor
-has deleted from the Contributor Version; (2) for
-infringements caused by: (i) third party
-modifications of Contributor Version, or (ii) the
-combination of Modifications made by that Contributor
-with other software (except as part of the
-Contributor Version) or other devices; or (3) under
-Patent Claims infringed by Covered Software in the
-absence of Modifications made by that Contributor.
-
-3. Distribution Obligations.
-
-3.1. Availability of Source Code.
-
-Any Covered Software that You distribute or otherwise make
-available in Executable form must also be made available in
-Source Code form and that Source Code form must be
-distributed only under the terms of this License. You must
-include a copy of this License with every copy of the
-Source Code form of the Covered Software You distribute or
-otherwise make available. You must inform recipients of any
-such Covered Software in Executable form as to how they can
-obtain such Covered Software in Source Code form in a
-reasonable manner on or through a medium customarily used
-for software exchange.
-
-3.2. Modifications.
-
-The Modifications that You create or to which You
-contribute are governed by the terms of this License. You
-represent that You believe Your Modifications are Your
-original creation(s) and/or You have sufficient rights to
-grant the rights conveyed by this License.
-
-3.3. Required Notices.
-
-You must include a notice in each of Your Modifications
-that identifies You as the Contributor of the Modification.
-You may not remove or alter any copyright, patent or
-trademark notices contained within the Covered Software, or
-any notices of licensing or any descriptive text giving
-attribution to any Contributor or the Initial Developer.
-
-3.4. Application of Additional Terms.
-
-You may not offer or impose any terms on any Covered
-Software in Source Code form that alters or restricts the
-applicable version of this License or the recipients'
-rights hereunder. You may choose to offer, and to charge a
-fee for, warranty, support, indemnity or liability
-obligations to one or more recipients of Covered Software.
-However, you may do so only on Your own behalf, and not on
-behalf of the Initial Developer or any Contributor. You
-must make it absolutely clear that any such warranty,
-support, indemnity or liability obligation is offered by
-You alone, and You hereby agree to indemnify the Initial
-Developer and every Contributor for any liability incurred
-by the Initial Developer or such Contributor as a result of
-warranty, support, indemnity or liability terms You offer.
-
-3.5. Distribution of Executable Versions.
-
-You may distribute the Executable form of the Covered
-Software under the terms of this License or under the terms
-of a license of Your choice, which may contain terms
-different from this License, provided that You are in
-compliance with the terms of this License and that the
-license for the Executable form does not attempt to limit
-or alter the recipient's rights in the Source Code form
-from the rights set forth in this License. If You
-distribute the Covered Software in Executable form under a
-different license, You must make it absolutely clear that
-any terms which differ from this License are offered by You
-alone, not by the Initial Developer or Contributor. You
-hereby agree to indemnify the Initial Developer and every
-Contributor for any liability incurred by the Initial
-Developer or such Contributor as a result of any such terms
-You offer.
-
-3.6. Larger Works.
-
-You may create a Larger Work by combining Covered Software
-with other code not governed by the terms of this License
-and distribute the Larger Work as a single product. In such
-a case, You must make sure the requirements of this License
-are fulfilled for the Covered Software.
-
-4. Versions of the License.
-
-4.1. New Versions.
-
-Sun Microsystems, Inc. is the initial license steward and
-may publish revised and/or new versions of this License
-from time to time. Each version will be given a
-distinguishing version number. Except as provided in
-Section 4.3, no one other than the license steward has the
-right to modify this License.
-
-4.2. Effect of New Versions.
-
-You may always continue to use, distribute or otherwise
-make the Covered Software available under the terms of the
-version of the License under which You originally received
-the Covered Software. If the Initial Developer includes a
-notice in the Original Software prohibiting it from being
-distributed or otherwise made available under any
-subsequent version of the License, You must distribute and
-make the Covered Software available under the terms of the
-version of the License under which You originally received
-the Covered Software. Otherwise, You may also choose to
-use, distribute or otherwise make the Covered Software
-available under the terms of any subsequent version of the
-License published by the license steward.
-
-4.3. Modified Versions.
-
-When You are an Initial Developer and You want to create a
-new license for Your Original Software, You may create and
-use a modified version of this License if You: (a) rename
-the license and remove any references to the name of the
-license steward (except to note that the license differs
-from this License); and (b) otherwise make it clear that
-the license contains terms which differ from this License.
-
-5. DISCLAIMER OF WARRANTY.
-
-COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS"
-BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
-INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED
-SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR
-PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND
-PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY
-COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE
-INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF
-ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF
-WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
-ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS
-DISCLAIMER.
-
-6. TERMINATION.
-
-6.1. This License and the rights granted hereunder will
-terminate automatically if You fail to comply with terms
-herein and fail to cure such breach within 30 days of
-becoming aware of the breach. Provisions which, by their
-nature, must remain in effect beyond the termination of
-this License shall survive.
-
-6.2. If You assert a patent infringement claim (excluding
-declaratory judgment actions) against Initial Developer or
-a Contributor (the Initial Developer or Contributor against
-whom You assert such claim is referred to as "Participant")
-alleging that the Participant Software (meaning the
-Contributor Version where the Participant is a Contributor
-or the Original Software where the Participant is the
-Initial Developer) directly or indirectly infringes any
-patent, then any and all rights granted directly or
-indirectly to You by such Participant, the Initial
-Developer (if the Initial Developer is not the Participant)
-and all Contributors under Sections 2.1 and/or 2.2 of this
-License shall, upon 60 days notice from Participant
-terminate prospectively and automatically at the expiration
-of such 60 day notice period, unless if within such 60 day
-period You withdraw Your claim with respect to the
-Participant Software against such Participant either
-unilaterally or pursuant to a written agreement with
-Participant.
-
-6.3. In the event of termination under Sections 6.1 or 6.2
-above, all end user licenses that have been validly granted
-by You or any distributor hereunder prior to termination
-(excluding licenses granted to You by any distributor)
-shall survive termination.
-
-7. LIMITATION OF LIABILITY.
-
-UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
-(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
-INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
-COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE
-LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
-CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
-LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK
-STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
-COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
-INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
-LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL
-INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT
-APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO
-NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR
-CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT
-APPLY TO YOU.
-
-8. U.S. GOVERNMENT END USERS.
-
-The Covered Software is a "commercial item," as that term is
-defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial
-computer software" (as that term is defined at 48 C.F.R.
-252.227-7014(a)(1)) and "commercial computer software
-documentation" as such terms are used in 48 C.F.R. 12.212 (Sept.
-1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1
-through 227.7202-4 (June 1995), all U.S. Government End Users
-acquire Covered Software with only those rights set forth herein.
-This U.S. Government Rights clause is in lieu of, and supersedes,
-any other FAR, DFAR, or other clause or provision that addresses
-Government rights in computer software under this License.
-
-9. MISCELLANEOUS.
-
-This License represents the complete agreement concerning subject
-matter hereof. If any provision of this License is held to be
-unenforceable, such provision shall be reformed only to the
-extent necessary to make it enforceable. This License shall be
-governed by the law of the jurisdiction specified in a notice
-contained within the Original Software (except to the extent
-applicable law, if any, provides otherwise), excluding such
-jurisdiction's conflict-of-law provisions. Any litigation
-relating to this License shall be subject to the jurisdiction of
-the courts located in the jurisdiction and venue specified in a
-notice contained within the Original Software, with the losing
-party responsible for costs, including, without limitation, court
-costs and reasonable attorneys' fees and expenses. The
-application of the United Nations Convention on Contracts for the
-International Sale of Goods is expressly excluded. Any law or
-regulation which provides that the language of a contract shall
-be construed against the drafter shall not apply to this License.
-You agree that You alone are responsible for compliance with the
-United States export administration regulations (and the export
-control laws and regulation of any other countries) when You use,
-distribute or otherwise make available any Covered Software.
-
-10. RESPONSIBILITY FOR CLAIMS.
-
-As between Initial Developer and the Contributors, each party is
-responsible for claims and damages arising, directly or
-indirectly, out of its utilization of rights under this License
-and You agree to work with Initial Developer and Contributors to
-distribute such responsibility on an equitable basis. Nothing
-herein is intended or shall be deemed to constitute any admission
-of liability.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/ColorChooser/src/org/netbeans/swing/colorchooser/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/ColorChooser/src/org/netbeans/swing/colorchooser/Bundle.properties b/apisupport.paintapp/PaintApp-suite/ColorChooser/src/org/netbeans/swing/colorchooser/Bundle.properties
deleted file mode 100644
index bb814cc..0000000
--- a/apisupport.paintapp/PaintApp-suite/ColorChooser/src/org/netbeans/swing/colorchooser/Bundle.properties
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-OpenIDE-Module-Name=ColorChooser
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/build.xml b/apisupport.paintapp/PaintApp-suite/Paint/build.xml
deleted file mode 100644
index f971a7a..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/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) 2007, 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.paint" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project org.netbeans.paint.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/manifest.mf b/apisupport.paintapp/PaintApp-suite/Paint/manifest.mf
deleted file mode 100644
index 00dd051..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.paint
-OpenIDE-Module-Layer: org/netbeans/paint/layer.xml
-OpenIDE-Module-Localizing-Bundle: org/netbeans/paint/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.1
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/build-impl.xml b/apisupport.paintapp/PaintApp-suite/Paint/nbproject/build-impl.xml
deleted file mode 100644
index a0473af..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/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.paint-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.paintapp/PaintApp-suite/Paint/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/genfiles.properties b/apisupport.paintapp/PaintApp-suite/Paint/nbproject/genfiles.properties
deleted file mode 100644
index ed46c02..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=350bda31
-build.xml.script.CRC32=f632a4aa
-build.xml.stylesheet.CRC32=a56c6a5b@2.67.1
-# 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=350bda31
-nbproject/build-impl.xml.script.CRC32=be1dd9b3
-nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67.1
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.properties b/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.properties
deleted file mode 100644
index 937f581..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.properties
+++ /dev/null
@@ -1,39 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.compilerargs=-Xlint -Xlint:-serial
-javac.source=1.6
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.xml b/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.xml
deleted file mode 100644
index 9e1d466..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/project.xml
+++ /dev/null
@@ -1,149 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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/2">
- <code-name-base>org.netbeans.paint</code-name-base>
- <suite-component/>
- <module-dependencies>
- <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.29</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.swing.colorchooser</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>1.0</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.awt</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.7.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.0</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.filesystems</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.3</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.filesystems.nb</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.1</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.loaders</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.61</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.nodes</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.14</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.lookup</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>8.1</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.windows</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.5.1</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.paintapp/PaintApp-suite/Paint/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/suite.properties b/apisupport.paintapp/PaintApp-suite/Paint/nbproject/suite.properties
deleted file mode 100644
index 3407645..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/nbproject/suite.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/Bundle.properties b/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/Bundle.properties
deleted file mode 100644
index 1bd7227..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/Bundle.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-OpenIDE-Module-Name=Paint
-CTL_NewCanvasAction=New Canvas
-UnsavedImageNameFormat=Image {0}
-LBL_Clear = Clear
-LBL_Foreground = Foreground
-LBL_BrushSize = Brush Size
-MSG_SaveFailed = Could not write to file {0}
-MSG_Overwrite = {0} exists. Overwrite?
-MSG_Saved = Saved image to {0}
-TTL_SAVE_DIALOG=Save
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintCanvas.java
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintCanvas.java b/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintCanvas.java
deleted file mode 100644
index 07b19f0..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintCanvas.java
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.netbeans.paint;
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.Graphics;
-import java.awt.Graphics2D;
-import java.awt.Point;
-import java.awt.RenderingHints;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.awt.event.MouseMotionListener;
-import java.awt.geom.AffineTransform;
-import java.awt.image.BufferedImage;
-import javax.swing.JComponent;
-
-/**
- *
- * @author Tim Boudreau
- */
-public class PaintCanvas extends JComponent {
- private int brushDiameter = 10;
- private final MouseL mouseListener = new MouseL();
- private BufferedImage backingImage = null;
- private final BrushSizeView brushView = new BrushSizeView();
- private Color color = Color.BLUE;
-
- public PaintCanvas() {
- addMouseListener(mouseListener);
- addMouseMotionListener(mouseListener);
- setBackground(Color.WHITE);
- setFocusable(true);
- }
-
- public void setBrush(int diam) {
- this.brushDiameter = diam;
- }
-
- public void setBrushDiameter(int val) {
- this.brushDiameter = val;
- brushView.repaint();
- }
-
- public int getBrushDiameter() {
- return brushDiameter;
- }
-
- public void setColor(Color c) {
- this.color = c;
- brushView.repaint();
- }
-
- public Color getColor() {
- return color;
- }
-
- public void clear() {
- backingImage = null;
- repaint();
- }
-
- @Override
- public void paint(Graphics g) {
- Graphics2D g2d = (Graphics2D) g;
- g2d.drawRenderedImage(getImage(), AffineTransform.getTranslateInstance(0, 0));
- }
-
- JComponent getBrushSizeView() {
- return brushView;
- }
-
- public BufferedImage getImage() {
- int width = Math.min(getWidth(), 1600);
- int height = Math.min(getHeight(), 1200);
- if (backingImage == null || backingImage.getWidth() != width || backingImage.getHeight() != height) {
- int newWidth = backingImage == null ? width : Math.max(width, backingImage.getWidth());
- int newHeight = backingImage == null ? height : Math.max(height, backingImage.getHeight());
- if (newHeight > height && newWidth > width && backingImage != null) {
- return backingImage;
- }
- BufferedImage old = backingImage;
- backingImage = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_ARGB_PRE);
- Graphics2D g = backingImage.createGraphics();
- g.setColor(Color.WHITE);
- g.fillRect(0, 0, width, height);
- if (old != null) {
- g.drawRenderedImage(old,
- AffineTransform.getTranslateInstance(0, 0));
- }
- g.dispose();
- setPreferredSize(new Dimension (newWidth, newHeight));
- }
- return backingImage;
- }
-
- private class BrushSizeView extends JComponent {
- @Override
- public void paint(Graphics g) {
- ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING,
- RenderingHints.VALUE_ANTIALIAS_ON);
- Point p = new Point(getWidth() / 2, getHeight() / 2);
- int half = getBrushDiameter() / 2;
- int diam = getBrushDiameter();
- g.setColor(getColor());
- g.fillOval(p.x - half, p.y - half, diam, diam);
- }
-
- @Override
- public Dimension getPreferredSize() {
- return new Dimension (24, 24);
- }
- }
-
- private final class MouseL extends MouseAdapter implements MouseMotionListener {
- @Override
- public void mouseClicked(MouseEvent e) {
- Point p = e.getPoint();
- int half = brushDiameter / 2;
- Graphics2D g = getImage().createGraphics();
- g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
- RenderingHints.VALUE_ANTIALIAS_ON);
- g.setPaint(getColor());
- g.fillOval(p.x - half, p.y - half, brushDiameter, brushDiameter);
- g.dispose();
- repaint(p.x - half, p.y - half, brushDiameter, brushDiameter);
- }
-
- @Override
- public void mouseDragged(MouseEvent e) {
- mouseClicked(e);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintTopComponent.java
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintTopComponent.java b/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintTopComponent.java
deleted file mode 100644
index 3eabeb6..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/PaintTopComponent.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.netbeans.paint;
-
-import java.awt.BorderLayout;
-import java.awt.Color;
-import java.awt.Dimension;
-import java.awt.FlowLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.awt.event.MouseAdapter;
-import java.awt.event.MouseEvent;
-import java.io.File;
-import java.io.IOException;
-import javax.imageio.ImageIO;
-import javax.swing.JButton;
-import javax.swing.JComponent;
-import javax.swing.JLabel;
-import javax.swing.JScrollPane;
-import javax.swing.JSlider;
-import javax.swing.JToolBar;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.settings.ConvertAsProperties;
-import org.netbeans.swing.colorchooser.ColorChooser;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-import org.openide.awt.ActionID;
-import org.openide.awt.ActionReference;
-import org.openide.awt.ActionReferences;
-import org.openide.awt.StatusDisplayer;
-import org.openide.cookies.SaveCookie;
-import org.openide.filesystems.FileChooserBuilder;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.loaders.DataObject;
-import org.openide.util.Exceptions;
-import org.openide.util.NbBundle;
-import org.openide.util.lookup.AbstractLookup;
-import org.openide.util.lookup.InstanceContent;
-import org.openide.windows.TopComponent;
-
-@ConvertAsProperties(dtd = "-//org.netbeans.paint//PaintTopComponent//EN", autostore = false)
-@TopComponent.Description(preferredID = "PaintTopComponent", iconBase = "/org/netbeans/paint/new_icon.png", persistenceType = TopComponent.PERSISTENCE_ALWAYS)
-@TopComponent.Registration(mode = "editor", openAtStartup = true)
-@ActionID(category = "Window", id = "org.netbeans.paint.PaintTopComponent")
-@ActionReferences({
- @ActionReference(path = "Menu/Window", position = 0),
- @ActionReference(path = "Toolbars/File", position = 0)
-})
-@TopComponent.OpenActionRegistration(displayName = "#CTL_NewCanvasAction")
-public final class PaintTopComponent extends TopComponent implements ActionListener, ChangeListener {
- private static int ct = 0; //A counter you use to provide names for new images
- private final PaintCanvas canvas = new PaintCanvas(); //The component the user draws on
- private final JComponent preview = canvas.getBrushSizeView(); //A component in the toolbar that shows the paintbrush size
- private final JToolBar toolbar = new JToolBar(); //The toolbar
- private final ColorChooser color = new ColorChooser(); //Our color chooser component from the ColorChooser library
- private final JButton clear = new JButton(
- NbBundle.getMessage(PaintTopComponent.class, "LBL_Clear")); //A button to clear the canvas
- private final JLabel label = new JLabel(
- NbBundle.getMessage(PaintTopComponent.class, "LBL_Foreground")); //A label for the color chooser
- private final JLabel brushSizeLabel = new JLabel(
- NbBundle.getMessage(PaintTopComponent.class, "LBL_BrushSize")); //A label for the brush size slider
- private final JSlider brushSizeSlider = new JSlider(1, 24); //A slider to set the brush size
- private InstanceContent content = new InstanceContent(); //The bag of stuff we add/remove the Saver from, and store the last-used file in
- private Saver saver = new Saver();
-
- public PaintTopComponent() {
- initComponents();
- String displayName = NbBundle.getMessage(
- PaintTopComponent.class,
- "UnsavedImageNameFormat", ct++);
- setDisplayName(displayName);
- //If we don't set the name, Window > Documents will throw an exception
- setName(displayName);
- //Connect our lookup to the rest of the system, so that
- //SaveAction will pay attention to whether or not the Saver is available
- associateLookup(new AbstractLookup(content));
- //Enable the Print action for the canvas:
- putClientProperty("print.printable", true);
- //Disable the Save action by default:
- enableSaveAction(false);
- }
-
- private void initComponents() {
- setLayout(new BorderLayout());
- //Configure our components, attach listeners
- color.addActionListener(this);
- clear.addActionListener(this);
- brushSizeSlider.setValue(canvas.getBrushDiameter());
- brushSizeSlider.addChangeListener(this);
- color.setColor(canvas.getColor());
- color.setMaximumSize(new Dimension(16, 16));
- //Install the toolbar and the painting component:
- add(toolbar, BorderLayout.NORTH);
- add(new JScrollPane(canvas), BorderLayout.CENTER);
- //Configure the toolbar
- toolbar.setLayout(new FlowLayout(FlowLayout.LEFT, 7, 7));
- toolbar.setFloatable(false);
- //Now populate our toolbar:
- toolbar.add(label);
- toolbar.add(color);
- toolbar.add(brushSizeLabel);
- toolbar.add(brushSizeSlider);
- toolbar.add(preview);
- toolbar.add(clear);
- }
-
- private void enableSaveAction(boolean canSave) {
- if (canSave) {
- //If the canvas is modified,
- //we add SaveCookie impl to Lookup:
- content.add(saver);
- } else {
- //Otherwise, we remove the SaveCookie impl from the lookup:
- content.remove(saver);
- canvas.addMouseListener(new MouseAdapter() {
-
- @Override
- public void mouseReleased(MouseEvent e) {
- //Once we can save, we are done listening.
- //If enableSaveAction(false) is called, we will
- //start listening again.
- canvas.removeMouseListener(this);
- enableSaveAction(true);
- }
- });
- }
- }
-
- @Override
- public void stateChanged(ChangeEvent e) {
- canvas.setBrushDiameter(brushSizeSlider.getValue());
- }
-
- @Override
- public void actionPerformed(ActionEvent e) {
- if (e.getSource() instanceof JButton) {
- canvas.clear();
- enableSaveAction(false);
- } else if (e.getSource() instanceof ColorChooser) {
- ColorChooser cc = (ColorChooser) e.getSource();
- canvas.setColor(cc.getColor());
- }
- }
-
- private class Saver implements SaveCookie {
-
- @Override
- public void save() throws IOException {
- DataObject theFile = getLookup().lookup(DataObject.class);
- if (theFile != null) {
- File saveTo = FileUtil.toFile(theFile.getPrimaryFile());
- save(saveTo);
- } else {
- saveAs();
- }
- }
-
- public void saveAs() throws IOException {
- String title = NbBundle.getMessage(Saver.class, "TTL_SAVE_DIALOG");
- File f = new FileChooserBuilder(Saver.class).setTitle(title).showSaveDialog();
- if (f != null) {
- if (!f.getAbsolutePath().endsWith(".png")) {
- f = new File(f.getAbsolutePath() + ".png");
- }
- try {
- if (!f.exists()) {
- if (!f.createNewFile()) {
- String failMsg = NbBundle.getMessage(
- PaintTopComponent.class,
- "MSG_SaveFailed", f.getName());
- DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(failMsg));
- return;
- }
- } else {
- String overwriteMessage = NbBundle.getMessage(Saver.class, "MSG_Overwrite", f.getName());
- Object userChose = DialogDisplayer.getDefault().notify(new NotifyDescriptor.Confirmation(overwriteMessage));
- if (NotifyDescriptor.CANCEL_OPTION.equals(userChose)) {
- return;
- }
- }
- //Need getAbsoluteFile(), or X.png and x.png are different on windows
- save(f.getAbsoluteFile());
- } catch (IOException ioe) {
- Exceptions.printStackTrace(ioe);
- }
- }
- }
-
- private void save(File f) throws IOException {
- ImageIO.write(canvas.getImage(), "png", f);
- String savedMessage = NbBundle.getMessage(Saver.class, "MSG_Saved", f.getName());
- StatusDisplayer.getDefault().setStatusText(savedMessage);
- FileObject fob = FileUtil.toFileObject(FileUtil.normalizeFile(f));
- assert fob != null : "MasterFS excluded from suite?";
- //Store the file, so we don't show the Save dialog again
- content.add(DataObject.find(fob));
- setDisplayName(fob.getName());
- enableSaveAction(false);
- }
- }
-
- void writeProperties(java.util.Properties p) {
- // better to version settings since initial version as advocated at
- // http://wiki.apidesign.org/wiki/PropertyFiles
- p.setProperty("version", "1.0");
- // now store the color and size
- p.setProperty("color", "" + color.getColor().getRGB());
- p.setProperty("size", "" + brushSizeSlider.getValue());
- }
-
- void readProperties(java.util.Properties p) {
- String version = p.getProperty("version");
- assert "1.0".equals(version);
- final String rgbRef = p.getProperty("color");
- final String sizeRef = p.getProperty("size");
- if (rgbRef != null) {
- int rgb = Integer.parseInt(rgbRef);
- final Color c = new Color(rgb);
- color.setColor(c);
- canvas.setColor(c);
- }
- if (sizeRef != null) {
- int size = Integer.parseInt(sizeRef);
- brushSizeSlider.setValue(size);
- canvas.setBrushDiameter(size);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/layer.xml b/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/layer.xml
deleted file mode 100644
index 4e577e7..0000000
--- a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/layer.xml
+++ /dev/null
@@ -1,119 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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):
--->
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<filesystem>
- <folder name="Actions">
- <folder name="File">
- <file name="org-openide-actions-SaveAction.instance">
- <attr name="instanceCreate" methodvalue="org.openide.awt.Actions.context"/>
- <attr name="delegate" newvalue="org.openide.actions.SaveAction"/>
- <attr name="selectionType" stringvalue="EXACTLY_ONE"/>
- <attr name="surviveFocusChange" boolvalue="false"/>
- <attr name="displayName" bundlevalue="org/openide/actions/Bundle#Save"/>
- <attr name="noIconInMenu" boolvalue="false"/>
- <attr name="iconBase" stringvalue="org/openide/resources/actions/save.png"/>
- <attr name="type" stringvalue="org.openide.cookies.SaveCookie"/>
- </file>
- <file name="org-netbeans-core-actions-SystemExit.instance">
- <attr name="noIconInMenu" boolvalue="true"/>
- </file>
- </folder>
- <folder name="System">
- <file name="org-openide-actions-GarbageCollectAction.instance">
- <attr name="position" intvalue="100"/>
- </file>
- </folder>
- </folder>
- <folder name="Menu">
- <folder name="File">
- <attr name="position" intvalue="0"/>
- <file name="SaveAction.shadow">
- <attr name="originalFile" stringvalue="Actions/File/org-openide-actions-SaveAction.instance"/>
- <attr name="position" intvalue="100"/>
- </file>
- <file name="SeparatorAfterSave.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="110"/>
- </file>
- <file name="SeparatorBeforeExit.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="3990"/>
- </file>
- <file name="ExitAction.shadow">
- <attr name="originalFile" stringvalue="Actions/File/org-netbeans-core-actions-SystemExit.instance"/>
- <attr name="position" intvalue="4000"/>
- </file>
- </folder>
- <folder name="Window">
- <attr name="position" intvalue="400"/>
- <file name="SeparatorBeforeFullscreen.instance">
- <attr name="instanceClass" stringvalue="javax.swing.JSeparator"/>
- <attr name="position" intvalue="3990"/>
- </file>
- <file name="ToggleFullScreenAction.shadow">
- <attr name="position" intvalue="4000"/>
- <attr name="originalFile" stringvalue="Actions/Window/org-netbeans-core-windows-actions-ToggleFullScreenAction.instance"/>
- </file>
- <folder name="Output_hidden"/>
- </folder>
- <folder name="Help">
- <attr name="position" intvalue="500"/>
- <file name="org-netbeans-core-actions-AboutAction.instance"/>
- </folder>
- <folder name="GoTo_hidden"/>
- <folder name="Tools_hidden"/>
- <folder name="View_hidden"/>
- </folder>
- <folder name="Toolbars">
- <folder name="File">
- <file name="SaveAction.shadow">
- <attr name="originalFile" stringvalue="Actions/File/org-openide-actions-SaveAction.instance"/>
- <attr name="position" intvalue="100"/>
- </file>
- </folder>
- <folder name="Memory">
- <file name="Memory.shadow">
- <attr name="originalFile" stringvalue="Actions/System/org-openide-actions-GarbageCollectAction.instance"/>
- <attr name="position" intvalue="100"/>
- </file>
- </folder>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon.png
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon.png b/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon.png
deleted file mode 100644
index b2675d6..0000000
Binary files a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon24.png
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon24.png b/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon24.png
deleted file mode 100644
index a7cd7c2..0000000
Binary files a/apisupport.paintapp/PaintApp-suite/Paint/src/org/netbeans/paint/new_icon24.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties b/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
deleted file mode 100644
index 086faa7..0000000
--- a/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
+++ /dev/null
@@ -1,45 +0,0 @@
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-currentVersion=Paint Application {0}
-#NOI18N
-SPLASH_HEIGHT=357
-#NOI18N
-SPLASH_WIDTH=496
-#NOI18N
-SplashProgressBarBounds=1,326,494,4
-#NOI18N
-SplashProgressBarColor=0xFF3300
-#NOI18N
-SplashRunningTextBounds=33,310,300,11
-#NOI18N
-SplashRunningTextColor=0xFFFF00
-#NOI18N
-SplashRunningTextFontSize=11
-#NOI18N
-SplashShowProgressBar=true
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif b/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif
deleted file mode 100644
index e26d4ab..0000000
Binary files a/apisupport.paintapp/PaintApp-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/actions/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/actions/Bundle.properties b/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/actions/Bundle.properties
deleted file mode 100644
index 539daa1..0000000
--- a/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/actions/Bundle.properties
+++ /dev/null
@@ -1,60 +0,0 @@
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-# CloseWindowAction
-CTL_CloseWindowAction=&Close Window
-
-CTL_CloneDocumentAction=C&lone Canvas
-
-LBL_CloneDocumentAction=Clone Canvas
-
-LBL_SaveDocumentAction=Save Canvas
-
-
-CTL_RecentViewListAction=Go to P&revious Canvas
-
-CTL_CloseAllDocumentsAction=Close &All Canvas
-
-# ActionUtils.CloseAllDocumentsAction
-LBL_CloseAllDocumentsAction=Close All Canvas
-# ActionUtils.AutoHideWindowAction
-LBL_AutoHideWindowAction=Minimize Window
-# ActionUtils.CloseWindowAction
-LBL_CloseWindowAction=Close Window
-# ActionUtils.CloseAllButThisAction
-LBL_CloseAllButThisAction=Close Other Canvas
-# CloseAllButThisAction
-CTL_CloseAllButThisAction=Clos&e Other Canvas
-
-# MaximizeWindowAction
-CTL_MaximizeWindowAction=&Maximize Window
-CTL_UnmaximizeWindowAction=Re&store Window
-
-
-# DocumentsAction
-CTL_DocumentsAction=&Canvas...
[08/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/external/rome-0.6-license.txt
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/external/rome-0.6-license.txt b/apisupport.feedreader/external/rome-0.6-license.txt
deleted file mode 100644
index 57bd27a..0000000
--- a/apisupport.feedreader/external/rome-0.6-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Version: 0.6
-License: Apache-2.0
-Description: Java tools for parsing, generating and publishing RSS and Atom feeds
-Name: Rome
-OSR: 3390
-Origin: https://rome.dev.java.net/
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/external/rome-fetcher-0.6-license.txt
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/external/rome-fetcher-0.6-license.txt b/apisupport.feedreader/external/rome-fetcher-0.6-license.txt
deleted file mode 100644
index b61ce49..0000000
--- a/apisupport.feedreader/external/rome-fetcher-0.6-license.txt
+++ /dev/null
@@ -1,208 +0,0 @@
-Version: 0.6
-License: Apache-2.0
-Description: Java tools for parsing, generating and publishing RSS and Atom feeds
-Name: Rome HTTP Fetcher
-OSR: 3453
-Origin: https://rome.dev.java.net/
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/build.xml b/apisupport.feedreader/feedreader-suite/FeedReader/build.xml
deleted file mode 100644
index 286d433..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/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) 2007, 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.feedreader" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project org.netbeans.feedreader.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/manifest.mf b/apisupport.feedreader/feedreader-suite/FeedReader/manifest.mf
deleted file mode 100644
index c63e6db..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.feedreader
-OpenIDE-Module-Layer: org/netbeans/feedreader/layer.xml
-OpenIDE-Module-Localizing-Bundle: org/netbeans/feedreader/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.1
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/build-impl.xml b/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/build-impl.xml
deleted file mode 100644
index 3478a33..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/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.feedreader-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.feedreader/feedreader-suite/FeedReader/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/genfiles.properties b/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/genfiles.properties
deleted file mode 100644
index ca1fbf9..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=87a492bb
-build.xml.script.CRC32=a72a8585
-build.xml.stylesheet.CRC32=79c3b980@1.30.0.7
-# 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=87a492bb
-nbproject/build-impl.xml.script.CRC32=00292192
-nbproject/build-impl.xml.stylesheet.CRC32=261c4bef@1.30.0.7
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.properties b/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.properties
deleted file mode 100644
index 937f581..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.properties
+++ /dev/null
@@ -1,39 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.compilerargs=-Xlint -Xlint:-serial
-javac.source=1.6
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.xml b/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.xml
deleted file mode 100644
index 1cbe005..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/project.xml
+++ /dev/null
@@ -1,165 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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/2">
- <code-name-base>org.netbeans.feedreader</code-name-base>
- <suite-component/>
- <module-dependencies>
- <dependency>
- <code-name-base>com.sun.syndication</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>1.0</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>com.sun.syndication.fetcher</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.settings</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.29</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.actions</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.5.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.10</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.dialogs</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.5.1</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.explorer</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.8</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.filesystems</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.1</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.loaders</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.61</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.nodes</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.7.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.lookup</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>8.0</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.windows</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.5.1</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.feedreader/feedreader-suite/FeedReader/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/suite.properties b/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/suite.properties
deleted file mode 100644
index 3407645..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/nbproject/suite.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/BrowserTopComponent.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/BrowserTopComponent.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/BrowserTopComponent.java
deleted file mode 100644
index 6d0a0c5..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/BrowserTopComponent.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.netbeans.feedreader;
-
-import com.sun.syndication.feed.synd.SyndContent;
-import com.sun.syndication.feed.synd.SyndEntry;
-import java.awt.BorderLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.util.HashMap;
-import java.util.Map;
-import javax.swing.JButton;
-import javax.swing.JEditorPane;
-import javax.swing.JScrollPane;
-import org.openide.awt.HtmlBrowser;
-import org.openide.util.Exceptions;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-
-/**
- * A top component which can display a feed entry.
- */
-public final class BrowserTopComponent extends TopComponent {
-
- /** The cache of opened browser components. */
- private static Map<String,BrowserTopComponent> browserComponents = new HashMap<String,BrowserTopComponent>();
-
- private final JScrollPane scrollPane;
- private final JEditorPane editorPane;
- private final SyndEntry entry;
-
- private BrowserTopComponent(SyndEntry entry) {
- this.entry = entry;
- setName(entry.getTitle());
- setToolTipText(NbBundle.getMessage(BrowserTopComponent.class, "HINT_BrowserTopComponent"));
-
- scrollPane = new javax.swing.JScrollPane();
- editorPane = new javax.swing.JEditorPane();
-
- editorPane.setEditable(false);
- SyndContent description = entry.getDescription();
- if (description != null) {
- /* Not trustworthy, it seems:
- String type = description.getType();
- if (type == null) {
- editorPane.setContentType(type);
- }
- */
- editorPane.setContentType("text/html");
- editorPane.setText(description.getValue());
- }
-
- setLayout(new BorderLayout());
- scrollPane.setViewportView(editorPane);
- add(scrollPane, BorderLayout.CENTER);
- putClientProperty(/*PrintManager.PRINT_PRINTABLE*/"print.printable", true);
-
- JButton browse = new JButton(NbBundle.getMessage(BrowserTopComponent.class, "CTL_view_in_browser"));
- browse.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- try {
- HtmlBrowser.URLDisplayer.getDefault().showURLExternal(new URL(BrowserTopComponent.this.entry.getLink()));
- } catch (MalformedURLException ex) {
- Exceptions.printStackTrace(ex);
- }
- }
- });
- add(browse, BorderLayout.PAGE_END);
- }
-
-
- public static BrowserTopComponent getBrowserComponent(SyndEntry entry) {
- BrowserTopComponent win = browserComponents.get(entry.getUri());
- if (win == null) {
- win = new BrowserTopComponent(entry);
- browserComponents.put(entry.getUri(), win);
- }
- return win;
- }
-
- @Override
- public int getPersistenceType() {
- return TopComponent.PERSISTENCE_NEVER;
- }
-
- @Override
- public synchronized void componentClosed() {
- browserComponents.remove(entry.getUri());
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Bundle.properties b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Bundle.properties
deleted file mode 100644
index 06c30fc..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Bundle.properties
+++ /dev/null
@@ -1,42 +0,0 @@
- # Copyright (c) 2010, Oracle. All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are met:
- #
- # * Redistributions of source code must retain the above copyright notice,
- # this list of conditions and the following disclaimer.
- #
- # * Redistributions in binary form must reproduce the above copyright notice,
- # this list of conditions and the following disclaimer in the documentation
- # and/or other materials provided with the distribution.
- #
- # * Neither the name of Oracle nor the names of its contributors
- # may be used to endorse or promote products derived from this software without
- # specific prior written permission.
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- # THE POSSIBILITY OF SUCH DAMAGE.
-
-OpenIDE-Module-Display-Category=Tools
-OpenIDE-Module-Long-Description=\
- Feed Reader Application allows you to read RSS feeds.
-OpenIDE-Module-Name=Feed Reader
-OpenIDE-Module-Short-Description=Feed Reader Application
-
-CTL_BrowserTopComponent=Browser Window
-CTL_FeedAction=Open Feed Window
-CTL_FeedTopComponent=Feed Window
-CTL_view_in_browser=View in Browser
-HINT_BrowserTopComponent=This is a Browser window
-HINT_FeedTopComponent=This is a Feed window
-#NOI18N
-URL_sample_feed=http://planetnetbeans.org/rss20.xml
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Feed.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Feed.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Feed.java
deleted file mode 100644
index d1b6414..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/Feed.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.netbeans.feedreader;
-
-import com.sun.syndication.feed.synd.SyndFeed;
-import com.sun.syndication.fetcher.FeedFetcher;
-import com.sun.syndication.fetcher.impl.HashMapFeedInfoCache;
-import com.sun.syndication.fetcher.impl.HttpURLFeedFetcher;
-import java.io.IOException;
-import java.io.Serializable;
-import java.net.MalformedURLException;
-import java.net.URL;
-import org.openide.util.NbBundle;
-
-public class Feed implements Serializable {
-
- private static final long serialVersionUID = 1L;
-
- private static final FeedFetcher FEED_FETCHER =
- new HttpURLFeedFetcher(HashMapFeedInfoCache.getInstance());
-
- private transient SyndFeed syndFeed;
- private final URL url;
- private String name;
-
- public Feed(URL url) {
- this.url = url;
- name = url.toExternalForm();
- }
-
- public URL getURL() {
- return url;
- }
-
- public SyndFeed getSyndFeed() throws IOException {
- if (syndFeed == null) {
- try {
- syndFeed = FEED_FETCHER.retrieveFeed(url);
- String title = syndFeed.getTitle();
- if (title != null) {
- name = title;
- }
- } catch (Exception ex) {
- throw new IOException(ex);
- }
- }
- return syndFeed;
- }
-
- @Override
- public String toString() {
- return name;
- }
-
- public static Feed getSample() {
- try {
- return new Feed(new URL(NbBundle.getMessage(Feed.class, "URL_sample_feed")));
- } catch (MalformedURLException x) {
- throw new AssertionError(x);
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/FeedTopComponent.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/FeedTopComponent.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/FeedTopComponent.java
deleted file mode 100644
index ce610fd..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/FeedTopComponent.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-package org.netbeans.feedreader;
-
-import org.netbeans.feedreader.nodes.RssNode;
-import java.awt.BorderLayout;
-import javax.swing.ActionMap;
-import org.netbeans.api.settings.ConvertAsProperties;
-import org.openide.awt.ActionID;
-import org.openide.awt.ActionReference;
-import org.openide.explorer.ExplorerManager;
-import org.openide.explorer.ExplorerUtils;
-import org.openide.explorer.view.BeanTreeView;
-import org.openide.loaders.DataObjectNotFoundException;
-import org.openide.util.Exceptions;
-import org.openide.util.ImageUtilities;
-import org.openide.util.NbBundle;
-import org.openide.windows.TopComponent;
-
-@ConvertAsProperties(dtd = "-//org.netbeans.feedreader//FeedTopComponent//EN", autostore = false)
-@TopComponent.Description(preferredID = "FeedTopComponent", iconBase="org/netbeans/feedreader/rss16.gif",
-persistenceType = TopComponent.PERSISTENCE_ALWAYS)
-@TopComponent.Registration(mode = "explorer", openAtStartup = true)
-@ActionID(category = "Window", id = "org.netbeans.feedreader.FeedTopComponent")
-@ActionReference(path = "Menu/Window", position=10)
-@TopComponent.OpenActionRegistration(displayName = "#CTL_FeedAction", preferredID = "FeedTopComponent")
-public final class FeedTopComponent extends TopComponent implements ExplorerManager.Provider {
- private final ExplorerManager manager = new ExplorerManager();
- private final BeanTreeView view = new BeanTreeView();
-
- private FeedTopComponent() {
- setName(NbBundle.getMessage(FeedTopComponent.class, "CTL_FeedTopComponent"));
- setToolTipText(NbBundle.getMessage(FeedTopComponent.class, "HINT_FeedTopComponent"));
- setIcon(ImageUtilities.loadImage("org/netbeans/feedreader/rss16.gif", true));
- setLayout(new BorderLayout());
- add(view, BorderLayout.CENTER);
- view.setRootVisible(true);
- try {
- manager.setRootContext(new RssNode.RootRssNode());
- } catch (DataObjectNotFoundException ex) {
- Exceptions.printStackTrace(ex);
- }
- ActionMap map = getActionMap();
- map.put("delete", ExplorerUtils.actionDelete(manager, true));
- associateLookup(ExplorerUtils.createLookup(manager, map));
- }
-
- void writeProperties(java.util.Properties p) {
- // better to version settings since initial version as advocated at
- // http://wiki.apidesign.org/wiki/PropertyFiles
- p.setProperty("version", "1.0");
- }
-
- void readProperties(java.util.Properties p) {
- String version = p.getProperty("version");
- }
-
- public ExplorerManager getExplorerManager() {
- return manager;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddFolderAction.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddFolderAction.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddFolderAction.java
deleted file mode 100644
index a25e71a..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddFolderAction.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.actions;
-
-import java.awt.event.ActionEvent;
-import java.io.IOException;
-import javax.swing.AbstractAction;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-import org.openide.loaders.DataFolder;
-import org.openide.util.Exceptions;
-import org.openide.util.NbBundle;
-
-/** An action for adding a folder to organize feeds into groups */
-public class AddFolderAction extends AbstractAction {
-
- private final DataFolder folder;
-
- public AddFolderAction(DataFolder df) {
- super(NbBundle.getMessage(AddFolderAction.class, "FN_addfolderbutton"));
- folder = df;
- }
-
- public void actionPerformed(ActionEvent ae) {
- NotifyDescriptor.InputLine nd = new NotifyDescriptor.InputLine(
- NbBundle.getMessage(AddFolderAction.class, "FN_askfolder_msg"),
- NbBundle.getMessage(AddFolderAction.class, "FN_askfolder_title"),
- NotifyDescriptor.OK_CANCEL_OPTION,
- NotifyDescriptor.PLAIN_MESSAGE);
-
- Object result = DialogDisplayer.getDefault().notify(nd);
-
- if (result.equals(NotifyDescriptor.OK_OPTION)) {
- final String folderString = nd.getInputText();
- try {
- DataFolder.create(folder, folderString);
- } catch (IOException ex) {
- Exceptions.printStackTrace(ex);
- }
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddRssAction.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddRssAction.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddRssAction.java
deleted file mode 100644
index adf3e43..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/AddRssAction.java
+++ /dev/null
@@ -1,118 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.actions;
-
-import java.awt.event.ActionEvent;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.ObjectOutputStream;
-import java.net.MalformedURLException;
-import java.net.URL;
-import javax.swing.AbstractAction;
-import org.netbeans.feedreader.Feed;
-import org.openide.DialogDisplayer;
-import org.openide.NotifyDescriptor;
-import org.openide.filesystems.FileLock;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.DataFolder;
-import org.openide.util.Exceptions;
-import org.openide.util.NbBundle;
-
-/** An action for adding a feed */
-public class AddRssAction extends AbstractAction {
-
- private final DataFolder folder;
-
- public AddRssAction(DataFolder df) {
- super(NbBundle.getMessage(AddRssAction.class, "FN_addbutton"));
- folder = df;
- }
-
- public void actionPerformed(ActionEvent ae) {
- NotifyDescriptor.InputLine nd = new NotifyDescriptor.InputLine(
- NbBundle.getMessage(AddRssAction.class, "FN_askurl_msg"),
- NbBundle.getMessage(AddRssAction.class, "FN_askurl_title"),
- NotifyDescriptor.OK_CANCEL_OPTION,
- NotifyDescriptor.PLAIN_MESSAGE);
-
- Object result = DialogDisplayer.getDefault().notify(nd);
-
- if (result.equals(NotifyDescriptor.OK_OPTION)) {
- String urlString = nd.getInputText();
- URL url;
- try {
- url = new URL(urlString);
- } catch (MalformedURLException e) {
- String message = NbBundle.getMessage(AddRssAction.class, "FN_askurl_err", urlString);
- Exceptions.attachLocalizedMessage(e, message);
- Exceptions.printStackTrace(e);
- return;
- }
- try {
- checkConnection(url);
- } catch (IOException e) {
- String message = NbBundle.getMessage(AddRssAction.class, "FN_cannotConnect_err", urlString);
- Exceptions.attachLocalizedMessage(e, message);
- Exceptions.printStackTrace(e);
- return;
- }
- Feed f = new Feed(url);
- FileObject fld = folder.getPrimaryFile();
- String baseName = "RssFeed";
- int ix = 1;
- while (fld.getFileObject(baseName + ix, "ser") != null) {
- ix++;
- }
- try {
- FileObject writeTo = fld.createData(baseName + ix, "ser");
- FileLock lock = writeTo.lock();
- try {
- ObjectOutputStream str = new ObjectOutputStream(writeTo.getOutputStream(lock));
- try {
- str.writeObject(f);
- } finally {
- str.close();
- }
- } finally {
- lock.releaseLock();
- }
- } catch (IOException ioe) {
- Exceptions.printStackTrace(ioe);
- }
- }
- }
-
- private static void checkConnection(final URL url) throws IOException {
- InputStream is = url.openStream();
- is.close();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/Bundle.properties b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/Bundle.properties
deleted file mode 100644
index dfde923..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/actions/Bundle.properties
+++ /dev/null
@@ -1,37 +0,0 @@
- # Copyright (c) 2010, Oracle. All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are met:
- #
- # * Redistributions of source code must retain the above copyright notice,
- # this list of conditions and the following disclaimer.
- #
- # * Redistributions in binary form must reproduce the above copyright notice,
- # this list of conditions and the following disclaimer in the documentation
- # and/or other materials provided with the distribution.
- #
- # * Neither the name of Oracle nor the names of its contributors
- # may be used to endorse or promote products derived from this software without
- # specific prior written permission.
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- # THE POSSIBILITY OF SUCH DAMAGE.
-
-FN_addbutton=Add
-FN_addfolderbutton=Add Folder
-FN_askurl_title=New Feed
-FN_askurl_msg=Enter the URL of an RSS/Atom Feed
-FN_askurl_err=Invalid URL: {0}
-FN_cannotConnect_err=Cannot connect to: {0} \n\n\
- Check that the given URL is valid and your Internet connection works.
-FN_askfolder_msg=Enter the folder name
-FN_askfolder_title=New Folder
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/layer.xml b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/layer.xml
deleted file mode 100644
index 3f49192..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/layer.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.2//EN" "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
-<!--
- Copyright (c) 2010, Oracle. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of Oracle nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- THE POSSIBILITY OF SUCH DAMAGE.
--->
-<filesystem>
- <folder name="Menu">
- <folder name="File">
- <file name="org-openide-actions-SaveAction.shadow_hidden"/>
- <file name="org-openide-actions-SaveAllAction.shadow_hidden"/>
- <file name="org-openide-actions-SaveAsAction.shadow_hidden"/>
- </folder>
- <folder name="View">
- <file name="org-netbeans-core-actions-HTMLViewAction.shadow_hidden"/>
- <file name="org-netbeans-core-actions-LogAction.shadow_hidden"/>
- </folder>
- </folder>
- <folder name="RssFeeds">
- <file name="sample.instance">
- <attr name="instanceCreate" methodvalue="org.netbeans.feedreader.Feed.getSample"/>
- </file>
- </folder>
- <folder name="Toolbars">
- <file name="Memory_hidden"/>
- <file name="UndoRedo_hidden"/>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/Bundle.properties b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/Bundle.properties
deleted file mode 100644
index 165816f..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/Bundle.properties
+++ /dev/null
@@ -1,29 +0,0 @@
- # Copyright (c) 2010, Oracle. All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are met:
- #
- # * Redistributions of source code must retain the above copyright notice,
- # this list of conditions and the following disclaimer.
- #
- # * Redistributions in binary form must reproduce the above copyright notice,
- # this list of conditions and the following disclaimer in the documentation
- # and/or other materials provided with the distribution.
- #
- # * Neither the name of Oracle nor the names of its contributors
- # may be used to endorse or promote products derived from this software without
- # specific prior written permission.
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- # THE POSSIBILITY OF SUCH DAMAGE.
-
-FN_title=RSS/Atom Feeds
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryBeanNode.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryBeanNode.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryBeanNode.java
deleted file mode 100644
index 2d5439e..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryBeanNode.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.nodes;
-
-import com.sun.syndication.feed.synd.SyndEntry;
-import java.beans.IntrospectionException;
-import javax.swing.Action;
-import org.openide.actions.OpenAction;
-import org.openide.nodes.BeanNode;
-import org.openide.nodes.FilterNode;
-import org.openide.util.actions.SystemAction;
-import org.openide.util.lookup.Lookups;
-
-/** Wrapping the children in a FilterNode */
-public class EntryBeanNode extends FilterNode {
-
- private final SyndEntry entry;
-
- public EntryBeanNode(SyndEntry entry) throws IntrospectionException {
- super(new BeanNode<SyndEntry>(entry), Children.LEAF,
- Lookups.fixed(entry, new EntryOpenCookie(entry)));
- this.entry = entry;
- }
-
- /** Using HtmlDisplayName ensures any HTML in RSS entry titles are properly handled, escaped, entities resolved, etc. */
- @Override
- public String getHtmlDisplayName() {
- return entry.getTitle();
- }
-
- /** Making a tooltip out of the entry's description */
- @Override
- public String getShortDescription() {
- StringBuilder sb = new StringBuilder();
- sb.append("Author: ").append(entry.getAuthor()).append("; ");
- if (entry.getPublishedDate() != null) {
- sb.append("Published: ").append(entry.getPublishedDate().toString());
- }
- return sb.toString();
- }
-
- /** Providing the Open action on a feed entry */
- @Override
- public Action[] getActions(boolean popup) {
- return new Action[]{SystemAction.get(OpenAction.class)};
- }
-
- @Override
- public Action getPreferredAction() {
- return getActions(false)[0];
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryOpenCookie.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryOpenCookie.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryOpenCookie.java
deleted file mode 100644
index e52500e..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/EntryOpenCookie.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.nodes;
-
-import com.sun.syndication.feed.synd.SyndEntry;
-import org.netbeans.feedreader.BrowserTopComponent;
-import org.openide.cookies.OpenCookie;
-
-/** Specifying what should happen when the user invokes the Open action */
-public class EntryOpenCookie implements OpenCookie {
-
- private final SyndEntry entry;
-
- EntryOpenCookie(SyndEntry entry) {
- this.entry = entry;
- }
-
- public void open() {
- BrowserTopComponent btc = BrowserTopComponent.getBrowserComponent(entry);
- btc.open();
- btc.requestActive();
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/FeedChildren.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/FeedChildren.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/FeedChildren.java
deleted file mode 100644
index df82b12..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/FeedChildren.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.nodes;
-
-import com.sun.syndication.feed.synd.SyndEntry;
-import com.sun.syndication.feed.synd.SyndFeed;
-import java.beans.IntrospectionException;
-import org.openide.nodes.Children;
-import org.openide.nodes.Node;
-import org.openide.util.NbCollections;
-
-/** Defining the children of a feed node */
-public class FeedChildren extends Children.Keys<SyndEntry> {
-
- private final SyndFeed feed;
-
- public FeedChildren(SyndFeed feed) {
- this.feed = feed;
- }
-
- @Override
- protected void addNotify() {
- setKeys(NbCollections.checkedListByCopy(feed.getEntries(), SyndEntry.class, true));
- }
-
- public Node[] createNodes(SyndEntry entry) {
- try {
- return new Node[]{new EntryBeanNode(entry)};
- } catch (IntrospectionException ex) {
- assert false : ex;
- return new Node[0];
- }
- }
-
-}
[07/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/OneFeedNode.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/OneFeedNode.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/OneFeedNode.java
deleted file mode 100644
index 37d75f6..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/OneFeedNode.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.nodes;
-
-import com.sun.syndication.feed.synd.SyndFeed;
-import java.awt.Image;
-import javax.swing.Action;
-import org.openide.actions.DeleteAction;
-import org.openide.nodes.FilterNode;
-import org.openide.nodes.Node;
-import org.openide.util.ImageUtilities;
-import org.openide.util.Lookup;
-import org.openide.util.actions.SystemAction;
-import org.openide.util.lookup.Lookups;
-import org.openide.util.lookup.ProxyLookup;
-
-/** Getting the feed node and wrapping it in a FilterNode */
-public class OneFeedNode extends FilterNode {
-
- OneFeedNode(Node feedFileNode, SyndFeed feed) {
- super(feedFileNode,
- new FeedChildren(feed),
- new ProxyLookup(new Lookup[]{
- Lookups.fixed(new Object[]{feed}),
- feedFileNode.getLookup()
- }));
- }
-
- @Override
- public String getDisplayName() {
- SyndFeed feed = getLookup().lookup(SyndFeed.class);
- return feed.getTitle();
- }
-
- @Override
- public Image getIcon(int type) {
- return ImageUtilities.loadImage("org/netbeans/feedreader/rss16.gif");
- }
-
- @Override
- public Image getOpenedIcon(int type) {
- return getIcon(type);
- }
-
- @Override
- public Action[] getActions(boolean context) {
- return new Action[]{SystemAction.get(DeleteAction.class)};
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssFolderChildren.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssFolderChildren.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssFolderChildren.java
deleted file mode 100644
index c69f51c..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssFolderChildren.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.nodes;
-
-import java.io.IOException;
-import org.netbeans.feedreader.Feed;
-import org.openide.cookies.InstanceCookie;
-import org.openide.filesystems.FileObject;
-import org.openide.loaders.InstanceDataObject;
-import org.openide.nodes.FilterNode;
-import org.openide.nodes.Node;
-import org.openide.util.Exceptions;
-import org.openide.util.Lookup;
-
-/** Getting the children of the root node */
-public class RssFolderChildren extends FilterNode.Children {
-
- RssFolderChildren(Node rssFolderNode) {
- super(rssFolderNode);
- }
-
- @Override
- protected Node[] createNodes(Node n) {
- FileObject fo = n.getLookup().lookup(FileObject.class);
- if (fo != null && fo.isFolder()) {
- return new Node[]{new RssNode(n)};
- } else {
- Feed feed = getFeed(fo.getLookup());
- if (feed != null) {
- try {
- return new Node[]{new OneFeedNode(n, feed.getSyndFeed())};
- } catch (IOException ioe) {
- Exceptions.printStackTrace(ioe);
- }
- }
- }
- // best effort
- return new Node[]{new FilterNode(n)};
- }
-
- /** Looking up a feed */
- private static Feed getFeed(Lookup lkp) {
- InstanceCookie ck = lkp.lookup(InstanceDataObject.class);
- if (ck == null) {
- throw new IllegalStateException("Bogus file in feeds folder: " +
- lkp.lookup(FileObject.class));
- }
- try {
- return (Feed) ck.instanceCreate();
- } catch (ClassNotFoundException ex) {
- Exceptions.printStackTrace(ex);
- } catch (IOException ex) {
- Exceptions.printStackTrace(ex);
- }
- return null;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssNode.java
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssNode.java b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssNode.java
deleted file mode 100644
index fdb346e..0000000
--- a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/nodes/RssNode.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2010, Oracle. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above copyright notice,
- * this list of conditions and the following disclaimer in the documentation
- * and/or other materials provided with the distribution.
- *
- * * Neither the name of Oracle nor the names of its contributors
- * may be used to endorse or promote products derived from this software without
- * specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-package org.netbeans.feedreader.nodes;
-
-import org.netbeans.feedreader.actions.AddFolderAction;
-import org.netbeans.feedreader.actions.AddRssAction;
-import javax.swing.Action;
-import org.openide.filesystems.FileUtil;
-import org.openide.loaders.DataFolder;
-import org.openide.loaders.DataObject;
-import org.openide.loaders.DataObjectNotFoundException;
-import org.openide.nodes.FilterNode;
-import org.openide.nodes.Node;
-import org.openide.util.NbBundle;
-
-public class RssNode extends FilterNode {
-
- /** Declaring the children of the root RSS node */
- public RssNode(Node folderNode) {
- super(folderNode, new RssFolderChildren(folderNode));
- }
-
- /** Declaring the Add Feed action and Add Folder action */
- @Override
- public Action[] getActions(boolean popup) {
- DataFolder df = getLookup().lookup(DataFolder.class);
- return new Action[] {
- new AddRssAction(df),
- new AddFolderAction(df)
- };
- }
-
- /** Getting the root node */
- public static class RootRssNode extends RssNode {
- public RootRssNode() throws DataObjectNotFoundException {
- super(DataObject.find(
- FileUtil.getConfigFile("RssFeeds")).getNodeDelegate());
- }
-
- @Override
- public String getDisplayName() {
- return NbBundle.getMessage(RssNode.class, "FN_title");
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/rss16.gif
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/rss16.gif b/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/rss16.gif
deleted file mode 100644
index a166c4c..0000000
Binary files a/apisupport.feedreader/feedreader-suite/FeedReader/src/org/netbeans/feedreader/rss16.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties b/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
deleted file mode 100644
index 8b01627..0000000
--- a/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties
+++ /dev/null
@@ -1,39 +0,0 @@
-
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-currentVersion=Feed Reader Application {0}
-#NOI18N
-SPLASH_HEIGHT=299
-#NOI18N
-SPLASH_WIDTH=398
-#NOI18N
-SplashProgressBarBounds=76,163,246,5
-#NOI18N
-SplashRunningTextBounds=77,148,321,12
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/frame48.gif
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/frame48.gif b/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/frame48.gif
deleted file mode 100644
index 65ace42..0000000
Binary files a/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/frame48.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif b/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif
deleted file mode 100644
index 09bebf3..0000000
Binary files a/apisupport.feedreader/feedreader-suite/branding/core/core.jar/org/netbeans/core/startup/splash.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/resources/layer.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/resources/layer.xml b/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/resources/layer.xml
deleted file mode 100644
index 2473a77..0000000
--- a/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/resources/layer.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE filesystem PUBLIC "-//NetBeans//DTD Filesystem 1.1//EN" "http://www.netbeans.org/dtds/filesystem-1_1.dtd">
-
-<!--
- Copyright (c) 2010, Oracle. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice,
- this list of conditions and the following disclaimer.
-
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
- * Neither the name of Oracle nor the names of its contributors
- may be used to endorse or promote products derived from this software without
- specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- THE POSSIBILITY OF SUCH DAMAGE.
--->
-
-<!--
-This is a ‘branding’ layer. It gets merged with the layer file it’s branding.
-In this case, it’s just hiding menu items and toolbars we don’t want.
--->
-<filesystem>
- <!-- hide unused toolbars -->
- <folder name="Toolbars">
- <folder name="File_hidden"/>
- <folder name="Edit_hidden"/>
- </folder>
- <folder name="Menu">
- <folder name="File">
- <file name="org-netbeans-core-actions-RefreshAllFilesystemsAction.instance_hidden"/>
- <file name="org-openide-actions-SaveAction.instance_hidden"/>
- <file name="org-openide-actions-SaveAllAction.instance_hidden"/>
- <file name="org-openide-actions-PageSetupAction.instance_hidden"/>
- <file name="org-openide-actions-PrintAction.instance_hidden"/>
- </folder>
- <folder name="Edit_hidden"/>
- <folder name="View">
- <file name="org-netbeans-core-actions-LogAction.instance_hidden"/>
- </folder>
- <folder name="GoTo_hidden"/>
- <folder name="Tools_hidden"/>
- </folder>
-</filesystem>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties b/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
deleted file mode 100644
index ff660cd..0000000
--- a/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
+++ /dev/null
@@ -1,31 +0,0 @@
-
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-CTL_MainWindow_Title=Feed Reader Application {0}
-CTL_MainWindow_Title_No_Project=Feed Reader Application {0}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties b/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties
deleted file mode 100644
index d5c7bfb..0000000
--- a/apisupport.feedreader/feedreader-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-LBL_ProductInformation=Feed Reader Application
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/build.xml b/apisupport.feedreader/feedreader-suite/build.xml
deleted file mode 100644
index 089abcd..0000000
--- a/apisupport.feedreader/feedreader-suite/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) 2007, 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="feedreader-suite" basedir=".">
- <description>Builds the module suite feedreader-suite.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/jdom/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/build.xml b/apisupport.feedreader/feedreader-suite/jdom/build.xml
deleted file mode 100644
index e1c3954..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/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) 2007, 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.jdom" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project org.jdom.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/jdom/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/manifest.mf b/apisupport.feedreader/feedreader-suite/jdom/manifest.mf
deleted file mode 100644
index 90ea408..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/manifest.mf
+++ /dev/null
@@ -1,5 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.jdom
-OpenIDE-Module-Localizing-Bundle: org/jdom/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.0
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/jdom/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/nbproject/build-impl.xml b/apisupport.feedreader/feedreader-suite/jdom/nbproject/build-impl.xml
deleted file mode 100644
index 1333e65..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/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.jdom-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.feedreader/feedreader-suite/jdom/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/nbproject/genfiles.properties b/apisupport.feedreader/feedreader-suite/jdom/nbproject/genfiles.properties
deleted file mode 100644
index 68d858c..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=71e37979
-build.xml.script.CRC32=d695947f
-build.xml.stylesheet.CRC32=a56c6a5b@2.67
-# 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=71e37979
-nbproject/build-impl.xml.script.CRC32=0b00ebcd
-nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.properties b/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.properties
deleted file mode 100644
index 4160481..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.properties
+++ /dev/null
@@ -1,40 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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
-license.file=release/modules/ext/jdom-1.0-license.txt
-jnlp.verify.excludes=modules/ext/jdom-1.0-license.txt
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.xml b/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.xml
deleted file mode 100644
index dd4cc73..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/nbproject/project.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) 2007, 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/2">
- <code-name-base>org.jdom</code-name-base>
- <suite-component/>
- <module-dependencies/>
- <public-packages>
- <package>org.jdom.xpath</package>
- <package>org.jdom.input</package>
- <package>org.jdom.adapters</package>
- <package>org.jdom.transform</package>
- <package>org.jdom.filter</package>
- <package>org.jdom</package>
- <package>org.jdom.output</package>
- </public-packages>
- <class-path-extension>
- <runtime-relative-path>ext/jdom-1.0.jar</runtime-relative-path>
- <binary-origin>../../external/jdom-1.0.jar</binary-origin>
- </class-path-extension>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/jdom/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/nbproject/suite.properties b/apisupport.feedreader/feedreader-suite/jdom/nbproject/suite.properties
deleted file mode 100644
index 3407645..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/nbproject/suite.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.feedreader/feedreader-suite/jdom/src/org/jdom/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/jdom/src/org/jdom/Bundle.properties b/apisupport.feedreader/feedreader-suite/jdom/src/org/jdom/Bundle.properties
deleted file mode 100644
index 2b1f9c4..0000000
--- a/apisupport.feedreader/feedreader-suite/jdom/src/org/jdom/Bundle.properties
+++ /dev/null
@@ -1,33 +0,0 @@
- # Copyright (c) 2010, Oracle. All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are met:
- #
- # * Redistributions of source code must retain the above copyright notice,
- # this list of conditions and the following disclaimer.
- #
- # * Redistributions in binary form must reproduce the above copyright notice,
- # this list of conditions and the following disclaimer in the documentation
- # and/or other materials provided with the distribution.
- #
- # * Neither the name of Oracle nor the names of its contributors
- # may be used to endorse or promote products derived from this software without
- # specific prior written permission.
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- # THE POSSIBILITY OF SUCH DAMAGE.
-
-OpenIDE-Module-Display-Category=Libraries
-OpenIDE-Module-Long-Description=\
- See http://www.jdom.org/ for more information.
-OpenIDE-Module-Name=JDOM Library
-OpenIDE-Module-Short-Description=Wrapper for JDOM library
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/nbproject/build-impl.xml b/apisupport.feedreader/feedreader-suite/nbproject/build-impl.xml
deleted file mode 100644
index 3a1b3a9..0000000
--- a/apisupport.feedreader/feedreader-suite/nbproject/build-impl.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT ***
-*** EDIT ../build.xml INSTEAD ***
--->
-<project name="feedreader-suite-impl" basedir=".." xmlns:sproject="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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/platform-private.properties"/>
- <property file="nbproject/platform.properties"/>
- <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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-suite-project/1">
- <attribute name="property"/>
- <attribute name="value"/>
- <sequential>
- <property name="@{property}" value="@{value}"/>
- </sequential>
- </macrodef>
- <property file="${user.properties.file}"/>
- <sproject:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir"/>
- <sproject:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir"/>
- <sproject:evalprops property="cluster.path.evaluated" value="${cluster.path}"/>
- <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>
- <ant antfile="nbproject/platform.xml"/>
- <fail message="Cannot find NetBeans build harness. ${line.separator}Check that nbplatform.${nbplatform.active}.netbeans.dest.dir and nbplatform.${nbplatform.active}.harness.dir are defined. ${line.separator}On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties ${line.separator}but for automated builds you should pass these properties to Ant explicitly. ${line.separator}You may instead download the harness and platform: -Dbootstrap.url=.../tasks.jar -Dautoupdate.catalog.url=.../updates.xml">
- <condition>
- <not>
- <available file="${harness.dir}/suite.xml"/>
- </not>
- </condition>
- </fail>
- <import file="${harness.dir}/suite.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/nbproject/genfiles.properties b/apisupport.feedreader/feedreader-suite/nbproject/genfiles.properties
deleted file mode 100644
index 4ed1b6f..0000000
--- a/apisupport.feedreader/feedreader-suite/nbproject/genfiles.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-build.xml.data.CRC32=a89c5057
-build.xml.script.CRC32=9a0e0f71
-build.xml.stylesheet.CRC32=eaf9f76a@2.67.1
-# 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=a89c5057
-nbproject/build-impl.xml.script.CRC32=c0d6309b
-nbproject/build-impl.xml.stylesheet.CRC32=0f381476@2.67.1
-nbproject/platform.xml.data.CRC32=a89c5057
-nbproject/platform.xml.script.CRC32=6dcbd131
-nbproject/platform.xml.stylesheet.CRC32=4e1f53d4@2.67.1
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/nbproject/platform.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/nbproject/platform.properties b/apisupport.feedreader/feedreader-suite/nbproject/platform.properties
deleted file mode 100644
index 7932060..0000000
--- a/apisupport.feedreader/feedreader-suite/nbproject/platform.properties
+++ /dev/null
@@ -1,87 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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=\
- net.java.html,\
- net.java.html.boot,\
- net.java.html.boot.fx,\
- net.java.html.boot.script,\
- net.java.html.geo,\
- net.java.html.json,\
- net.java.html.sound,\
- org.netbeans.api.htmlui,\
- org.netbeans.api.progress.compat8,\
- org.netbeans.api.search,\
- org.netbeans.api.visual,\
- org.netbeans.core.execution,\
- org.netbeans.core.io.ui,\
- org.netbeans.core.multitabs,\
- org.netbeans.core.multiview,\
- org.netbeans.core.netigso,\
- org.netbeans.core.osgi,\
- org.netbeans.core.output2,\
- org.netbeans.html.ko4j,\
- org.netbeans.libs.felix,\
- org.netbeans.libs.javafx,\
- org.netbeans.libs.jsr223,\
- org.netbeans.libs.osgi,\
- org.netbeans.modules.autoupdate.cli,\
- org.netbeans.modules.autoupdate.services,\
- org.netbeans.modules.autoupdate.ui,\
- org.netbeans.modules.core.kit,\
- org.netbeans.modules.editor.mimelookup.impl,\
- org.netbeans.modules.favorites,\
- org.netbeans.modules.javahelp,\
- org.netbeans.modules.masterfs,\
- org.netbeans.modules.masterfs.linux,\
- org.netbeans.modules.masterfs.macosx,\
- org.netbeans.modules.masterfs.nio2,\
- org.netbeans.modules.masterfs.ui,\
- org.netbeans.modules.masterfs.windows,\
- org.netbeans.modules.netbinox,\
- org.netbeans.modules.sendopts,\
- org.netbeans.modules.spi.actions,\
- org.netbeans.modules.templates,\
- org.objectweb.asm,\
- org.openide.compat,\
- org.openide.execution,\
- org.openide.execution.compat8,\
- org.openide.options,\
- org.openide.util.enumerations
-nbplatform.active=default
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/nbproject/platform.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/nbproject/platform.xml b/apisupport.feedreader/feedreader-suite/nbproject/platform.xml
deleted file mode 100644
index c425216..0000000
--- a/apisupport.feedreader/feedreader-suite/nbproject/platform.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2014, 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 name="platform" default="download" basedir="..">
- <condition property="download.required">
- <and>
- <not>
- <available file="${harness.dir}/suite.xml"/>
- </not>
- <isset property="bootstrap.url"/>
- <isset property="autoupdate.catalog.url"/>
- </and>
- </condition>
- <target name="download" if="download.required">
- <mkdir dir="${harness.dir}"/>
- <pathconvert pathsep="|" property="download.clusters">
- <mapper type="flatten"/>
- <path path="${cluster.path}"/>
- </pathconvert>
- <property name="disabled.modules" value=""/>
- <pathconvert property="module.includes" pathsep="">
- <mapper type="glob" from="${basedir}${file.separator}*" to="(?!^\Q*\E$)"/>
- <path>
- <filelist files="${disabled.modules}" dir="."/>
- </path>
- </pathconvert>
- <echo message="Downloading clusters ${download.clusters}"/>
- <property name="tasks.jar" location="${java.io.tmpdir}/tasks.jar"/>
- <get src="${bootstrap.url}" dest="${tasks.jar}" usetimestamp="true" verbose="true"/>
- <taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="${tasks.jar}"/>
- <autoupdate installdir="${nbplatform.active.dir}" updatecenter="${autoupdate.catalog.url}">
- <modules includes="${module.includes}.*" clusters="${download.clusters}"/>
- <modules includes="org[.]netbeans[.]modules[.]apisupport[.]harness" clusters="harness"/>
- </autoupdate>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/nbproject/project.properties b/apisupport.feedreader/feedreader-suite/nbproject/project.properties
deleted file mode 100644
index 1c0d865..0000000
--- a/apisupport.feedreader/feedreader-suite/nbproject/project.properties
+++ /dev/null
@@ -1,50 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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):
-app.icon=branding/core/core.jar/org/netbeans/core/startup/frame48.gif
-app.name=feedreader
-app.title=Feed Reader Application
-branding.token=${app.name}
-modules=\
- ${project.jdom}:\
- ${project.rome-fetcher}:\
- ${project.rome}:\
- ${project.FeedReader}
-project.FeedReader=FeedReader
-project.jdom=jdom
-project.rome=rome
-project.rome-fetcher=rome-fetcher
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/nbproject/project.xml b/apisupport.feedreader/feedreader-suite/nbproject/project.xml
deleted file mode 100644
index 71c56d7..0000000
--- a/apisupport.feedreader/feedreader-suite/nbproject/project.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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.suite</type>
- <configuration>
- <data xmlns="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <name>feedreader-suite</name>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome-fetcher/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/build.xml b/apisupport.feedreader/feedreader-suite/rome-fetcher/build.xml
deleted file mode 100644
index ddaad2a..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/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) 2007, 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="com.sun.syndication.fetcher" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project com.sun.syndication.fetcher.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome-fetcher/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/manifest.mf b/apisupport.feedreader/feedreader-suite/rome-fetcher/manifest.mf
deleted file mode 100644
index 13b24d4..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/manifest.mf
+++ /dev/null
@@ -1,5 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: com.sun.syndication.fetcher
-OpenIDE-Module-Localizing-Bundle: com/sun/syndication/fetcher/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.0
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/build-impl.xml b/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/build-impl.xml
deleted file mode 100644
index 18a3d50..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/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="com.sun.syndication.fetcher-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.feedreader/feedreader-suite/rome-fetcher/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/genfiles.properties b/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/genfiles.properties
deleted file mode 100644
index 8d273d5..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/genfiles.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-build.xml.data.CRC32=386895bf
-build.xml.script.CRC32=e827f94d
-build.xml.stylesheet.CRC32=a56c6a5b@2.67
-# 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=386895bf
-nbproject/build-impl.xml.script.CRC32=18683bdb
-nbproject/build-impl.xml.stylesheet.CRC32=238281d1@2.67
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.properties b/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.properties
deleted file mode 100644
index 74583a2..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.properties
+++ /dev/null
@@ -1,40 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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
-license.file=release/modules/ext/rome-fetcher-0.6-license.txt
-jnlp.verify.excludes=modules/ext/rome-fetcher-0.6-license.txt
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.xml b/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.xml
deleted file mode 100644
index 9f71f78..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/project.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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/2">
- <code-name-base>com.sun.syndication.fetcher</code-name-base>
- <suite-component/>
- <module-dependencies>
- <dependency>
- <code-name-base>com.sun.syndication</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>1.0</specification-version>
- </run-dependency>
- </dependency>
- </module-dependencies>
- <public-packages>
- <package>com.sun.syndication.fetcher.samples</package>
- <package>com.sun.syndication.fetcher.impl</package>
- <package>com.sun.syndication.fetcher</package>
- </public-packages>
- <class-path-extension>
- <runtime-relative-path>ext/rome-fetcher-0.6.jar</runtime-relative-path>
- <binary-origin>../../external/rome-fetcher-0.6.jar</binary-origin>
- </class-path-extension>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/suite.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/suite.properties b/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/suite.properties
deleted file mode 100644
index 3407645..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/nbproject/suite.properties
+++ /dev/null
@@ -1,38 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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.feedreader/feedreader-suite/rome-fetcher/src/com/sun/syndication/fetcher/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome-fetcher/src/com/sun/syndication/fetcher/Bundle.properties b/apisupport.feedreader/feedreader-suite/rome-fetcher/src/com/sun/syndication/fetcher/Bundle.properties
deleted file mode 100644
index 360dc43..0000000
--- a/apisupport.feedreader/feedreader-suite/rome-fetcher/src/com/sun/syndication/fetcher/Bundle.properties
+++ /dev/null
@@ -1,33 +0,0 @@
- # Copyright (c) 2010, Oracle. All rights reserved.
- #
- # Redistribution and use in source and binary forms, with or without
- # modification, are permitted provided that the following conditions are met:
- #
- # * Redistributions of source code must retain the above copyright notice,
- # this list of conditions and the following disclaimer.
- #
- # * Redistributions in binary form must reproduce the above copyright notice,
- # this list of conditions and the following disclaimer in the documentation
- # and/or other materials provided with the distribution.
- #
- # * Neither the name of Oracle nor the names of its contributors
- # may be used to endorse or promote products derived from this software without
- # specific prior written permission.
- #
- # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
- # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
- # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- # THE POSSIBILITY OF SUCH DAMAGE.
-
-OpenIDE-Module-Display-Category=Libraries
-OpenIDE-Module-Long-Description=\
- See https://rome.dev.java.net/ for more details.
-OpenIDE-Module-Name=ROME Fetcher Library
-OpenIDE-Module-Short-Description=Wrapper for ROME Fetcher Library
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/build.xml b/apisupport.feedreader/feedreader-suite/rome/build.xml
deleted file mode 100644
index b7b39de..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/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) 2007, 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="com.sun.syndication" default="netbeans" basedir=".">
- <description>Builds, tests, and runs the project com.sun.syndication.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.feedreader/feedreader-suite/rome/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.feedreader/feedreader-suite/rome/manifest.mf b/apisupport.feedreader/feedreader-suite/rome/manifest.mf
deleted file mode 100644
index 44c0288..0000000
--- a/apisupport.feedreader/feedreader-suite/rome/manifest.mf
+++ /dev/null
@@ -1,5 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: com.sun.syndication
-OpenIDE-Module-Localizing-Bundle: com/sun/syndication/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.0
-
[02/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
Posted by ge...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties b/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
deleted file mode 100644
index 5a157f0..0000000
--- a/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-CTL_MainWindow_Title=Paint Application {0}
-CTL_MainWindow_Title_No_Project=Paint Application {0}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties b/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties
deleted file mode 100644
index 6cfa247..0000000
--- a/apisupport.paintapp/PaintApp-suite/branding/modules/org-netbeans-core.jar/org/netbeans/core/ui/Bundle.properties
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (c) 2010, Oracle. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-# * Redistributions of source code must retain the above copyright notice,
-# this list of conditions and the following disclaimer.
-#
-# * Redistributions in binary form must reproduce the above copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-#
-# * Neither the name of Oracle nor the names of its contributors
-# may be used to endorse or promote products derived from this software without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-# THE POSSIBILITY OF SUCH DAMAGE.
-
-LBL_ProductInformation=Paint Application
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/build.xml b/apisupport.paintapp/PaintApp-suite/build.xml
deleted file mode 100644
index c2fe68d..0000000
--- a/apisupport.paintapp/PaintApp-suite/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) 2007, 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="PaintApp" basedir=".">
- <description>Builds the module suite PaintApp.</description>
- <import file="nbproject/build-impl.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/nbproject/build-impl.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/nbproject/build-impl.xml b/apisupport.paintapp/PaintApp-suite/nbproject/build-impl.xml
deleted file mode 100644
index 0276e44..0000000
--- a/apisupport.paintapp/PaintApp-suite/nbproject/build-impl.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-*** GENERATED FROM project.xml - DO NOT EDIT ***
-*** EDIT ../build.xml INSTEAD ***
--->
-<project name="PaintApp-impl" basedir=".." xmlns:sproject="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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/platform-private.properties"/>
- <property file="nbproject/platform.properties"/>
- <macrodef name="property" uri="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <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-suite-project/1">
- <attribute name="property"/>
- <attribute name="value"/>
- <sequential>
- <property name="@{property}" value="@{value}"/>
- </sequential>
- </macrodef>
- <property file="${user.properties.file}"/>
- <sproject:property name="harness.dir" value="nbplatform.${nbplatform.active}.harness.dir"/>
- <sproject:property name="nbplatform.active.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir"/>
- <sproject:evalprops property="cluster.path.evaluated" value="${cluster.path}"/>
- <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>
- <ant antfile="nbproject/platform.xml"/>
- <fail message="Cannot find NetBeans build harness. ${line.separator}Check that nbplatform.${nbplatform.active}.netbeans.dest.dir and nbplatform.${nbplatform.active}.harness.dir are defined. ${line.separator}On a developer machine these are normally defined in ${user.properties.file}=${netbeans.user}/build.properties ${line.separator}but for automated builds you should pass these properties to Ant explicitly. ${line.separator}You may instead download the harness and platform: -Dbootstrap.url=.../tasks.jar -Dautoupdate.catalog.url=.../updates.xml">
- <condition>
- <not>
- <available file="${harness.dir}/suite.xml"/>
- </not>
- </condition>
- </fail>
- <import file="${harness.dir}/suite.xml"/>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/nbproject/genfiles.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/nbproject/genfiles.properties b/apisupport.paintapp/PaintApp-suite/nbproject/genfiles.properties
deleted file mode 100644
index b22f632..0000000
--- a/apisupport.paintapp/PaintApp-suite/nbproject/genfiles.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-build.xml.data.CRC32=3404ca48
-build.xml.script.CRC32=5eaedf68
-build.xml.stylesheet.CRC32=eaf9f76a@2.49
-# 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=3404ca48
-nbproject/build-impl.xml.script.CRC32=abfb91a2
-nbproject/build-impl.xml.stylesheet.CRC32=0f381476@2.49
-nbproject/platform.xml.data.CRC32=3404ca48
-nbproject/platform.xml.script.CRC32=6dcbd131
-nbproject/platform.xml.stylesheet.CRC32=4e1f53d4@2.67.1
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/nbproject/platform.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/nbproject/platform.properties b/apisupport.paintapp/PaintApp-suite/nbproject/platform.properties
deleted file mode 100644
index 5dd7987..0000000
--- a/apisupport.paintapp/PaintApp-suite/nbproject/platform.properties
+++ /dev/null
@@ -1,101 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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=\
- net.java.html,\
- net.java.html.boot,\
- net.java.html.boot.fx,\
- net.java.html.boot.script,\
- net.java.html.geo,\
- net.java.html.json,\
- net.java.html.sound,\
- org.jdesktop.layout,\
- org.netbeans.api.htmlui,\
- org.netbeans.api.progress.compat8,\
- org.netbeans.api.search,\
- org.netbeans.api.visual,\
- org.netbeans.core.execution,\
- org.netbeans.core.io.ui,\
- org.netbeans.core.multitabs,\
- org.netbeans.core.multiview,\
- org.netbeans.core.nativeaccess,\
- org.netbeans.core.netigso,\
- org.netbeans.core.network,\
- org.netbeans.core.osgi,\
- org.netbeans.core.output2,\
- org.netbeans.core.ui,\
- org.netbeans.html.ko4j,\
- org.netbeans.lib.uihandler,\
- org.netbeans.libs.felix,\
- org.netbeans.libs.javafx,\
- org.netbeans.libs.jna,\
- org.netbeans.libs.jna.platform,\
- org.netbeans.libs.jsr223,\
- org.netbeans.libs.osgi,\
- org.netbeans.libs.testng,\
- org.netbeans.modules.autoupdate.cli,\
- org.netbeans.modules.autoupdate.services,\
- org.netbeans.modules.autoupdate.ui,\
- org.netbeans.modules.core.kit,\
- org.netbeans.modules.editor.mimelookup.impl,\
- org.netbeans.modules.favorites,\
- org.netbeans.modules.javahelp,\
- org.netbeans.modules.keyring.fallback,\
- org.netbeans.modules.keyring.impl,\
- org.netbeans.modules.masterfs,\
- org.netbeans.modules.masterfs.linux,\
- org.netbeans.modules.masterfs.macosx,\
- org.netbeans.modules.masterfs.nio2,\
- org.netbeans.modules.masterfs.ui,\
- org.netbeans.modules.masterfs.windows,\
- org.netbeans.modules.netbinox,\
- org.netbeans.modules.options.keymap,\
- org.netbeans.modules.print,\
- org.netbeans.modules.sendopts,\
- org.netbeans.modules.spi.actions,\
- org.netbeans.modules.templates,\
- org.netbeans.modules.uihandler,\
- org.objectweb.asm,\
- org.openide.compat,\
- org.openide.execution,\
- org.openide.execution.compat8,\
- org.openide.options,\
- org.openide.util.enumerations
-nbplatform.active=default
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/nbproject/platform.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/nbproject/platform.xml b/apisupport.paintapp/PaintApp-suite/nbproject/platform.xml
deleted file mode 100644
index bd2f50d..0000000
--- a/apisupport.paintapp/PaintApp-suite/nbproject/platform.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2011, 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 name="platform" default="download" basedir="..">
- <condition property="download.required">
- <and>
- <not>
- <available file="${harness.dir}/suite.xml"/>
- </not>
- <isset property="bootstrap.url"/>
- <isset property="autoupdate.catalog.url"/>
- </and>
- </condition>
- <target name="download" if="download.required">
- <mkdir dir="${harness.dir}"/>
- <pathconvert pathsep="|" property="download.clusters">
- <mapper type="flatten"/>
- <path path="${cluster.path}"/>
- </pathconvert>
- <property name="disabled.modules" value=""/>
- <pathconvert property="module.includes" pathsep="">
- <mapper type="glob" from="${basedir}${file.separator}*" to="(?!^\Q*\E$)"/>
- <path>
- <filelist files="${disabled.modules}" dir="."/>
- </path>
- </pathconvert>
- <echo message="Downloading clusters ${download.clusters}"/>
- <property name="tasks.jar" location="${java.io.tmpdir}/tasks.jar"/>
- <get src="${bootstrap.url}" dest="${tasks.jar}" usetimestamp="true" verbose="true"/>
- <taskdef name="autoupdate" classname="org.netbeans.nbbuild.AutoUpdate" classpath="${tasks.jar}"/>
- <autoupdate installdir="${nbplatform.active.dir}" updatecenter="${autoupdate.catalog.url}">
- <modules includes="${module.includes}.*" clusters="${download.clusters}"/>
- <modules includes="org[.]netbeans[.]modules[.]apisupport[.]harness" clusters="harness"/>
- </autoupdate>
- </target>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/nbproject/project.properties b/apisupport.paintapp/PaintApp-suite/nbproject/project.properties
deleted file mode 100644
index 6d110b0..0000000
--- a/apisupport.paintapp/PaintApp-suite/nbproject/project.properties
+++ /dev/null
@@ -1,46 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2007, 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):
-app.icon=branding/core/core.jar/org/netbeans/core/startup/frame48.gif
-app.name=paintit
-app.title=Paint Application
-branding.token=${app.name}
-modules=\
- ${project.org.netbeans.swing.colorchooser}:\
- ${project.org.netbeans.paint}
-project.org.netbeans.paint=Paint
-project.org.netbeans.swing.colorchooser=ColorChooser
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/PaintApp-suite/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/PaintApp-suite/nbproject/project.xml b/apisupport.paintapp/PaintApp-suite/nbproject/project.xml
deleted file mode 100644
index b6cbf87..0000000
--- a/apisupport.paintapp/PaintApp-suite/nbproject/project.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2007, 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.suite</type>
- <configuration>
- <data xmlns="http://www.netbeans.org/ns/nb-module-suite-project/1">
- <name>PaintApp</name>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/build.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/build.xml b/apisupport.paintapp/build.xml
deleted file mode 100644
index 83e905d..0000000
--- a/apisupport.paintapp/build.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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-2006 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.
--->
-<project basedir="." default="netbeans" name="apisupport.paintapp">
- <import file="../nbbuild/templates/projectized.xml"/>
-
- <target name="jar" depends="zip-project,projectized-common.jar"/>
-
- <target name="zip-project" depends="init">
- <property name="examples" location="${build.classes.dir}/org/netbeans/modules/apisupport/paintapp/"/>
- <mkdir dir="${examples}"/>
- <zip basedir="PaintApp-suite" destfile="${examples}/PaintAppProject.zip">
- <exclude name="**/build/"/>
- <exclude name="**/dist/"/>
- <exclude name="**/nbproject/private/"/>
- </zip>
- </target>
-
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/l10n.list
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/l10n.list b/apisupport.paintapp/l10n.list
deleted file mode 100644
index 8884945..0000000
--- a/apisupport.paintapp/l10n.list
+++ /dev/null
@@ -1,6 +0,0 @@
-# apisupport/samples/PaintApp-sample-ui
-read global
-${l10n-module}/src/**/*.gif
-${l10n-module}/src/**/*.html
-${l10n-module}/src/**/*.png
-${l10n-module}/src/**/Bundle.properties
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/manifest.mf
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/manifest.mf b/apisupport.paintapp/manifest.mf
deleted file mode 100644
index abc6b44..0000000
--- a/apisupport.paintapp/manifest.mf
+++ /dev/null
@@ -1,6 +0,0 @@
-Manifest-Version: 1.0
-OpenIDE-Module: org.netbeans.modules.apisupport.paintapp
-OpenIDE-Module-Layer: org/netbeans/modules/apisupport/paintapp/layer.xml
-OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/apisupport/paintapp/Bundle.properties
-OpenIDE-Module-Specification-Version: 1.32
-AutoUpdate-Show-In-Client: false
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/nbproject/project.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/nbproject/project.properties b/apisupport.paintapp/nbproject/project.properties
deleted file mode 100644
index ad4ecad..0000000
--- a/apisupport.paintapp/nbproject/project.properties
+++ /dev/null
@@ -1,46 +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-2006 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.
-
-javac.compilerargs=-Xlint -Xlint:-serial
-javac.source=1.6
-bootclasspath.prepend=${tools.jar}
-test-unit-sys-prop.test.nbroot=${nb_all}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/nbproject/project.xml
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/nbproject/project.xml b/apisupport.paintapp/nbproject/project.xml
deleted file mode 100644
index d7ec68a..0000000
--- a/apisupport.paintapp/nbproject/project.xml
+++ /dev/null
@@ -1,193 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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-2006 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.
--->
-<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.apisupport.paintapp</code-name-base>
- <module-dependencies>
- <dependency>
- <code-name-base>org.netbeans.modules.apisupport.ant</code-name-base>
- <run-dependency>
- <specification-version>2.42</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.9</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectuiapi</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.78</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.netbeans.modules.projectuiapi.base</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <release-version>1</release-version>
- <specification-version>1.78</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.awt</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>6.7</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.dialogs</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.8</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.filesystems</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>9.0</specification-version>
- </run-dependency>
- </dependency>
- <dependency>
- <code-name-base>org.openide.loaders</code-name-base>
- <build-prerequisite/>
- <compile-dependency/>
- <run-dependency>
- <specification-version>7.61</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</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</specification-version>
- </run-dependency>
- </dependency>
- </module-dependencies>
- <test-dependencies>
- <test-type>
- <name>unit</name>
- <test-dependency>
- <code-name-base>org.netbeans.libs.junit4</code-name-base>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.ant</code-name-base>
- <compile-dependency/>
- <test/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.paintapp</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.apisupport.project</code-name-base>
- <recursive/>
- <compile-dependency/>
- <test/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.masterfs</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.nbjunit</code-name-base>
- <recursive/>
- <compile-dependency/>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.parsing.nb</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.projectapi.nb</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.netbeans.modules.projectui</code-name-base>
- </test-dependency>
- <test-dependency>
- <code-name-base>org.openide.util.lookup</code-name-base>
- <test/>
- </test-dependency>
- </test-type>
- </test-dependencies>
- <public-packages/>
- </data>
- </configuration>
-</project>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/Bundle.properties
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/Bundle.properties b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/Bundle.properties
deleted file mode 100644
index e9406e0..0000000
--- a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/Bundle.properties
+++ /dev/null
@@ -1,59 +0,0 @@
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-#
-# Copyright (c) 2005, 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):
-LBL_CreateProjectStep=Create a new Paint Application project
-OpenIDE-Module-Display-Category=Developing NetBeans
-OpenIDE-Module-Long-Description=\
- Sample paint application based on the NetBeans platform.
-OpenIDE-Module-Name=PaintApp Platform Sample
-OpenIDE-Module-Short-Description=Sample NetBeans platform application.
-Templates/Project/Samples/ApiSupport/PaintAppProject.zip=Paint Application
-
-# {0} - step #
-# {1} - step count
-PaintAppWizardIterator.name.format={0} of {1}
-PaintAppPanelVisual.project_name=Project &Name:
-#NOI18N
-PaintAppPanelVisual.default_prj_name=PaintApp
-PaintAppPanelVisual.folder_exists=Project Folder already exists and is not empty.
-PaintAppPanelVisual.folder_creation_error=Project Folder cannot be created.
-PaintAppPanelVisual.invalid_path=Project Folder is not a valid path.
-PaintAppPanelVisual.invalid_folder_name=Project Name is not a valid folder name.
-PaintAppPanelVisual.select_project_location=Select Project Location
-PaintAppPanelVisual.project_folder=Project &Folder:
-PaintAppPanelVisual.browse=Br&owse...
-PaintAppPanelVisual.project_location=Project &Location:
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppDescription.html
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppDescription.html b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppDescription.html
deleted file mode 100644
index f1d0a3f..0000000
--- a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppDescription.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<!--
-DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
-
-Copyright (c) 2005, 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):
--->
-
-<html>
-<head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
-</head>
- <body>
- Illustrates how to use the NetBeans Platform to create your own
- application. See the PaintApp Tutorial for details.
- </body>
-</html>
-
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.form
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.form b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.form
deleted file mode 100644
index 1c37cd5..0000000
--- a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.form
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-
-<Form version="1.3" maxVersion="1.3" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
- <AuxValues>
- <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="false"/>
- <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 min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="projectNameLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="projectLocationLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- <Component id="createdFolderLabel" alignment="0" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Group type="103" groupAlignment="0" attributes="0">
- <Component id="projectNameTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- <Component id="projectLocationTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- <Component id="createdFolderTextField" alignment="1" pref="191" max="32767" attributes="0"/>
- </Group>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- <Component id="browseButton" min="-2" max="-2" attributes="0"/>
- <EmptySpace min="-2" max="-2" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- <DimensionLayout dim="1">
- <Group type="103" groupAlignment="0" attributes="0">
- <Group type="102" attributes="0">
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="projectNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="projectNameTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="projectLocationLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="projectLocationTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="browseButton" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace max="-2" attributes="0"/>
- <Group type="103" groupAlignment="3" attributes="0">
- <Component id="createdFolderLabel" alignment="3" min="-2" max="-2" attributes="0"/>
- <Component id="createdFolderTextField" alignment="3" min="-2" max="-2" attributes="0"/>
- </Group>
- <EmptySpace pref="213" max="32767" attributes="0"/>
- </Group>
- </Group>
- </DimensionLayout>
- </Layout>
- <SubComponents>
- <Component class="javax.swing.JLabel" name="projectNameLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="projectNameTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/paintapp/Bundle.properties" key="PaintAppPanelVisual.project_name" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- </Component>
- <Component class="javax.swing.JTextField" name="projectNameTextField">
- </Component>
- <Component class="javax.swing.JLabel" name="projectLocationLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="projectLocationTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/paintapp/Bundle.properties" key="PaintAppPanelVisual.project_location" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <AuxValues>
- <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
- </AuxValues>
- </Component>
- <Component class="javax.swing.JTextField" name="projectLocationTextField">
- </Component>
- <Component class="javax.swing.JButton" name="browseButton">
- <Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/paintapp/Bundle.properties" key="PaintAppPanelVisual.browse" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="browseButtonActionPerformed"/>
- </Events>
- </Component>
- <Component class="javax.swing.JLabel" name="createdFolderLabel">
- <Properties>
- <Property name="labelFor" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
- <ComponentRef name="createdFolderTextField"/>
- </Property>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/netbeans/modules/apisupport/paintapp/Bundle.properties" key="PaintAppPanelVisual.project_folder" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
- </Property>
- </Properties>
- </Component>
- <Component class="javax.swing.JTextField" name="createdFolderTextField">
- <Properties>
- <Property name="editable" type="boolean" value="false"/>
- </Properties>
- </Component>
- </SubComponents>
-</Form>
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.java
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.java b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.java
deleted file mode 100644
index 860b45a..0000000
--- a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppPanelVisual.java
+++ /dev/null
@@ -1,302 +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-2006 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.apisupport.paintapp;
-
-import java.io.File;
-import javax.swing.JFileChooser;
-import javax.swing.JPanel;
-import javax.swing.event.DocumentEvent;
-import javax.swing.event.DocumentListener;
-import javax.swing.text.Document;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.filesystems.FileUtil;
-
-public class PaintAppPanelVisual extends JPanel implements DocumentListener {
-
- private static final String WIZARD_PANEL_ERROR_MESSAGE = WizardDescriptor.PROP_ERROR_MESSAGE; // NOI18N
-
- public static final String PROP_PROJECT_NAME = "projectName"; // NOI18N
-
- private PaintAppWizardPanel panel;
-
- /** Creates new form PanelProjectLocationVisual */
- public PaintAppPanelVisual(PaintAppWizardPanel panel) {
- initComponents();
- this.panel = panel;
- // Register listener on the textFields to make the automatic updates
- projectNameTextField.getDocument().addDocumentListener(this);
- projectLocationTextField.getDocument().addDocumentListener(this);
- }
-
-
- public String getProjectName() {
- return this.projectNameTextField.getText();
- }
-
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
- private void initComponents() {
-
- projectNameLabel = new javax.swing.JLabel();
- projectNameTextField = new javax.swing.JTextField();
- projectLocationLabel = new javax.swing.JLabel();
- projectLocationTextField = new javax.swing.JTextField();
- browseButton = new javax.swing.JButton();
- createdFolderLabel = new javax.swing.JLabel();
- createdFolderTextField = new javax.swing.JTextField();
-
- projectNameLabel.setLabelFor(projectNameTextField);
- org.openide.awt.Mnemonics.setLocalizedText(projectNameLabel, org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.project_name")); // NOI18N
-
- projectLocationLabel.setLabelFor(projectLocationTextField);
- org.openide.awt.Mnemonics.setLocalizedText(projectLocationLabel, org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.project_location")); // NOI18N
-
- org.openide.awt.Mnemonics.setLocalizedText(browseButton, org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.browse")); // NOI18N
- browseButton.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- browseButtonActionPerformed(evt);
- }
- });
-
- createdFolderLabel.setLabelFor(createdFolderTextField);
- org.openide.awt.Mnemonics.setLocalizedText(createdFolderLabel, org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.project_folder")); // NOI18N
-
- createdFolderTextField.setEditable(false);
-
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
- this.setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(projectNameLabel)
- .addComponent(projectLocationLabel)
- .addComponent(createdFolderLabel))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(projectNameTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
- .addComponent(projectLocationTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE)
- .addComponent(createdFolderTextField, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 191, Short.MAX_VALUE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(browseButton)
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(projectNameLabel)
- .addComponent(projectNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(projectLocationLabel)
- .addComponent(projectLocationTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(browseButton))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
- .addComponent(createdFolderLabel)
- .addComponent(createdFolderTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(213, Short.MAX_VALUE))
- );
- }// </editor-fold>//GEN-END:initComponents
-
- private void browseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseButtonActionPerformed
- JFileChooser chooser = new JFileChooser();
- FileUtil.preventFileChooserSymlinkTraversal(chooser, null);
- chooser.setDialogTitle(org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.select_project_location"));
- chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
- String path = this.projectLocationTextField.getText();
- if (path.length() > 0) {
- File f = new File(path);
- if (f.exists()) {
- chooser.setSelectedFile(f);
- }
- }
- if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(this)) {
- File projectDir = chooser.getSelectedFile();
- projectLocationTextField.setText(FileUtil.normalizeFile(projectDir).getAbsolutePath());
- }
- panel.fireChangeEvent();
-
- }//GEN-LAST:event_browseButtonActionPerformed
-
-
- // Variables declaration - do not modify//GEN-BEGIN:variables
- private javax.swing.JButton browseButton;
- private javax.swing.JLabel createdFolderLabel;
- private javax.swing.JTextField createdFolderTextField;
- private javax.swing.JLabel projectLocationLabel;
- private javax.swing.JTextField projectLocationTextField;
- private javax.swing.JLabel projectNameLabel;
- private javax.swing.JTextField projectNameTextField;
- // End of variables declaration//GEN-END:variables
-
- public void addNotify() {
- super.addNotify();
- //same problem as in 31086, initial focus on Cancel button
- projectNameTextField.requestFocus();
- }
-
- boolean valid(WizardDescriptor wizardDescriptor) {
-
- if (projectNameTextField.getText().length() == 0) {
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.invalid_folder_name"));
- return false; // Display name not specified
- }
- File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
- if (!f.isDirectory()) {
- String message = org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.invalid_path");
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, message);
- return false;
- }
- final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
-
- File projLoc = destFolder;
- while (projLoc != null && !projLoc.exists()) {
- projLoc = projLoc.getParentFile();
- }
- if (projLoc == null || !projLoc.canWrite()) {
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.folder_creation_error"));
- return false;
- }
-
- if (FileUtil.toFileObject(projLoc) == null) {
- String message = org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.invalid_path");
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, message);
- return false;
- }
-
- File[] kids = destFolder.listFiles();
- if (destFolder.exists() && kids != null && kids.length > 0) {
- // Folder exists and is not empty
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE,
- org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.folder_exists"));
- return false;
- }
- wizardDescriptor.putProperty(WIZARD_PANEL_ERROR_MESSAGE, "");
- return true;
- }
-
- void store(WizardDescriptor d) {
- String name = projectNameTextField.getText().trim();
- String folder = createdFolderTextField.getText().trim();
-
- d.putProperty("projdir", new File(folder)); // NOI18N
- d.putProperty("name", name); // NOI18N
- }
-
- void read(WizardDescriptor settings) {
- File projectLocation = (File) settings.getProperty("projdir"); // NOI18N
- if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
- projectLocation = ProjectChooser.getProjectsFolder();
- } else {
- projectLocation = projectLocation.getParentFile();
- }
- this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
-
- String projectName = (String) settings.getProperty("name"); // NOI18N
- if(projectName == null) {
- projectName = org.openide.util.NbBundle.getMessage(PaintAppPanelVisual.class, "PaintAppPanelVisual.default_prj_name");
- }
- this.projectNameTextField.setText(projectName);
- this.projectNameTextField.selectAll();
- }
-
- void validate(WizardDescriptor d) throws WizardValidationException {
- // nothing to validate
- }
-
- // Implementation of DocumentListener --------------------------------------
-
- public void changedUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- public void insertUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- public void removeUpdate(DocumentEvent e) {
- updateTexts(e);
- if (this.projectNameTextField.getDocument() == e.getDocument()) {
- firePropertyChange(PROP_PROJECT_NAME,null,this.projectNameTextField.getText());
- }
- }
-
- /** Handles changes in the Project name and project directory, */
- private void updateTexts(DocumentEvent e) {
-
- Document doc = e.getDocument();
-
- if (doc == projectNameTextField.getDocument() || doc == projectLocationTextField.getDocument()) {
- // Change in the project name
-
- String projectName = projectNameTextField.getText();
- String projectFolder = projectLocationTextField.getText();
-
- //if (projectFolder.trim().length() == 0 || projectFolder.equals(oldName)) {
- createdFolderTextField.setText(projectFolder + File.separatorChar + projectName);
- //}
-
- }
- panel.fireChangeEvent(); // Notify that the panel changed
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardIterator.java
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardIterator.java b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardIterator.java
deleted file mode 100644
index 15c409d..0000000
--- a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardIterator.java
+++ /dev/null
@@ -1,209 +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-2006 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.apisupport.paintapp;
-
-import java.awt.Component;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.util.Enumeration;
-import java.util.LinkedHashSet;
-import java.util.NoSuchElementException;
-import java.util.Set;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipInputStream;
-import javax.swing.JComponent;
-import javax.swing.event.ChangeListener;
-import org.netbeans.api.project.ProjectManager;
-import org.netbeans.spi.project.ui.support.ProjectChooser;
-import org.netbeans.spi.project.ui.templates.support.Templates;
-import org.openide.WizardDescriptor;
-import org.openide.filesystems.FileObject;
-import org.openide.filesystems.FileUtil;
-import org.openide.util.NbBundle;
-
-public class PaintAppWizardIterator implements WizardDescriptor.InstantiatingIterator {
-
- private static final long serialVersionUID = 1L;
-
- private transient int index;
- private transient WizardDescriptor.Panel[] panels;
- private transient WizardDescriptor wiz;
-
- public PaintAppWizardIterator() {}
-
- public static PaintAppWizardIterator createIterator() {
- return new PaintAppWizardIterator();
- }
-
- private WizardDescriptor.Panel[] createPanels() {
- return new WizardDescriptor.Panel[] {
- new PaintAppWizardPanel(),
- };
- }
-
- private String[] createSteps() {
- return new String[] {
- NbBundle.getMessage(PaintAppWizardIterator.class, "LBL_CreateProjectStep")
- };
- }
-
- public Set/*<FileObject>*/ instantiate() throws IOException {
- Set resultSet = new LinkedHashSet();
- File dirF = FileUtil.normalizeFile((File) wiz.getProperty("projdir")); // NOI18N
- dirF.mkdirs();
-
- FileObject template = Templates.getTemplate(wiz);
- FileObject dir = FileUtil.toFileObject(dirF);
- unZipFile(template.getInputStream(), dir);
-
- // Always open top dir as a project:
- resultSet.add(dir);
- // Look for nested projects to open as well:
- Enumeration e = dir.getFolders(true);
- while (e.hasMoreElements()) {
- FileObject subfolder = (FileObject) e.nextElement();
- if (ProjectManager.getDefault().isProject(subfolder)) {
- resultSet.add(subfolder);
- }
- }
-
- File parent = dirF.getParentFile();
- if (parent != null && parent.exists()) {
- ProjectChooser.setProjectsFolder(parent);
- }
-
- return resultSet;
- }
-
- public void initialize(WizardDescriptor wiz) {
- this.wiz = wiz;
- index = 0;
- panels = createPanels();
- // Make sure list of steps is accurate.
- String[] steps = createSteps();
- for (int i = 0; i < panels.length; i++) {
- Component c = panels[i].getComponent();
- if (steps[i] == null) {
- // Default step name to component name of panel.
- // Mainly useful for getting the name of the target
- // chooser to appear in the list of steps.
- steps[i] = c.getName();
- }
- if (c instanceof JComponent) { // assume Swing components
- JComponent jc = (JComponent) c;
- // Step #.
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, new Integer(i)); // NOI18N
- // Step name (actually the whole list for reference).
- jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps); // NOI18N
- }
- }
- }
-
- public void uninitialize(WizardDescriptor wiz) {
- this.wiz.putProperty("projdir",null); // NOI18N
- this.wiz.putProperty("name",null); // NOI18N
- this.wiz = null;
- panels = null;
- }
-
- public String name() {
- return NbBundle.getMessage(PaintAppWizardIterator.class, "PaintAppWizardIterator.name.format",
- new Object[] {new Integer(index + 1), new Integer(panels.length)});
- }
-
- public boolean hasNext() {
- return index < panels.length - 1;
- }
-
- public boolean hasPrevious() {
- return index > 0;
- }
-
- public void nextPanel() {
- if (!hasNext()) {
- throw new NoSuchElementException();
- }
- index++;
- }
-
- public void previousPanel() {
- if (!hasPrevious()) {
- throw new NoSuchElementException();
- }
- index--;
- }
-
- public WizardDescriptor.Panel current() {
- return panels[index];
- }
-
- // If nothing unusual changes in the middle of the wizard, simply:
- public final void addChangeListener(ChangeListener l) {}
- public final void removeChangeListener(ChangeListener l) {}
-
- private static void unZipFile(InputStream source, FileObject projectRoot) throws IOException {
- try {
- ZipInputStream str = new ZipInputStream(source);
- ZipEntry entry;
- while ((entry = str.getNextEntry()) != null) {
- if (entry.isDirectory()) {
- FileUtil.createFolder(projectRoot, entry.getName());
- } else {
- FileObject fo = FileUtil.createData(projectRoot, entry.getName());
- OutputStream out = fo.getOutputStream();
- try {
- FileUtil.copy(str, out);
- } finally {
- out.close();
- }
- }
- }
- } finally {
- source.close();
- }
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-netbeans/blob/b7aa832e/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardPanel.java
----------------------------------------------------------------------
diff --git a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardPanel.java b/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardPanel.java
deleted file mode 100644
index 17d4b1a..0000000
--- a/apisupport.paintapp/src/org/netbeans/modules/apisupport/paintapp/PaintAppWizardPanel.java
+++ /dev/null
@@ -1,132 +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-2006 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.apisupport.paintapp;
-
-import java.awt.Component;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Set;
-import javax.swing.event.ChangeEvent;
-import javax.swing.event.ChangeListener;
-import org.openide.WizardDescriptor;
-import org.openide.WizardValidationException;
-import org.openide.util.HelpCtx;
-import org.openide.util.NbBundle;
-
-/**
- * Panel just asking for basic info.
- */
-public class PaintAppWizardPanel implements WizardDescriptor.Panel,
- WizardDescriptor.ValidatingPanel, WizardDescriptor.FinishablePanel {
-
- private WizardDescriptor wizardDescriptor;
- private PaintAppPanelVisual component;
-
- /** Creates a new instance of templateWizardPanel */
- public PaintAppWizardPanel() {
- }
-
- public Component getComponent() {
- if (component == null) {
- component = new PaintAppPanelVisual(this);
- component.setName(NbBundle.getMessage(PaintAppWizardPanel.class, "LBL_CreateProjectStep"));
- }
- return component;
- }
-
- public HelpCtx getHelp() {
- return null;
- }
-
- public boolean isValid() {
- getComponent();
- return component.valid(wizardDescriptor);
- }
-
- private final Set/*<ChangeListener>*/ listeners = new HashSet(1);
- public final void addChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.add(l);
- }
- }
- public final void removeChangeListener(ChangeListener l) {
- synchronized (listeners) {
- listeners.remove(l);
- }
- }
- protected final void fireChangeEvent() {
- Iterator it;
- synchronized (listeners) {
- it = new HashSet(listeners).iterator();
- }
- ChangeEvent ev = new ChangeEvent(this);
- while (it.hasNext()) {
- ((ChangeListener) it.next()).stateChanged(ev);
- }
- }
-
- public void readSettings(Object settings) {
- wizardDescriptor = (WizardDescriptor) settings;
- component.read(wizardDescriptor);
- wizardDescriptor.putProperty("NewProjectWizard_Title", //NOI18N
- NbBundle.getMessage(PaintAppWizardPanel.class,
- "Templates/Project/Samples/ApiSupport/PaintAppProject.zip")); //NOI18N
- }
-
- public void storeSettings(Object settings) {
- WizardDescriptor d = (WizardDescriptor) settings;
- component.store(d);
- d.putProperty("NewProjectWizard_Title", null); //NOI18N
- }
-
- public boolean isFinishPanel() {
- return true;
- }
-
- public void validate() throws WizardValidationException {
- getComponent();
- component.validate(wizardDescriptor);
- }
-
-}