Index: trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java	(revision 2650)
+++ trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java	(revision 2651)
@@ -568,4 +568,16 @@
 
     /**
+     * Replies a list of direction-dependent keys that make an object
+     * direction dependent.
+     * 
+     * @return  a list of direction-dependent keys that make an object
+     * direction dependent.
+     */
+    public static Collection<String> getDirectionKeys() {
+        return Main.pref.getCollection("tags.direction",
+                Arrays.asList("oneway","incline","incline_steep","aerialway"));
+    }
+
+    /**
      * Implementation of the visitor scheme. Subclasses have to call the correct
      * visitor function.
@@ -1104,4 +1116,6 @@
         }
     }
+
+
     /**
      * true if this object has direction dependent tags (e.g. oneway)
