sync with latest plugin code
authorJason Hu <jia-cheng.hu@intel.com>
Wed, 2 Oct 2013 07:31:18 +0000 (15:31 +0800)
committerJason Hu <jia-cheng.hu@intel.com>
Wed, 2 Oct 2013 07:31:18 +0000 (15:31 +0800)
18 files changed:
org.tizen.web.simulator.feature/Apache-v2.0.html [new file with mode: 0644]
org.tizen.web.simulator.feature/build.properties
org.tizen.web.simulator.feature/feature.xml
org.tizen.web.simulator/META-INF/MANIFEST.MF
org.tizen.web.simulator/about.html [new file with mode: 0644]
org.tizen.web.simulator/about_files/LICENSE-2.0.htm [new file with mode: 0644]
org.tizen.web.simulator/bin/.gitignore [new file with mode: 0644]
org.tizen.web.simulator/bin/org/tizen/web/simulator/Simulator.class
org.tizen.web.simulator/build.properties
org.tizen.web.simulator/src/org/tizen/web/simulator/Messages.java
org.tizen.web.simulator/src/org/tizen/web/simulator/Simulator.java
org.tizen.web.simulator/src/org/tizen/web/simulator/launch/Constants.java
org.tizen.web.simulator/src/org/tizen/web/simulator/launch/LaunchMessages.java
org.tizen.web.simulator/src/org/tizen/web/simulator/launch/SimulatorMainTab.java
org.tizen.web.simulator/src/org/tizen/web/simulator/messages.properties
org.tizen.web.simulator/src/org/tizen/web/simulator/preferences/PreferenceInitializer.java
org.tizen.web.simulator/src/org/tizen/web/simulator/preferences/Settings.java
org.tizen.web.simulator/src/org/tizen/web/simulator/preferences/WorkbenchPreferencePage.java

diff --git a/org.tizen.web.simulator.feature/Apache-v2.0.html b/org.tizen.web.simulator.feature/Apache-v2.0.html
new file mode 100644 (file)
index 0000000..f7ca656
--- /dev/null
@@ -0,0 +1,191 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <title>Apache License, Version 2.0</title>
+
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <meta property="og:image" content="http://www.apache.org/images/asf_logo.gif" />
+
+    <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css">
+    <link rel="stylesheet" type="text/css" media="screen" href="/css/code.css">
+
+    <script type="text/javascript" src="/js/jquery.js"></script>
+    <script type="text/javascript" src="/js/apache_boot.js"></script>
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file to you under the Apache License, Version 2.0 (the &quot;License&quot;); 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 &quot;AS IS&quot; 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. -->
+  </head>
+
+  <body>
+    <div id="page" class="container_16">
+      <div id="header" class="grid_8">
+        <h1>The Apache Software Foundation</h1>
+        <h2>Apache License, Version 2.0</h2>
+      </div>
+
+      <div class="clear"></div>
+      <div id="content" class="grid_16"><div class="section-content"><p>Apache License<br></br>Version 2.0, January 2004<br></br>
+<a href="http://www.apache.org/licenses/">http://www.apache.org/licenses/</a> </p>
+<p>TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION</p>
+<p><strong><a name="definitions">1. Definitions</a></strong>.</p>
+<p>"License" shall mean the terms and conditions for use, reproduction, and
+distribution as defined by Sections 1 through 9 of this document.</p>
+<p>"Licensor" shall mean the copyright owner or entity authorized by the
+copyright owner that is granting the License.</p>
+<p>"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.</p>
+<p>"You" (or "Your") shall mean an individual or Legal Entity exercising
+permissions granted by this License.</p>
+<p>"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.</p>
+<p>"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.</p>
+<p>"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).</p>
+<p>"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.</p>
+<p>"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."</p>
+<p>"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.</p>
+<p><strong><a name="copyright">2. Grant of Copyright License</a></strong>. 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.</p>
+<p><strong><a name="patent">3. Grant of Patent License</a></strong>. 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.</p>
+<p><strong><a name="redistribution">4. Redistribution</a></strong>. 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:</p>
+<ol>
+<li>
+<p>You must give any other recipients of the Work or Derivative Works a
+copy of this License; and</p>
+</li>
+<li>
+<p>You must cause any modified files to carry prominent notices stating
+that You changed the files; and</p>
+</li>
+<li>
+<p>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</p>
+</li>
+<li>
+<p>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.</p>
+</li>
+</ol>
+<p><strong><a name="contributions">5. Submission of Contributions</a></strong>. 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.</p>
+<p><strong><a name="trademarks">6. Trademarks</a></strong>. 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.</p>
+<p><strong><a name="no-warranty">7. Disclaimer of Warranty</a></strong>. 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.</p>
+<p><strong><a name="no-liability">8. Limitation of Liability</a></strong>. 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.</p>
+<p><strong><a name="additional">9. Accepting Warranty or Additional Liability</a></strong>.
+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.</p>
+<p>END OF TERMS AND CONDITIONS</p>
+
+    <div class="clear"></div>
+    
+    </div>
+    <div id="copyright" class="container_16">
+      <p>Copyright &#169; 2011 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
+    </div>
+  </body>
+</html>
index 64f93a9..f89f9cf 100644 (file)
@@ -1 +1,2 @@
-bin.includes = feature.xml
+bin.includes = feature.xml,\
+               Apache-v2.0.html
index e0c0d5c..2777905 100644 (file)
    </description>
 
    <copyright>
-      Copyright (c) 2010-2011, Samsung Electronics Co., LTD. All rights reserved.
+      Copyright (c) 2013 Samsung Electronics Co., Ltd. All rights reserved.
    </copyright>
 
-   <license url="http://www.example.com/license">
-      [Enter License Description here.]
-   </license>
-
    <plugin
          id="org.tizen.web.simulator"
          download-size="0"
          install-size="0"
          version="0.0.0"/>
 
+   <plugin
+         id="org.tizen.web.simulator.help"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"/>
+
 </feature>
index 8e1459e..222aa88 100644 (file)
@@ -27,6 +27,5 @@ Bundle-Vendor: %Bundle-Vendor
 Import-Package: org.eclipse.debug.core,
  org.eclipse.debug.core.model,
  org.eclipse.debug.ui,
- org.tizen.web.common,
  org.tizen.common.gom.launch,
  org.tizen.common.gom.smartlaunch
diff --git a/org.tizen.web.simulator/about.html b/org.tizen.web.simulator/about.html
new file mode 100644 (file)
index 0000000..fd86251
--- /dev/null
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>September, 2013</p>
+<h3>Tizen SDK</h3>
+
+<p><a href="https://developer.tizen.org/" target="_blank">Tizen SDK</a> 
+is a set of Eclipse plug-ins that helps programmers to develop applications for 
+the mobile platform.</p>
+
+<h3>License</h3>
+
+<p>See <a href="about_files/LICENSE-2.0.htm">Apache License, Version 2.0</a>.</p>
+
+<h3>Third Party Content</h3>
+
+<p>The Content includes items that have been sourced from third parties as set out below. If you did not
+receive this Content directly from the Eclipse Foundation, the following is provided for informational
+purposes only, and you should look to the Redistributor's license for terms and conditions of use.</p>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/org.tizen.web.simulator/about_files/LICENSE-2.0.htm b/org.tizen.web.simulator/about_files/LICENSE-2.0.htm
new file mode 100644 (file)
index 0000000..f7ca656
--- /dev/null
@@ -0,0 +1,191 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html lang="en">
+  <head>
+    <title>Apache License, Version 2.0</title>
+
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+    <meta property="og:image" content="http://www.apache.org/images/asf_logo.gif" />
+
+    <link rel="stylesheet" type="text/css" media="screen" href="/css/style.css">
+    <link rel="stylesheet" type="text/css" media="screen" href="/css/code.css">
+
+    <script type="text/javascript" src="/js/jquery.js"></script>
+    <script type="text/javascript" src="/js/apache_boot.js"></script>
+
+    
+
+    
+    <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.  See the NOTICE file distributed with this work for additional information regarding copyright ownership.  The ASF licenses this file to you under the Apache License, Version 2.0 (the &quot;License&quot;); 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 &quot;AS IS&quot; 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. -->
+  </head>
+
+  <body>
+    <div id="page" class="container_16">
+      <div id="header" class="grid_8">
+        <h1>The Apache Software Foundation</h1>
+        <h2>Apache License, Version 2.0</h2>
+      </div>
+
+      <div class="clear"></div>
+      <div id="content" class="grid_16"><div class="section-content"><p>Apache License<br></br>Version 2.0, January 2004<br></br>
+<a href="http://www.apache.org/licenses/">http://www.apache.org/licenses/</a> </p>
+<p>TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION</p>
+<p><strong><a name="definitions">1. Definitions</a></strong>.</p>
+<p>"License" shall mean the terms and conditions for use, reproduction, and
+distribution as defined by Sections 1 through 9 of this document.</p>
+<p>"Licensor" shall mean the copyright owner or entity authorized by the
+copyright owner that is granting the License.</p>
+<p>"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.</p>
+<p>"You" (or "Your") shall mean an individual or Legal Entity exercising
+permissions granted by this License.</p>
+<p>"Source" form shall mean the preferred form for making modifications,
+including but not limited to software source code, documentation source,
+and configuration files.</p>
+<p>"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.</p>
+<p>"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).</p>
+<p>"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.</p>
+<p>"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."</p>
+<p>"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.</p>
+<p><strong><a name="copyright">2. Grant of Copyright License</a></strong>. 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.</p>
+<p><strong><a name="patent">3. Grant of Patent License</a></strong>. 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.</p>
+<p><strong><a name="redistribution">4. Redistribution</a></strong>. 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:</p>
+<ol>
+<li>
+<p>You must give any other recipients of the Work or Derivative Works a
+copy of this License; and</p>
+</li>
+<li>
+<p>You must cause any modified files to carry prominent notices stating
+that You changed the files; and</p>
+</li>
+<li>
+<p>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</p>
+</li>
+<li>
+<p>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.</p>
+</li>
+</ol>
+<p><strong><a name="contributions">5. Submission of Contributions</a></strong>. 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.</p>
+<p><strong><a name="trademarks">6. Trademarks</a></strong>. 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.</p>
+<p><strong><a name="no-warranty">7. Disclaimer of Warranty</a></strong>. 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.</p>
+<p><strong><a name="no-liability">8. Limitation of Liability</a></strong>. 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.</p>
+<p><strong><a name="additional">9. Accepting Warranty or Additional Liability</a></strong>.
+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.</p>
+<p>END OF TERMS AND CONDITIONS</p>
+
+    <div class="clear"></div>
+    
+    </div>
+    <div id="copyright" class="container_16">
+      <p>Copyright &#169; 2011 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/>Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
+    </div>
+  </body>
+</html>
diff --git a/org.tizen.web.simulator/bin/.gitignore b/org.tizen.web.simulator/bin/.gitignore
new file mode 100644 (file)
index 0000000..571ee51
--- /dev/null
@@ -0,0 +1 @@
+/org
index 0665e14..e576ef8 100644 (file)
Binary files a/org.tizen.web.simulator/bin/org/tizen/web/simulator/Simulator.class and b/org.tizen.web.simulator/bin/org/tizen/web/simulator/Simulator.class differ
index 6752594..61f59d4 100644 (file)
@@ -7,7 +7,9 @@ bin.includes = OSGI-INF/,\
                plugin.xml,\
                icons/,\
                profile/stub,\
-               .
+               .,\
+               about.html,\
+               about_files/
 src.includes = README.md,\
                LICENSE,\
                bin/,\
index 946f1df..4b6c7cd 100644 (file)
@@ -20,12 +20,9 @@ import org.eclipse.osgi.util.NLS;
 
 public class Messages extends NLS {
        private static final String BUNDLE_NAME = "org.tizen.web.simulator.messages"; //$NON-NLS-1$
-       public static String Chrome_excutable;
        public static String Chrome_Settings;
        public static String Override_chrome_settings;
        public static String EightSpacesIndent;
-       public static String Extra_parameters;
-       public static String Profile_data_location;
        public static String Internal;
        public static String Launch_in_app_mode;
        public static String msgErrConfigurationFile;
index cff935d..6d3a251 100644 (file)
@@ -44,7 +44,8 @@ import org.tizen.common.util.DialogUtil;
 import org.tizen.web.common.ChromeLauncher;
 import org.tizen.web.common.ChromeLauncher.TYPE;
 import org.tizen.web.common.WebCommonActivator;
-import org.tizen.web.project.configuration.WidgetConfigurator;
+import org.tizen.web.project.configuration.ConfiguratorFactory;
+import org.tizen.web.project.configuration.IW3CConfigurator;
 import org.tizen.web.simulator.preferences.Settings;
 
 
@@ -89,7 +90,7 @@ public class Simulator {
 
         IPreferenceStore store = Activator.getDefault().getPreferenceStore();
 
-        String chromeExecutable = store.getString(Settings.CHROME_EXECUTABLE);
+        String chromeExecutable = WebCommonActivator.getChromeExceutePath();
         boolean overrideChromeSettings = store.getBoolean(Settings.OVERRIDE_CHROME_SETTINGS);
 
         String[] options = null;
@@ -258,10 +259,10 @@ public class Simulator {
     public static IFile getContentFile(IProject prj) {
         IFile indexhtml_file = null;
         if (prj == null || !checkTizenNature(prj)) return null;
-        WidgetConfigurator tmpConfigurator = null;
+        IW3CConfigurator tmpConfigurator = null;
         try {
-            tmpConfigurator = new WidgetConfigurator(prj);
-            String indexhtml_path = tmpConfigurator.getContent();
+            tmpConfigurator = ConfiguratorFactory.unmarshalWidgetConfiguration(prj);
+            String indexhtml_path = tmpConfigurator.getContentSrc();
             if (null != indexhtml_path) {
                 indexhtml_file = prj.getFile(indexhtml_path);
             } else {
index fe59c42..97ee1e8 100644 (file)
@@ -21,5 +21,5 @@ import org.tizen.web.common.WebConstant;
 public class Constants {
        public static final String EMPTY_STRING = ""; //$NON-NLS-1$
        public static final String ATTR_PROJECT_NAME = WebConstant.ATTR_PROJECT_NAME;
-    public static final String ATTR_LIVE_EDITING = "liveediting";
+       public static final String ATTR_LIVE_EDITING = "liveediting";
 }
index 2f8d9da..b8baa2b 100644 (file)
@@ -23,13 +23,13 @@ import org.eclipse.osgi.util.NLS;
  */
 public class LaunchMessages extends NLS {
 
-    public static String ENABLE_LIVE_EDITING;
     public static String MAINTAB;
        public static String PROJECT_NAME;
        public static String SimulatorMainTab_TITLE;
        public static String SimulatorMainTab_MESSAGE; 
        public static String PROJECT_NOT_SPECIFIED;
        public static String PROJECT_MUST_BE_OPENED;
+       public static String ENABLE_LIVE_EDITING;
 
        static {
                NLS.initializeMessages(LaunchMessages.class.getName(), LaunchMessages.class);
index 14f62e9..5ec0312 100644 (file)
@@ -175,7 +175,8 @@ public class SimulatorMainTab extends AbstractLaunchConfigurationTab {
                                        }\r
                                }\r
                        }\r
-                       enableLiveEditing = config.getAttribute( ATTR_LIVE_EDITING, false );\r
+                       enableLiveEditing = config.getAttribute( ATTR_LIVE_EDITING\r
+                                                               , org.tizen.web.browser.Activator.isEnabledLiveEditing() );\r
                } catch (CoreException ce) {\r
 \r
                }\r
index 9b878ec..66af9b6 100644 (file)
@@ -4,15 +4,12 @@ msgErrFileMissing=%s is missing in the plugin. Reinstall the plugin or contact t
 msgErrFileMissing2=%s doesn't exist in the plugin.
 msgErrURLConversion=The LocationURI can not be converted to the URL.
 msgErrInvalidSimulator=The specified external simulator is invalid.
-msgErrLaunchFailed=Google Chrome could not be found (%s). \n\nPlease install Google Chrome and specify the Google Chrome program location in Window->Preferences under "Tizen SDK/Web/Simulator".
+msgErrLaunchFailed=Google Chrome could not be found (%s). \n\nPlease install Google Chrome and specify the Google Chrome program location in Window->Preferences under "Tizen SDK/Web/Chrome".
 msgErrSimulatorFailed=Tizen Web Simulator could not be found (%s). \n\nPlease install Tizen Web Simulator and specify the program location in Window->Preferences under "Tizen SDK/Web/Simulator".
 msgErrProfileWritableDirectory=Profile data location should be an existing writable directory.
 msgErrProfileLengthExceeded=Profile data location should be shorter than %d characters.
 msgPreferencePageDescription=General settings for the Tizen Web Simulator:
 
-Chrome_excutable=&Google Chrome location:
-Extra_parameters=&Extra parameters:
-Profile_data_location=&Profile data location:
 Chrome_Settings=Google Chrome Settings
 Internal=&Internal:  Use the simulator included with the Tizen SDK.
 Launch_in_app_mode=&Launch the simulator in Google Chrome application mode
index 88bbc1f..e48e486 100644 (file)
 
 package org.tizen.web.simulator.preferences;
 
-import java.io.File;
 import java.io.IOException;
 
-import org.eclipse.core.runtime.Platform;
 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
 import org.eclipse.jface.preference.IPreferenceStore;
 import org.tizen.common.core.application.InstallPathConfig;
@@ -28,14 +26,6 @@ import org.tizen.web.simulator.Simulator;
 
 public class PreferenceInitializer extends AbstractPreferenceInitializer {
 
-    private static final String ENV_USERPROFILE = "USERPROFILE";
-    private static final String ENV_LOCALAPPDATA = "LOCALAPPDATA";
-    //private static final String WIN_VER_6 = "6";
-    //private static final String OS_VERSION = "os.version";
-    private static final String CHROME_LINUX = "/opt/google/chrome/google-chrome";
-    private static final String CHROME_WIN = "\\Google\\Chrome\\Application\\chrome.exe";
-    private static final String CHROME_MACOS = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
-    
        private static final String PROFILE_PATH_DEFAULT = "/profile/";
     public static final String[] EXTRA_PARAM_DEFAULT = {"--allow-file-access-from-files"
                                                             , "--disable-web-security"
@@ -51,51 +41,6 @@ public class PreferenceInitializer extends AbstractPreferenceInitializer {
        public static void reinitializeDefaultPreferences(){
                IPreferenceStore store = Activator.getDefault().getPreferenceStore();
 
-          //the process of finding Chrome is according to the start script of WebSimulatorAIO
-        String os = Platform.getOS();
-        String chrome;
-        if (os.equals(Platform.OS_MACOSX)) {
-            chrome = CHROME_MACOS;
-        } else if (os.equals(Platform.OS_WIN32)) {
-            // Default Chrome installed location on Windows OS :
-            // 1. Chrome version > 24.0.1312.56 (64 bit) : %ProgramFiles(X86)%\\Google\\Chrome\\Application\\chrome.exe
-            // 2. Chrome version > 24.0.1312.56 (32 bit) : %ProgramFiles%\\Google\\Chrome\\Application\\chrome.exe
-            // 3. Chrome version < 24.0.1312.56 (all windows except XP) : System.getenv(ENV_LOCALAPPDATA)\\Google\\Chrome\\Application\\chrome.exe
-            // 4. Chrome version < 24.0.1312.56 (XP) :System.getenv(ENV_USERPROFILE) + File.separator + "Local Settings" + File.separator + "Application Data"\\Google\\Chrome\\Application\\chrome.exe
-            //String chromeDir;
-            File f;
-            int i;
-            String[] chromeDirArray = {System.getenv("ProgramFiles(X86)"), 
-                    System.getenv("ProgramFiles"),
-                    System.getenv(ENV_LOCALAPPDATA),
-                    System.getenv(ENV_USERPROFILE) + File.separator + "Local Settings" + File.separator + "Application Data"};
-            for(i=0; i< chromeDirArray.length; i++) {
-                f = new File(chromeDirArray[i] + CHROME_WIN);
-                if (f.exists()) {
-                    break;
-                }
-            }
-            if (i < chromeDirArray.length) {
-                chrome = chromeDirArray[i] + CHROME_WIN;
-            } else {
-                if (System.getenv("ProgramFiles(X86)").length() > 0 ) {
-                    chrome = chromeDirArray[0] + CHROME_WIN;
-                } else {
-                    chrome = chromeDirArray[1] + CHROME_WIN;
-                }
-            }
-            /*
-            if (System.getProperty(OS_VERSION).startsWith(WIN_VER_6))
-                chromeDir = System.getenv(ENV_LOCALAPPDATA);
-            else
-                // XP does not have LOCALAPPDATA environment variable
-                chromeDir = System.getenv(ENV_USERPROFILE) + File.separator + "Local Settings" + File.separator + "Application Data";
-            chrome = chromeDir + CHROME_WIN;
-            */
-        } else {
-            chrome = CHROME_LINUX;
-        }
-
                StringBuffer simulatorPath = new StringBuffer();
                simulatorPath.append(InstallPathConfig.getSDKPath());
                simulatorPath.append("/tools/websimulator/web/index.html");
@@ -105,9 +50,8 @@ public class PreferenceInitializer extends AbstractPreferenceInitializer {
         for (String param : EXTRA_PARAM_DEFAULT) {
             extraParams.append(param);
             extraParams.append(" ");
-        }
+            }
 
-        store.setDefault(Settings.CHROME_EXECUTABLE, chrome);
                store.setDefault(Settings.OVERRIDE_CHROME_SETTINGS, true);
                store.setDefault(Settings.EXTRA_PARAM, extraParams.toString());
                store.setDefault(Settings.USE_INTERNAL_SIMULATOR, Settings.FALSE);
index c87b4d0..6a96921 100644 (file)
@@ -17,7 +17,6 @@
 package org.tizen.web.simulator.preferences;
 
 public class Settings {
-    public static final String CHROME_EXECUTABLE = "CHROME_EXECUTABLE"; //$NON-NLS-1$
        public static final String EXTRA_PARAM  = "EXTRA_PARAM"; //$NON-NLS-1$ //$NON-NLS-2$
        public static final String USE_INTERNAL_SIMULATOR = "USE_INTERNAL_SIMULATOR"; //$NON-NLS-1$ //$NON-NLS-2$
        public static final String SIMULATOR_PATH = "SIMULATOR_PATH"; //$NON-NLS-1$ //$NON-NLS-2$
index e169670..72cdea4 100644 (file)
@@ -23,10 +23,14 @@ import org.eclipse.jface.preference.DirectoryFieldEditor;
 import org.eclipse.jface.preference.FieldEditor;
 import org.eclipse.jface.preference.FieldEditorPreferencePage;
 import org.eclipse.jface.preference.FileFieldEditor;
+import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.preference.StringFieldEditor;
 import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Control;
 import org.eclipse.swt.widgets.Group;
@@ -39,6 +43,10 @@ import org.tizen.web.simulator.Simulator;
 public class WorkbenchPreferencePage extends FieldEditorPreferencePage implements
                IWorkbenchPreferencePage {
        
+    private StringFieldEditor extraParamsEditor;
+    private DirectoryFieldEditor profileLocationEditor;
+    private Composite grpChromePage;
+
     public static final String REGEX_SPACES = "\\s+"; //$NON-NLS-1$ //$NON-NLS-2$
 
     public WorkbenchPreferencePage () {
@@ -76,41 +84,91 @@ public class WorkbenchPreferencePage extends FieldEditorPreferencePage implement
 
        private void createChromeSettingsContents(Composite parent) {
         Group grpChrome = new Group(parent, SWT.NONE);
-        grpChrome.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
         grpChrome.setLayout(new GridLayout());
+        grpChrome.setLayoutData(new GridData(SWT.FILL, -1, true, false));
         grpChrome.setText(Messages.Chrome_Settings);
-        addField(new FileFieldEditor(Settings.CHROME_EXECUTABLE, Messages.Chrome_excutable, new FieldEditorComposite(grpChrome)){
-            @Override
-            //The executable may be in the path, so we don't check it's existence. 
-            protected boolean checkState() {
-                clearErrorMessage();
-                return true;
-            }
-        });
-        addField(new StringFieldEditor(Settings.EXTRA_PARAM,Messages.Extra_parameters, new FieldEditorComposite(grpChrome)));
-        addField(new DirectoryFieldEditor(Settings.PROFILE_PATH, Messages.Profile_data_location, new FieldEditorComposite(grpChrome)){
+
+
+        GridLayout grpChromePageGl = new GridLayout();
+        grpChromePageGl.numColumns = 3;
+        grpChromePageGl.makeColumnsEqualWidth = false;
+
+        GridData grpChromePageGd = new GridData(SWT.FILL, -1, true, false);
+        grpChromePageGd.widthHint = 600;
+
+        grpChromePage = new Composite(grpChrome, SWT.NONE);
+        grpChromePage.setLayout(grpChromePageGl);
+        grpChromePage.setLayoutData(grpChromePageGd);
+
+
+        // row1 : set override
+        BooleanFieldEditor overrideChromeSettingsEditor = new BooleanFieldEditor(Settings.OVERRIDE_CHROME_SETTINGS
+                                                                            , Messages.Override_chrome_settings
+                                                                            , grpChromePage);
+        overrideChromeSettingsEditor.fillIntoGrid(grpChromePage, 3);
+
+        // row2 : set extra parameters
+        extraParamsEditor = new StringFieldEditor(Settings.EXTRA_PARAM
+                                            , org.tizen.web.preferences.Messages.CHROME_EXTRA_PARAMETERS
+                                            , grpChromePage);
+        extraParamsEditor.fillIntoGrid(grpChromePage, 3);
+
+        // row3 : set profile directory
+        profileLocationEditor = new DirectoryFieldEditor(Settings.PROFILE_PATH, org.tizen.web.preferences.Messages.CHROME_PROFILE_DATA_LOCATION, grpChromePage) {
             @Override
-            //Add checks for the dir length. Fix for bug of unix sockect addr length limit when launching chrome.
+            //Add checks for the directory length. Fix for bug of unix socket addr length limit when launching chrome.
             protected boolean doCheckState() {
-                final int MAX_PROFILE_DIR_LENGTH = 256 - "/SingletonSocket".length(); //$NON-NLS-1$
+                if (!super.doCheckState()) {
+                    return false;
+                }
+
+                final int MAX_PROFILE_DIR_LENGTH = 108 - "/SingletonSocket".length(); //$NON-NLS-1$
                 String fileName = getTextControl().getText();
+
                 if (!Simulator.isWritableDirectory(fileName)){
                     setErrorMessage(String.format(Messages.msgErrProfileWritableDirectory));
                     return false;
                 }
-                
+
                 if (Platform.OS_WIN32.equals(Platform.getOS())) return true;
                 if (Simulator.isProfilePathTooLong(fileName)) {
                     setErrorMessage(String.format(Messages.msgErrProfileLengthExceeded, MAX_PROFILE_DIR_LENGTH));
                     return false;
                 }
-                
                 return true;
             }
+
+            @Override
             public boolean isEmptyStringAllowed(){
                 return false;
             }
+        };
+        profileLocationEditor.fillIntoGrid(grpChromePage, 3);
+
+        // add listener to override button
+        Button overrideChromeSettingsBtn = (Button)(overrideChromeSettingsEditor.getDescriptionControl(grpChromePage));
+        overrideChromeSettingsBtn.addSelectionListener(new SelectionAdapter() {
+            @Override
+            public void widgetSelected(SelectionEvent e) {
+                if (e.widget instanceof Button) {
+                    Button button = (Button) e.widget;
+                    extraParamsEditor.setEnabled(button.getSelection(), grpChromePage);
+                    profileLocationEditor.setEnabled(button.getSelection(), grpChromePage);
+                    if (!profileLocationEditor.isValid()) {
+                        profileLocationEditor.load();
+                    }
+                }
+            }
         });
+
+        addField(overrideChromeSettingsEditor);
+        addField(extraParamsEditor);
+        addField(profileLocationEditor);
+
+        // initialize
+        IPreferenceStore store = Activator.getDefault().getPreferenceStore();
+        extraParamsEditor.setEnabled(store.getBoolean(Settings.OVERRIDE_CHROME_SETTINGS), grpChromePage);
+        profileLocationEditor.setEnabled(store.getBoolean(Settings.OVERRIDE_CHROME_SETTINGS), grpChromePage);
     }
 
     @Override