mirror of
https://github.com/meteoinfo/MeteoInfo.git
synced 2025-12-08 20:36:05 +00:00
release v1.7.5
This commit is contained in:
parent
d441b05b05
commit
268d29c9c7
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
@ -15,4 +15,32 @@
|
|||||||
<jpda.listen>true</jpda.listen>
|
<jpda.listen>true</jpda.listen>
|
||||||
</properties>
|
</properties>
|
||||||
</action>
|
</action>
|
||||||
|
<action>
|
||||||
|
<actionName>run</actionName>
|
||||||
|
<packagings>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
</packagings>
|
||||||
|
<goals>
|
||||||
|
<goal>process-classes</goal>
|
||||||
|
<goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal>
|
||||||
|
</goals>
|
||||||
|
<properties>
|
||||||
|
<exec.args>-classpath %classpath org.meteoinfo.laboratory.MeteoInfoLab</exec.args>
|
||||||
|
<exec.executable>java</exec.executable>
|
||||||
|
</properties>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<actionName>profile</actionName>
|
||||||
|
<packagings>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
</packagings>
|
||||||
|
<goals>
|
||||||
|
<goal>process-classes</goal>
|
||||||
|
<goal>org.codehaus.mojo:exec-maven-plugin:1.5.0:exec</goal>
|
||||||
|
</goals>
|
||||||
|
<properties>
|
||||||
|
<exec.args>-classpath %classpath org.meteoinfo.laboratory.MeteoInfoLab</exec.args>
|
||||||
|
<exec.executable>java</exec.executable>
|
||||||
|
</properties>
|
||||||
|
</action>
|
||||||
</actions>
|
</actions>
|
||||||
|
|||||||
@ -34,4 +34,40 @@
|
|||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>org.meteoinfo.laboratory.MeteoInfoLab</mainClass>
|
||||||
|
<addClasspath>true</addClasspath>
|
||||||
|
<classpathPrefix>lib/</classpathPrefix>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
@ -207,6 +207,10 @@ public class Options {
|
|||||||
* @throws javax.xml.parsers.ParserConfigurationException
|
* @throws javax.xml.parsers.ParserConfigurationException
|
||||||
*/
|
*/
|
||||||
public void saveConfigFile(String fileName) throws ParserConfigurationException {
|
public void saveConfigFile(String fileName) throws ParserConfigurationException {
|
||||||
|
if (fileName == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
|
||||||
DocumentBuilder builder = factory.newDocumentBuilder();
|
DocumentBuilder builder = factory.newDocumentBuilder();
|
||||||
Document doc = builder.newDocument();
|
Document doc = builder.newDocument();
|
||||||
|
|||||||
@ -119,14 +119,16 @@ public class FrmMain extends javax.swing.JFrame implements IApplication {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
String cf = this.options.getCurrentFolder();
|
String cf = this.options.getCurrentFolder();
|
||||||
if (!new File(cf).isDirectory()) {
|
if (cf != null) {
|
||||||
cf = this.startupPath;
|
if (!new File(cf).isDirectory()) {
|
||||||
this.options.setCurrentFolder(cf);
|
cf = this.startupPath;
|
||||||
|
this.options.setCurrentFolder(cf);
|
||||||
|
}
|
||||||
|
if (!this.options.getRecentFolders().contains(cf)) {
|
||||||
|
this.jComboBox_CurrentFolder.addItem(cf);
|
||||||
|
}
|
||||||
|
this.jComboBox_CurrentFolder.setSelectedItem(cf);
|
||||||
}
|
}
|
||||||
if (!this.options.getRecentFolders().contains(cf)) {
|
|
||||||
this.jComboBox_CurrentFolder.addItem(cf);
|
|
||||||
}
|
|
||||||
this.jComboBox_CurrentFolder.setSelectedItem(cf);
|
|
||||||
|
|
||||||
//Add dockable panels
|
//Add dockable panels
|
||||||
CControl control = new CControl(this);
|
CControl control = new CControl(this);
|
||||||
@ -152,22 +154,24 @@ public class FrmMain extends javax.swing.JFrame implements IApplication {
|
|||||||
toolboxPath = "D:/MyProgram/Java/MeteoInfoDev/toolbox";
|
toolboxPath = "D:/MyProgram/Java/MeteoInfoDev/toolbox";
|
||||||
}
|
}
|
||||||
String appConfFn = toolboxPath + File.separator + "apps.xml";
|
String appConfFn = toolboxPath + File.separator + "apps.xml";
|
||||||
try {
|
if (new File(appConfFn).exists()) {
|
||||||
this.apps.setPluginPath(toolboxPath);
|
try {
|
||||||
this.apps.loadConfigFile(appConfFn);
|
this.apps.setPluginPath(toolboxPath);
|
||||||
if (this.apps.size() > 0) {
|
this.apps.loadConfigFile(appConfFn);
|
||||||
for (Application app : apps) {
|
if (this.apps.size() > 0) {
|
||||||
if (app.isLoad()) {
|
for (Application app : apps) {
|
||||||
this.loadApplication(app);
|
if (app.isLoad()) {
|
||||||
|
this.loadApplication(app);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (MalformedURLException ex) {
|
||||||
|
Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
|
} catch (IOException ex) {
|
||||||
|
Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
|
} catch (ParserConfigurationException | SAXException ex) {
|
||||||
|
Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
}
|
}
|
||||||
} catch (MalformedURLException ex) {
|
|
||||||
Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);
|
|
||||||
} catch (IOException ex) {
|
|
||||||
Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);
|
|
||||||
} catch (ParserConfigurationException | SAXException ex) {
|
|
||||||
Logger.getLogger(FrmMain.class.getName()).log(Level.SEVERE, null, ex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final PythonInteractiveInterpreter interp = this.consoleDock.getInterpreter();
|
final PythonInteractiveInterpreter interp = this.consoleDock.getInterpreter();
|
||||||
@ -262,7 +266,9 @@ public class FrmMain extends javax.swing.JFrame implements IApplication {
|
|||||||
figuresDock = new FigureDockable(this, "Figures", "Figures");
|
figuresDock = new FigureDockable(this, "Figures", "Figures");
|
||||||
this.variableDock = new VariableDockable("Variables", "Variable explorer");
|
this.variableDock = new VariableDockable("Variables", "Variable explorer");
|
||||||
this.fileDock = new FileDockable("Files", "File explorer");
|
this.fileDock = new FileDockable("Files", "File explorer");
|
||||||
this.fileDock.setPath(new File(cf));
|
if (cf != null) {
|
||||||
|
this.fileDock.setPath(new File(cf));
|
||||||
|
}
|
||||||
this.fileDock.getFileExplorer().addCurrentPathChangedListener(new ICurrentPathChangedListener() {
|
this.fileDock.getFileExplorer().addCurrentPathChangedListener(new ICurrentPathChangedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void currentPathChangedEvent(CurrentPathChangedEvent event) {
|
public void currentPathChangedEvent(CurrentPathChangedEvent event) {
|
||||||
|
|||||||
@ -1,36 +1,38 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>org.meteothink</groupId>
|
<groupId>org.meteothink</groupId>
|
||||||
<artifactId>MeteoInfo</artifactId>
|
<artifactId>MeteoInfo</artifactId>
|
||||||
<version>1.7.5</version>
|
<version>1.7.5</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>MeteoInfoLib</artifactId>
|
<artifactId>MeteoInfoLib</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
<id>freehep</id>
|
<id>freehep</id>
|
||||||
<name>freehep</name>
|
<name>freehep</name>
|
||||||
<url>http://java.freehep.org/maven2/</url>
|
<url>http://java.freehep.org/maven2/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>boundless</id>
|
<id>boundless</id>
|
||||||
<name>boundlessgeo</name>
|
<name>boundlessgeo</name>
|
||||||
<url>http://repo.boundlessgeo.com/main/</url>
|
<url>http://repo.boundlessgeo.com/main/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>central</id>
|
<id>central</id>
|
||||||
<name>Maven Central</name>
|
<name>Maven Central</name>
|
||||||
<url>http://repo1.maven.org/maven2/</url>
|
<url>http://repo1.maven.org/maven2/</url>
|
||||||
</repository>
|
</repository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>ebi</id>
|
<id>ebi</id>
|
||||||
<name>ebiRepo</name>
|
<name>ebiRepo</name>
|
||||||
<url>http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/</url>
|
<url>http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/</url>
|
||||||
</repository>
|
</repository>
|
||||||
</repositories>
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -46,7 +48,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>joda-time</groupId>
|
<groupId>joda-time</groupId>
|
||||||
<artifactId>joda-time</artifactId>
|
<artifactId>joda-time</artifactId>
|
||||||
<version>2.2</version>
|
<version>2.10</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.freehep</groupId>
|
<groupId>org.freehep</groupId>
|
||||||
@ -118,10 +120,44 @@
|
|||||||
<artifactId>wContour</artifactId>
|
<artifactId>wContour</artifactId>
|
||||||
<version>1.6.1</version>
|
<version>1.6.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.freehep</groupId>
|
||||||
|
<artifactId>freehep-util</artifactId>
|
||||||
|
<version>2.0.2</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<MeteoInfo File="config.xml" Type="configurefile">
|
<MeteoInfo File="config.xml" Type="configurefile">
|
||||||
<Path OpenPath="D:\Temp\grads"/>
|
<Path OpenPath="D:\Temp\micaps"/>
|
||||||
<Font>
|
<Font>
|
||||||
<TextFont FontName="宋体" FontSize="15"/>
|
<TextFont FontName="宋体" FontSize="15"/>
|
||||||
<LegendFont FontName="宋体" FontSize="12"/>
|
<LegendFont FontName="宋体" FontSize="12"/>
|
||||||
|
|||||||
@ -9,11 +9,6 @@
|
|||||||
<artifactId>MeteoInfoMap</artifactId>
|
<artifactId>MeteoInfoMap</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
|
||||||
<groupId>org.codehaus.groovy</groupId>
|
|
||||||
<artifactId>groovy-all</artifactId>
|
|
||||||
<version>2.4.14</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.sun.woodstock.dependlibs</groupId>
|
<groupId>com.sun.woodstock.dependlibs</groupId>
|
||||||
<artifactId>jhall</artifactId>
|
<artifactId>jhall</artifactId>
|
||||||
@ -29,9 +24,50 @@
|
|||||||
<artifactId>MeteoInfoLib</artifactId>
|
<artifactId>MeteoInfoLib</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
|
<artifactId>groovy-all</artifactId>
|
||||||
|
<version>2.1.4</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>1.7</maven.compiler.source>
|
<maven.compiler.source>1.7</maven.compiler.source>
|
||||||
<maven.compiler.target>1.7</maven.compiler.target>
|
<maven.compiler.target>1.7</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifest>
|
||||||
|
<mainClass>org.meteoinfo.desktop.forms.Program</mainClass>
|
||||||
|
<addClasspath>true</addClasspath>
|
||||||
|
<classpathPrefix>lib/</classpathPrefix>
|
||||||
|
</manifest>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
|
<version>3.1.1</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-dependencies</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>copy-dependencies</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<outputDirectory>${project.build.directory}/lib</outputDirectory>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</project>
|
</project>
|
||||||
Loading…
x
Reference in New Issue
Block a user