Index: applications/editors/josm/plugins/pdfimport/build.xml
===================================================================
--- applications/editors/josm/plugins/pdfimport/build.xml	(revision 29646)
+++ applications/editors/josm/plugins/pdfimport/build.xml	(revision 29803)
@@ -4,5 +4,5 @@
     <property name="commit.message" value="Initial pdfimport version"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="5236"/>
+    <property name="plugin.main.version" value="6088"/>
     
     <!-- Configure these properties (replace "..." accordingly).
Index: applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java
===================================================================
--- applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java	(revision 29646)
+++ applications/editors/josm/plugins/pdfimport/src/pdfimport/LoadPdfDialog.java	(revision 29803)
@@ -65,5 +65,5 @@
 public class LoadPdfDialog extends JFrame{
 
-	class LoadProgressRenderer implements ProgressRenderer{
+    	class LoadProgressRenderer implements ProgressRenderer{
 		private final JProgressBar pBar;
 		private String title = "";
@@ -167,6 +167,6 @@
 		this.removeLayer();
 	}
-
-	private void addListeners() {
+        
+ 	private void addListeners() {
 
 		this.projectionCombo.addActionListener(new ActionListener() {
Index: applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java
===================================================================
--- applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java	(revision 29646)
+++ applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java	(revision 29803)
@@ -3,8 +3,6 @@
 import static org.openstreetmap.josm.tools.I18n.tr;
 
-import javax.swing.JMenu;
-import javax.swing.JMenuItem;
-
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.gui.MainMenu;
 import org.openstreetmap.josm.plugins.Plugin;
 import org.openstreetmap.josm.plugins.PluginInformation;
@@ -20,21 +18,5 @@
 		super(info);
 		name = tr("Import PDf file");
-		JMenu toolsMenu = null;
-		for (int i = 0; i < Main.main.menu.getMenuCount() && toolsMenu == null; i++) {
-			JMenu menu = Main.main.menu.getMenu(i);
-			String name = menu.getText();
-			if (name != null && name.equals(tr("Tools"))) {
-				toolsMenu = menu;
-			}
-		}
-
-		if (toolsMenu == null) {
-			toolsMenu = new JMenu(name);
-			toolsMenu.add(new JMenuItem(new PdfImportAction()));
-			Main.main.menu.add(toolsMenu, 2);
-		} else {
-			toolsMenu.addSeparator();
-			toolsMenu.add(new JMenuItem(new PdfImportAction()));
-		}
+		MainMenu.add(Main.main.menu.dataMenu, new PdfImportAction());
 	}
 }
