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:26 UTC
[08/13] incubator-netbeans git commit: [NETBEANS-64] Remove NetBeans
Platform Samples
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];
- }
- }
-
-}