Ignore:
Timestamp:
2009-01-01T18:55:45+01:00 (17 years ago)
Author:
stoecker
Message:

removed tab stop usage

Location:
applications/editors/josm/plugins/openlayers
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified applications/editors/josm/plugins/openlayers/README

    r8748 r12780  
    33This plugin is a proof of concept, and so it is at a very first stage.
    44
    5 What it does: 
     5What it does:
    66    * It downloads a Yahoo satellite background image of the current view port (well, sort of)
    77
    88What it does NOT:
    99    * Everything else :-)
    10  
     10
    1111What needs to be done:
    1212    * Fix positions
  • TabularUnified applications/editors/josm/plugins/openlayers/build.xml

    r8748 r12780  
    11<project name="openlayers" default="dist" basedir=".">
    2 
    3   <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
    4   <property environment="env"/>
    5   <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
    6     <and>
    7       <os family="windows"/>
    8     </and>
    9   </condition>
    10 
    11   <!-- compilation properties -->
    12   <property name="josm.build.dir"       value="../../core"/>
    13   <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    14   <property name="josm"                     location="../../core/dist/josm-custom.jar" />
    15   <property name="plugin.build.dir"     value="build"/>
    16   <property name="plugin.dist.dir"      value="../../dist"/>
    17   <property name="plugin.name"          value="${ant.project.name}"/>
    18   <property name="plugin.jar"           value="../../dist/${plugin.name}.jar"/>
    19 
    20   <property name="ant.build.javac.target" value="1.5"/>
    21 
    22   <!-- All jar files needed -->
    23   <fileset id="required_libs" dir="lib">
    24     <include name="cobra.jar"/>
    25     <include name="js.jar"/>
    26     <include name="ehcache-1.4.1.jar"/>
    27     <include name="backport-util-concurrent-3.0.jar"/> <!-- needed by ehcache -->
    28     <include name="commons-logging-1.0.4.jar"/> <!--needed by ehcache -->
    29   </fileset>
    30 
    31   <target name="init">
    32     <mkdir dir="build"></mkdir>
    33     <mkdir dir="dist"></mkdir>
    34   </target>
    35        
    36   <target name="compile" depends="init">
    37     <echo message="creating ${plugin.jar}"/>
    38     <javac srcdir="src" debug="true" destdir="build">
    39         <classpath>
    40             <path path="../../core/dist/josm-custom.jar"/>
    41             <fileset refid="required_libs"/>
    42         </classpath>
    43     </javac>
    44   </target>
    45        
    46   <target name="dist" depends="compile">
    47         <!-- jars -->
    48         <!-- TODO: instead of adding library code to the plugin jar, JOSM should
    49              have some kind of library dir loaded in the classpath -->
    50         <unjar dest="build">
    51                 <fileset refid="required_libs" />
    52         </unjar>
    53 
    54         <!-- images -->
    55     <copy todir="build/images">
    56       <fileset dir="images" />
    57     </copy>
    58        
    59         <!--resources -->
    60     <copy todir="build/resources">
    61       <fileset dir="resources" />
    62     </copy>
    63    
    64     <!-- create josm-custom.jar -->
    65     <jar destfile="${plugin.jar}" basedir="build">
    66       <manifest>
    67         <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
    68         <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
    69         <attribute name="Class-Path" value="cobra.jar js.jar ehcache-1.4.1.jar commons-logging-1.0.4.jar backport-util-concurrent-3.0.jar" />
    70       </manifest>
    71     </jar>
    72   </target>
    73  
    74   <target name="clean">
    75     <delete dir="${plugin.build.dir}" />
    76     <delete file="${plugin.jar}" />
    77   </target>
    78  
    79   <target name="install" depends="dist">
    80     <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    81   </target>
    82 
     2<!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
     3    <property environment="env"/>
     4    <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
     5        <and>
     6            <os family="windows"/>
     7        </and>
     8    </condition>
     9<!-- compilation properties -->
     10    <property name="josm.build.dir"   value="../../core"/>
     11    <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
     12    <property name="josm"             location="../../core/dist/josm-custom.jar" />
     13    <property name="plugin.build.dir" value="build"/>
     14    <property name="plugin.dist.dir"  value="../../dist"/>
     15    <property name="plugin.name"      value="${ant.project.name}"/>
     16    <property name="plugin.jar"       value="../../dist/${plugin.name}.jar"/>
     17    <property name="ant.build.javac.target" value="1.5"/>
     18<!-- All jar files needed -->
     19    <fileset id="required_libs" dir="lib">
     20        <include name="cobra.jar"/>
     21        <include name="js.jar"/>
     22        <include name="ehcache-1.4.1.jar"/>
     23        <include name="backport-util-concurrent-3.0.jar"/>
     24<!-- needed by ehcache -->
     25        <include name="commons-logging-1.0.4.jar"/>
     26<!--needed by ehcache -->
     27    </fileset>
     28    <target name="init">
     29        <mkdir dir="build"></mkdir>
     30        <mkdir dir="dist"></mkdir>
     31    </target>
     32    <target name="compile" depends="init">
     33        <echo message="creating ${plugin.jar}"/>
     34        <javac srcdir="src" debug="true" destdir="build">
     35            <classpath>
     36                <path path="../../core/dist/josm-custom.jar"/>
     37                <fileset refid="required_libs"/>
     38            </classpath>
     39        </javac>
     40    </target>
     41    <target name="dist" depends="compile">
     42<!-- jars -->
     43<!-- TODO: instead of adding library code to the plugin jar, JOSM should
     44         have some kind of library dir loaded in the classpath -->
     45        <unjar dest="build">
     46            <fileset refid="required_libs" />
     47        </unjar>
     48<!-- images -->
     49        <copy todir="build/images">
     50            <fileset dir="images" />
     51        </copy>
     52<!--resources -->
     53        <copy todir="build/resources">
     54            <fileset dir="resources" />
     55        </copy>
     56<!-- create josm-custom.jar -->
     57        <jar destfile="${plugin.jar}" basedir="build">
     58            <manifest>
     59                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.openLayers.OpenLayersPlugin" />
     60                <attribute name="Plugin-Description" value="Displays an OpenLayers background image" />
     61                <attribute name="Class-Path" value="cobra.jar js.jar ehcache-1.4.1.jar commons-logging-1.0.4.jar backport-util-concurrent-3.0.jar" />
     62            </manifest>
     63        </jar>
     64    </target>
     65    <target name="clean">
     66        <delete dir="${plugin.build.dir}" />
     67        <delete file="${plugin.jar}" />
     68    </target>
     69    <target name="install" depends="dist">
     70        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     71    </target>
    8372</project>
  • TabularUnified applications/editors/josm/plugins/openlayers/resources/ehcache.xml

    r8748 r12780  
    55    ==========================
    66    An ehcache.xml corresponds to a single CacheManager.
    7    
     7
    88    See instructions below or the ehcache schema (ehcache.xsd) on how to configure.
    99
     
    170170    Sets the maximum number of objects that will be created in memory
    171171
    172         maxElementsOnDisk:
     172    maxElementsOnDisk:
    173173    Sets the maximum number of objects that will be maintained in the DiskStore
    174         The default value is zero, meaning unlimited.
     174    The default value is zero, meaning unlimited.
    175175
    176176    eternal:
     
    211211    Each spool buffer is used only by its cache. If you get OutOfMemory errors consider
    212212    lowering this value. To improve DiskStore performance consider increasing it. Trace level
    213     logging in the DiskStore will show if put back ups are occurring. 
     213    logging in the DiskStore will show if put back ups are occurring.
    214214
    215215    memoryStoreEvictionPolicy:
     
    468468    </cache>
    469469
    470    
     470
    471471
    472472
  • TabularUnified applications/editors/josm/plugins/openlayers/resources/yahoo.html

    r8748 r12780  
    11<html xmlns="http://www.w3.org/1999/xhtml">
    22  <head>
    3         <!-- The map can not be set to 100%. It hangs -->
     3    <!-- The map can not be set to 100%. It hangs -->
    44    <style type="text/css">
    55        #map {
     
    1111    <script type="text/javascript" src="http://www.openlayers.org/api/OpenLayers.js"></script>
    1212    <script type="text/javascript">
    13         // There seems to be a problem with this function and the Java JS engine, as the computed style 
    14         // does not have the function getPropertyValue.
    15                 OpenLayers.Element.getStyle =  function(element, style) {
    16                 element = OpenLayers.Util.getElement(element);
    17                 var value = element.style[OpenLayers.String.camelize(style)];
    18                 if (!value) {
    19                     if (document.defaultView && 
    20                         document.defaultView.getComputedStyle && false) {
    21                        
    22                         var css = document.defaultView.getComputedStyle(element, null);
    23                         value = css ? css.getPropertyValue(style) : null;
    24                     } else if (element.currentStyle) {
    25                         value = element.currentStyle[OpenLayers.String.camelize(style)];
    26                     }
    27                 }
    28            
    29                 var positions = ['left', 'top', 'right', 'bottom'];
    30                 if (window.opera &&
    31                     (OpenLayers.Util.indexOf(positions,style) != -1) &&
    32                     (OpenLayers.Element.getStyle(element, 'position') == 'static')) { 
    33                     value = 'auto';
    34                 }
    35            
    36                 return value == 'auto' ? null : value;
    37             }
     13        // There seems to be a problem with this function and the Java JS engine, as the computed style
     14        // does not have the function getPropertyValue.
     15        OpenLayers.Element.getStyle =  function(element, style) {
     16            element = OpenLayers.Util.getElement(element);
     17            var value = element.style[OpenLayers.String.camelize(style)];
     18            if (!value) {
     19                if (document.defaultView &&
     20                    document.defaultView.getComputedStyle && false) {
     21
     22                    var css = document.defaultView.getComputedStyle(element, null);
     23                    value = css ? css.getPropertyValue(style) : null;
     24                } else if (element.currentStyle) {
     25                    value = element.currentStyle[OpenLayers.String.camelize(style)];
     26                }
     27            }
     28
     29            var positions = ['left', 'top', 'right', 'bottom'];
     30            if (window.opera &&
     31                (OpenLayers.Util.indexOf(positions,style) != -1) &&
     32                (OpenLayers.Element.getStyle(element, 'position') == 'static')) {
     33                value = 'auto';
     34            }
     35
     36            return value == 'auto' ? null : value;
     37        }
    3838    </script>
    3939    <script type="text/javascript">
     
    5656            var mapDiv = document.getElementById("map");
    5757            if( !mapDiv ) return;
    58            
     58
    5959            mapDiv.style.width = width;
    6060            mapDiv.style.height = height;
    61            
     61
    6262            if( map )
    6363                map.updateSize();
    6464        }
    65        
     65
    6666        function zoomMapToExtent(left, bottom, right, top)
    6767        {
    6868            if( !map ) return;
    69            
     69
    7070            map.zoomToExtent( new OpenLayers.Bounds(left, bottom, right, top) );
    7171            var extent = map.getExtent();
     
    7878    </script>
    7979  </head>
    80  
     80
    8181  <body onload="init()" style="overflow:hidden; margin: 0; padding: 0;">
    8282    <div id="overlay" style="background:white;opacity:0.5;z-index:10;">
Note: See TracChangeset for help on using the changeset viewer.