Index: /applications/editors/josm/plugins/videomapping/.classpath
===================================================================
--- /applications/editors/josm/plugins/videomapping/.classpath	(revision 22690)
+++ /applications/editors/josm/plugins/videomapping/.classpath	(revision 22691)
@@ -5,7 +5,11 @@
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
 	<classpathentry combineaccessrules="false" kind="src" path="/JOSM"/>
-	<classpathentry kind="lib" path="lib/jna.jar"/>
-	<classpathentry kind="lib" path="lib/log4j.jar"/>
-	<classpathentry kind="lib" path="lib/vlcj-1.1h.jar"/>
+	<classpathentry kind="lib" path="D:/Projekte/Studium/GeoProjekt/working/VideoMapping/lib/jna.jar"/>
+	<classpathentry kind="lib" path="D:/Projekte/Studium/GeoProjekt/working/VideoMapping/lib/vlcj-1.1.2.jar">
+		<attributes>
+			<attribute name="javadoc_location" value="jar:file:/D:/Projekte/Studium/GeoProjekt/working/vlcj/vlcj-1.1.2.jar!/"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="lib" path="D:/Projekte/Studium/GeoProjekt/working/VideoMapping/lib/log4j.jar"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
Index: /applications/editors/josm/plugins/videomapping/build.xml
===================================================================
--- /applications/editors/josm/plugins/videomapping/build.xml	(revision 22690)
+++ /applications/editors/josm/plugins/videomapping/build.xml	(revision 22691)
@@ -33,5 +33,5 @@
 	<property name="commit.message" value="videomapping" />
 	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="3408" />
+	<property name="plugin.main.version" value="1234" />
 
 
@@ -40,11 +40,14 @@
       ** should not be necessary to change the following properties
      -->
-	<property name="josm"                   location="../../core/dist/josm-custom.jar"/>
+	<property name="josm"                   location="../JOSM/dist/josm-custom.jar"/> <!-- patched for my own workbench, will fix if I understand how you have to setup it right-->
 	<property name="plugin.build.dir"       value="build"/>
 	<property name="plugin.src.dir"         value="src"/>
 	<!-- this is the directory where the plugin jar is copied to -->
-	<property name="plugin.dist.dir"        value="../../dist"/>
+	<property name="plugin.dist.dir"        value="../JOSM/dist"/>
 	<property name="ant.build.javac.target" value="1.5"/>
 	<property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
+	<property name="vlcj"                  value="lib/vlcj-1.1.2.jar"/>
+	<property name="jna"                  value="lib/jna.jar"/>
+	<property name="log4j"                  value="lib/log4j.jar"/>
 	<!--
     **********************************************************
@@ -66,9 +69,9 @@
 			<compilerarg value="-Xlint:deprecation"/>
 			<compilerarg value="-Xlint:unchecked"/>
-                        <classpath>
-                                <fileset dir="lib">
-                                        <include name="**/*.jar"/>
-                                </fileset>
-                        </classpath>
+			<classpath>
+				<pathelement location="${vlcj}"/> <!--Add external library -->
+				<pathelement location="${jna}"/>
+				<pathelement location="${log4j}"/>
+			</classpath>
 		</javac>
 	</target>
@@ -107,13 +110,8 @@
 				<attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
 				<attribute name="Plugin-Description" value="(This Plugin is currently work in progress!!!) Links and syncs a georeferenced video against a GPS track, to use it for identify visible objects."/>
-				<attribute name="Plugin-Icon" value="images/videomapping.png"/>
 				<attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/VideoMapping"/>
 				<attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
+				<attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>				
 			</manifest>
-			<zipfileset src="lib/vlcj-1.1h.jar" />
-			<zipfileset src="lib/log4j.jar" />
-			<zipfileset src="lib/jna.jar" />
-			<zipfileset src="lib/platform.jar" />
 		</jar>
 	</target>
@@ -165,8 +163,8 @@
 
 	<!--
-	************************** Publishing the plugin ***********************************
+	************************** Publishing the plugin *********************************** 
 	-->
 	<!--
-		** extracts the JOSM release for the JOSM version in ../core and saves it in the
+		** extracts the JOSM release for the JOSM version in ../core and saves it in the 
 		** property ${coreversion.info.entry.revision}
 		**
@@ -217,15 +215,15 @@
 
 	<!--
-		** commits the plugin.jar
+		** commits the plugin.jar 
 		-->
 	<target name="commit-dist">
 		<echo>
 	***** Properties of published ${plugin.jar} *****
-	Commit message    : '${commit.message}'
+	Commit message    : '${commit.message}'					
 	Plugin-Mainversion: ${plugin.main.version}
 	JOSM build version: ${coreversion.info.entry.revision}
 	Plugin-Version    : ${version.entry.commit.revision}
-	***** / Properties of published ${plugin.jar} *****
-
+	***** / Properties of published ${plugin.jar} *****					
+						
 	Now commiting ${plugin.jar} ...
 	</echo>
Index: /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java
===================================================================
--- /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java	(revision 22690)
+++ /applications/editors/josm/plugins/videomapping/src/org/openstreetmap/josm/plugins/videomapping/PositionLayer.java	(revision 22691)
@@ -2,27 +2,44 @@
 
 
-import static org.openstreetmap.josm.tools.I18n.tr;
+import java.sql.Time;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.ListIterator;
+import java.util.Set;
+import java.util.Timer;
+import java.util.TimerTask;
 
 import java.awt.Color;
+import java.awt.Component;
 import java.awt.Cursor;
+import java.awt.Dimension;
 import java.awt.Graphics2D;
 import java.awt.Point;
 import java.awt.Rectangle;
+import java.awt.event.ActionEvent;
+import java.awt.event.KeyEvent;
+import java.awt.event.KeyListener;
 import java.awt.event.MouseEvent;
 import java.awt.event.MouseListener;
 import java.awt.event.MouseMotionListener;
-import java.text.SimpleDateFormat;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-
-import javax.swing.Action;
-import javax.swing.Icon;
-import javax.swing.ImageIcon;
+
+import javax.swing.*;
+
+import static org.openstreetmap.josm.tools.I18n.*;
 
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.InfoAction;
 import org.openstreetmap.josm.data.Bounds;
+import org.openstreetmap.josm.data.gpx.GpxData;
 import org.openstreetmap.josm.data.gpx.WayPoint;
+import org.openstreetmap.josm.data.osm.DataSet;
+import org.openstreetmap.josm.data.osm.Node;
 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
 import org.openstreetmap.josm.gui.MapView;
@@ -31,4 +48,8 @@
 import org.openstreetmap.josm.gui.layer.Layer;
 import org.openstreetmap.josm.plugins.videomapping.video.GPSVideoPlayer;
+import org.openstreetmap.josm.tools.ImageProvider;
+import org.openstreetmap.josm.tools.Shortcut;
+
+import com.sun.jna.StringArray;
 
 //Basic rendering and GPS layer interaction
@@ -45,5 +66,5 @@
 	private SimpleDateFormat gpsTimeCode;
 	private GPSVideoPlayer gps;
-
+		
 	public PositionLayer(String name, final List<WayPoint> ls) {
 		super(name);
@@ -55,6 +76,6 @@
 		gpsTimeCode= new SimpleDateFormat("hh:mm:ss");
 		Main.map.mapView.addMouseListener(this);
-		Main.map.mapView.addMouseMotionListener(this);
-
+		Main.map.mapView.addMouseMotionListener(this);							
+		
 	}
 
@@ -75,13 +96,14 @@
 
 	@Override
-	public Action[] getMenuEntries() {
-        return new Action[]{
-                LayerListDialog.getInstance().createShowHideLayerAction(),
-                LayerListDialog.getInstance().createDeleteLayerAction(),
-                SeparatorLayerAction.INSTANCE,
+	public Component[] getMenuEntries() {
+        return new Component[]{
+                new JMenuItem(LayerListDialog.getInstance().createShowHideLayerAction(this)),
+                new JMenuItem(LayerListDialog.getInstance().createDeleteLayerAction(this)),
+                new JSeparator(),
                 //TODO here my stuff
-                new LayerListPopup.InfoAction(this)};//TODO here infos about the linked videos
-	}
-
+                new JSeparator(),
+                new JMenuItem(new LayerListPopup.InfoAction(this))};//TODO here infos about the linked videos
+	}
+	  
 
 
@@ -99,9 +121,9 @@
 	@Override
 	public void mergeFrom(Layer arg0) {
-
-	}
-
-
-
+		
+	}
+
+	
+	
 	@Override
 	//Draw the current position, infos, waypoints
@@ -157,5 +179,5 @@
 			{
 				p=Main.map.mapView.getPoint(iconPosition.getEastNorth());
-				icon.paintIcon(null, g, p.x-icon.getIconWidth()/2, p.y-icon.getIconHeight()/2);
+				icon.paintIcon(null, g, p.x-icon.getIconWidth()/2, p.y-icon.getIconHeight()/2);				
 				//g.drawString(mins.format(iconPosition.getTime()),p.x-10,p.y-10); //TODO when synced we might wan't to use a different layout
 				g.drawString(gpsTimeCode.format(iconPosition.getTime()),p.x-10,p.y-10);
@@ -166,10 +188,10 @@
 			if (player.getCurr()!=null){
 			p=Main.map.mapView.getPoint(player.getCurr().getEastNorth());
-			icon.paintIcon(null, g, p.x-icon.getIconWidth()/2, p.y-icon.getIconHeight()/2);
+			icon.paintIcon(null, g, p.x-icon.getIconWidth()/2, p.y-icon.getIconHeight()/2);			
 			g.drawString(gpsTimeCode.format(player.getCurr().getTime()),p.x-10,p.y-10);
 			}
 		}
 	}
-
+	
 	//finds the first waypoint that is nearby the given point
 	private WayPoint getNearestWayPoint(Point mouse)
@@ -183,13 +205,13 @@
 			p = Main.map.mapView.getPoint(n.getEastNorth());
 			if (rect.contains(p))
-			{
+			{				
 				return n;
 			}
-
+			
 		}
 		return null;
-
-	}
-
+		
+	}
+	
 	//upper left corner like rectangle
 	private Rectangle getIconRect()
@@ -206,8 +228,8 @@
 	}
 
-	public void mouseClicked(MouseEvent e) {
-	}
-
-	public void mouseEntered(MouseEvent arg0) {
+	public void mouseClicked(MouseEvent e) {		
+	}
+
+	public void mouseEntered(MouseEvent arg0) {	
 	}
 
@@ -228,9 +250,9 @@
 			}
 		}
-
-	}
-
+		
+	}
+	
 	//
-	public void mouseReleased(MouseEvent e) {
+	public void mouseReleased(MouseEvent e) {		
 		//only leftclicks on our layer
 		if(e.getButton() == MouseEvent.BUTTON1) {
@@ -251,11 +273,11 @@
 			Main.map.mapView.repaint();
 		}
-
-	}
-
+		
+	}
+	
 	//slide and restrict during movement
-	public void mouseDragged(MouseEvent e) {
+	public void mouseDragged(MouseEvent e) {		
 		if(dragIcon)
-		{
+		{			
 			mouse=e.getPoint();
 			//restrict to GPS track
@@ -267,7 +289,7 @@
 
 	//visualize drag&drop
-	public void mouseMoved(MouseEvent e) {
+	public void mouseMoved(MouseEvent e) {		
 		if (player.getCurr()!=null)
-		{
+		{						
 			if (getIconRect().contains(e.getPoint()))
 			{
@@ -279,12 +301,12 @@
 			}
 		}
-
+		
 	}
 
 	public void setGPSPlayer(GPSVideoPlayer player) {
 		this.gps = player;
-
-	}
-
+		
+	}
+	
 	public static void addObserver(PlayerObserver observer) {
 
@@ -293,5 +315,5 @@
     }
 
-
+ 
 
     public static void removeObserver(PlayerObserver observer) {
