Revision: 4410 http://sourceforge.net/p/jump-pilot/code/4410 Author: jratike80 Date: 2015-04-27 10:34:38 +0000 (Mon, 27 Apr 2015) Log Message: ----------- Correct typos in some file and class names.
Modified Paths: -------------- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialiteExtension.java Added Paths: ----------- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PluginTest.java plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePlugin.java Removed Paths: ------------- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PuglinTest.java plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePluging.java Added: plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PluginTest.java =================================================================== --- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PluginTest.java (rev 0) +++ plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PluginTest.java 2015-04-27 10:34:38 UTC (rev 4410) @@ -0,0 +1,56 @@ +/* + * The Unified Mapping Platform (JUMP) is an extensible, interactive GUI + * for visualizing and manipulating spatial features with geometry and attributes. + * + * JUMP is Copyright (C) 2003 Vivid Solutions + * + * This program implements extensions to JUMP and is + * Copyright (C) 2010 Jorge Almaraz. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * For more information, contact: + * + * Jukka Rahkonen + * jukka.rahko...@latuviitta.fi + * + */ +package org.jam.openjump.spatialiteplugin; + +import javax.swing.*; + +public class PluginTest { + + /** + * @param args + */ + public static void main(String[] args) { + try { + UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); + } catch(Exception e) { + System.out.println("Error setting native LAF: " + e); + } + try { + Class.forName("org.sqlite.Driver"); + } catch (ClassNotFoundException e1) { + System.out.println("no org.sqlite.Driver" ); + } + SpatialiteDialog sd =new SpatialiteDialog(); + sd.setVisible(true); + } + + + +} Deleted: plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PuglinTest.java =================================================================== --- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PuglinTest.java 2015-04-23 08:55:49 UTC (rev 4409) +++ plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/PuglinTest.java 2015-04-27 10:34:38 UTC (rev 4410) @@ -1,56 +0,0 @@ -/* - * The Unified Mapping Platform (JUMP) is an extensible, interactive GUI - * for visualizing and manipulating spatial features with geometry and attributes. - * - * JUMP is Copyright (C) 2003 Vivid Solutions - * - * This program implements extensions to JUMP and is - * Copyright (C) 2010 Jorge Almaraz. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * For more information, contact: - * - * Jukka Rahkonen - * jukka.rahko...@latuviitta.fi - * - */ -package org.jam.openjump.spatialiteplugin; - -import javax.swing.*; - -public class PuglinTest { - - /** - * @param args - */ - public static void main(String[] args) { - try { - UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - } catch(Exception e) { - System.out.println("Error setting native LAF: " + e); - } - try { - Class.forName("org.sqlite.Driver"); - } catch (ClassNotFoundException e1) { - System.out.println("no org.sqlite.Driver" ); - } - SpatialiteDialog sd =new SpatialiteDialog(); - sd.setVisible(true); - } - - - -} Modified: plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialiteExtension.java =================================================================== --- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialiteExtension.java 2015-04-23 08:55:49 UTC (rev 4409) +++ plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialiteExtension.java 2015-04-27 10:34:38 UTC (rev 4410) @@ -36,7 +36,7 @@ @Override public void configure(PlugInContext context) throws Exception { - new SpatialitePluging().initialize(context); + new SpatialitePlugin().initialize(context); } Added: plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePlugin.java =================================================================== --- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePlugin.java (rev 0) +++ plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePlugin.java 2015-04-27 10:34:38 UTC (rev 4410) @@ -0,0 +1,93 @@ +/* + * The Unified Mapping Platform (JUMP) is an extensible, interactive GUI + * for visualizing and manipulating spatial features with geometry and attributes. + * + * JUMP is Copyright (C) 2003 Vivid Solutions + * + * This program implements extensions to JUMP and is + * Copyright (C) 2010 Jorge Almaraz. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * For more information, contact: + * + * Jukka Rahkonen + * jukka.rahko...@latuviitta.fi + * + */ +package org.jam.openjump.spatialiteplugin; + +import com.vividsolutions.jump.workbench.WorkbenchContext; +import com.vividsolutions.jump.workbench.plugin.AbstractPlugIn; +import com.vividsolutions.jump.workbench.plugin.EnableCheckFactory; +import com.vividsolutions.jump.workbench.plugin.MultiEnableCheck; +import com.vividsolutions.jump.workbench.plugin.PlugInContext; +import com.vividsolutions.jump.workbench.ui.GUIUtil; +import com.vividsolutions.jump.workbench.ui.MenuNames; + +import java.io.PrintStream; + + +public class SpatialitePlugin extends AbstractPlugIn { + static private PlugInContext pc=null; + + public void initialize(PlugInContext context) throws Exception { + + context.getFeatureInstaller().addMainMenuItem(this, + new String[] + {MenuNames.LAYER }, + "Import Spatialite Layer ...", + false, + null, + null); + } + + public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext) { + EnableCheckFactory checkFactory = new EnableCheckFactory(workbenchContext); + + return new MultiEnableCheck() + .add(checkFactory.createWindowWithLayerNamePanelMustBeActiveCheck()); + } + + public boolean execute(PlugInContext context) throws Exception{ + SpatialitePlugin.pc = context; + context.getWorkbenchFrame().getOutputFrame().createNewDocument(); + try { + //Class.forName("org.sqlite.Driver"); + Class.forName("org.sqlite.JDBC"); + } catch (ClassNotFoundException e1) { + //System.out.println("Error: no org.sqlite.Driver" ); + System.out.println("Error: no org.sqlite.JDBC" ); + return false; + } + if (pc!=null){ + PrintStream ps = new PrintStream(new PrintLog(pc)); + System.setOut(ps); + System.setErr(ps); + } + System.out.println("Executing SpatialitePlugin"); + try{ + SpatialiteDialog sd = new SpatialiteDialog(context); + GUIUtil.centreOnWindow(sd); + sd.setVisible(true); + System.out.println("SpatialitePlugin opened"); + } finally{ + System.setOut(System.out); + System.setErr(System.err); + } + + return true; + } +} Deleted: plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePluging.java =================================================================== --- plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePluging.java 2015-04-23 08:55:49 UTC (rev 4409) +++ plug-ins/SpatialitePlugin/trunk/src/org/jam/openjump/spatialiteplugin/SpatialitePluging.java 2015-04-27 10:34:38 UTC (rev 4410) @@ -1,93 +0,0 @@ -/* - * The Unified Mapping Platform (JUMP) is an extensible, interactive GUI - * for visualizing and manipulating spatial features with geometry and attributes. - * - * JUMP is Copyright (C) 2003 Vivid Solutions - * - * This program implements extensions to JUMP and is - * Copyright (C) 2010 Jorge Almaraz. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * For more information, contact: - * - * Jukka Rahkonen - * jukka.rahko...@latuviitta.fi - * - */ -package org.jam.openjump.spatialiteplugin; - -import com.vividsolutions.jump.workbench.WorkbenchContext; -import com.vividsolutions.jump.workbench.plugin.AbstractPlugIn; -import com.vividsolutions.jump.workbench.plugin.EnableCheckFactory; -import com.vividsolutions.jump.workbench.plugin.MultiEnableCheck; -import com.vividsolutions.jump.workbench.plugin.PlugInContext; -import com.vividsolutions.jump.workbench.ui.GUIUtil; -import com.vividsolutions.jump.workbench.ui.MenuNames; - -import java.io.PrintStream; - - -public class SpatialitePluging extends AbstractPlugIn { - static private PlugInContext pc=null; - - public void initialize(PlugInContext context) throws Exception { - - context.getFeatureInstaller().addMainMenuItem(this, - new String[] - {MenuNames.LAYER }, - "Import Spatialite Layer ...", - false, - null, - null); - } - - public static MultiEnableCheck createEnableCheck(WorkbenchContext workbenchContext) { - EnableCheckFactory checkFactory = new EnableCheckFactory(workbenchContext); - - return new MultiEnableCheck() - .add(checkFactory.createWindowWithLayerNamePanelMustBeActiveCheck()); - } - - public boolean execute(PlugInContext context) throws Exception{ - SpatialitePluging.pc = context; - context.getWorkbenchFrame().getOutputFrame().createNewDocument(); - try { - //Class.forName("org.sqlite.Driver"); - Class.forName("org.sqlite.JDBC"); - } catch (ClassNotFoundException e1) { - //System.out.println("Error: no org.sqlite.Driver" ); - System.out.println("Error: no org.sqlite.JDBC" ); - return false; - } - if (pc!=null){ - PrintStream ps = new PrintStream(new PrintLog(pc)); - System.setOut(ps); - System.setErr(ps); - } - System.out.println("Executing SpatialitePlugin"); - try{ - SpatialiteDialog sd = new SpatialiteDialog(context); - GUIUtil.centreOnWindow(sd); - sd.setVisible(true); - System.out.println("SpatialitePlugin opened"); - } finally{ - System.setOut(System.out); - System.setErr(System.err); - } - - return true; - } -} ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel