Skip to content

Commit

Permalink
Default layers are present when new earth panel is created
Browse files Browse the repository at this point in the history
  • Loading branch information
sbodmer committed Jun 10, 2017
1 parent a5bd1d6 commit 60b08ca
Show file tree
Hide file tree
Showing 11 changed files with 2,009 additions and 1,690 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,3 +1,4 @@
/nbproject/private/
/build/
/dist/
/dist/
/temp/
2 changes: 1 addition & 1 deletion build.xml
Expand Up @@ -180,7 +180,7 @@
</target>

<target name="update_libs">
<echo message="Update libs to dist"/>
<echo message="Update libs from TinyRCP project"/>
<copy todir="lib">
<fileset file="../TinyRCP/dist/TinyRCP.jar"/>
</copy>
Expand Down
Binary file modified lib/TinyRCP.jar
Binary file not shown.
13 changes: 3 additions & 10 deletions src/org/worldwindearth/JWorldWindEarth.java
Expand Up @@ -229,9 +229,7 @@ private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:even
protected void save(File save) {
try {
//--- Create main config
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.newDocument();
Document document = app.getDocumentBuilder().newDocument();
Element root = document.createElement("WorldWindEarth");
root.setAttribute("x", "" + getX());
root.setAttribute("y", "" + getY());
Expand Down Expand Up @@ -276,13 +274,8 @@ protected void load(File load) {
Element root = null;
try {
FileInputStream in = new FileInputStream(load);

//--- Parse config file
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
InputSource source = new InputSource(in);
source.setEncoding("UTF-8");
Document tmp = builder.parse(source);
Document tmp = app.getDocumentBuilder().parse(in);

root = tmp.getDocumentElement();
in.close();

Expand Down
606 changes: 0 additions & 606 deletions src/org/worldwindearth/earth/JEarthPlugin.form

Large diffs are not rendered by default.

0 comments on commit 60b08ca

Please sign in to comment.