Index: /applications/editors/josm/plugins/ImportImagePlugin/build.xml
===================================================================
--- /applications/editors/josm/plugins/ImportImagePlugin/build.xml	(revision 29804)
+++ /applications/editors/josm/plugins/ImportImagePlugin/build.xml	(revision 29805)
@@ -5,5 +5,5 @@
 	<property name="commit.message" value="use consistent plugin name (don't mix up the words)" />
 	<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-	<property name="plugin.main.version" value="4549" />
+	<property name="plugin.main.version" value="6097" />
 
     <property name="plugin.author" value="Christoph Beekmans, Fabian Kowitz, Anna Robaszkiewicz, Oliver Kuhn, Martin Ulitzny"/>
Index: /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImageFileImporter.java
===================================================================
--- /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImageFileImporter.java	(revision 29805)
+++ /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImageFileImporter.java	(revision 29805)
@@ -0,0 +1,65 @@
+package org.openstreetmap.josm.plugins.ImportImagePlugin;
+
+import static org.openstreetmap.josm.tools.I18n.tr;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+import javax.swing.JOptionPane;
+import org.apache.log4j.Logger;
+import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.ExtensionFileFilter;
+import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
+import org.openstreetmap.josm.gui.progress.ProgressMonitor;
+import org.openstreetmap.josm.io.IllegalDataException;
+import org.openstreetmap.josm.io.FileImporter;
+import org.openstreetmap.josm.plugins.ImportImagePlugin.ImageLayer.LayerCreationCancledException;
+
+/**
+ * Calss to open georeferened image with standard file open dialog 
+ */
+public class ImportImageFileImporter extends FileImporter {
+    
+    private Logger logger = Logger.getLogger(LoadImageAction.class);
+
+    public ImportImageFileImporter() {
+        super(new ExtensionFileFilter("tiff,tif,jpg,jpeg,bmp,png", "jpg", "Georeferened image file [by ImportImage plugin] (*.jpg, *.jpeg, *.tif, *.tiff, *.png, *.bmp)"));
+    }
+
+    @Override
+    public boolean isBatchImporter() {
+        return true;
+    }
+
+    @Override
+    public double getPriority() {
+        return -3;
+    }
+
+    @Override
+    public void importData(List<File> files, ProgressMonitor progressMonitor) throws IOException, IllegalDataException {
+        if (null == files || files.isEmpty())  return;
+
+        for (File file: files) {
+            if (file.isDirectory()) continue;
+            ImageLayer layer = null;
+            logger.info("File choosen:" + file);
+            try {
+                layer = new ImageLayer(file);
+            } catch (LayerCreationCancledException e) {
+            // if user decides that layer should not be created just return.
+                continue;
+            } catch (Exception e) {
+               logger.error("Error while creating image layer: \n" + e.getMessage());
+                JOptionPane.showMessageDialog(null, tr("Error while creating image layer: {0}", e.getCause()));
+                continue;
+            }
+
+            // Add layer:
+            Main.main.addLayer(layer);
+            BoundingXYVisitor boundingXYVisitor = new BoundingXYVisitor();
+            layer.visitBoundingBox(boundingXYVisitor);
+            Main.map.mapView.recalculateCenterScale(boundingXYVisitor);
+        }
+    }
+}
Index: /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java
===================================================================
--- /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java	(revision 29804)
+++ /applications/editors/josm/plugins/ImportImagePlugin/src/org/openstreetmap/josm/plugins/ImportImagePlugin/ImportImagePlugin.java	(revision 29805)
@@ -16,4 +16,5 @@
 import org.openstreetmap.josm.actions.ExtensionFileFilter;
 import org.openstreetmap.josm.actions.JosmAction;
+import org.openstreetmap.josm.gui.MainMenu;
 import org.openstreetmap.josm.plugins.Plugin;
 import org.openstreetmap.josm.plugins.PluginInformation;
@@ -88,6 +89,7 @@
 
             // create new Action for menu entry
-            LoadImageAction loadFileAction = new LoadImageAction();
+            loadFileAction = new LoadImageAction();
             loadFileAction.setEnabled(true);
+            MainMenu.add(Main.main.menu.imagerySubMenu, loadFileAction);
 
             // add menu entries
Index: /applications/editors/josm/plugins/canvec_helper/build.xml
===================================================================
--- /applications/editors/josm/plugins/canvec_helper/build.xml	(revision 29804)
+++ /applications/editors/josm/plugins/canvec_helper/build.xml	(revision 29805)
@@ -30,204 +30,18 @@
 <project name="canvec_helper" default="dist" basedir=".">
     <!-- enter the SVN commit message -->
-    <property name="commit.message" value="Commit message"/>
+    <property name="commit.message" value="JOSM/Canvec_helper: update to new menu structure"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="4394"/>
-    <!-- should not be necessary to change the following properties -->
-    <property name="josm" location="../../core/dist/josm-custom.jar"/>
-    <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="ant.build.javac.target" value="1.5"/>
-    <property name="plugin.dist.dir" value="../../dist"/>
-    <property name="plugin.jar" value="${plugin.dist.dir}/${ant.project.name}.jar"/>
-    <!--
-    **********************************************************
-    ** init - initializes the build
-    **********************************************************
+    <property name="plugin.main.version" value="6097"/>
+    
+    <!-- Configure these properties (replace "..." accordingly).
+         See http://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
     -->
-    <target name="init">
-        <mkdir dir="${plugin.build.dir}"/>
-    </target>
-    <!--
-    **********************************************************
-    ** compile - complies the source tree
-    **********************************************************
-    -->
-    <target name="compile" depends="init">
-        <echo message="compiling sources for  ${plugin.jar} ... "/>
-        <javac srcdir="src" classpath="${josm}" debug="true" destdir="${plugin.build.dir}">
-            <compilerarg value="-Xlint:deprecation"/>
-            <compilerarg value="-Xlint:unchecked"/>
-        </javac>
-    </target>
-    <!--
-    **********************************************************
-    ** dist - creates the plugin jar
-    **********************************************************
-    -->
-    <target name="dist" depends="compile,revision">
-        <echo message="creating ${ant.project.name}.jar ... "/>
-        <copy todir="${plugin.build.dir}/resources">
-            <fileset dir="resources"/>
-        </copy>
-        <copy todir="${plugin.build.dir}/images">
-            <fileset dir="images"/>
-        </copy>
-        <copy todir="${plugin.build.dir}/data">
-            <fileset dir="data"/>
-        </copy>
-        <copy todir="${plugin.build.dir}">
-            <fileset dir=".">
-                <include name="README"/>
-                <include name="LICENSE"/>
-            </fileset>
-        </copy>
-        <jar destfile="${plugin.jar}" basedir="${plugin.build.dir}">
-            <!--
-            ************************************************
-            ** configure these properties. Most of them will be copied to the plugins
-            ** manifest file. Property values will also show up in the list available
-            ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
-            **
-            ************************************************
-            -->
-            <manifest>
-                <attribute name="Author" value="Michael Bishop"/>
-                <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.canvec_helper.canvec_helper"/>
-                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
-                <attribute name="Plugin-Description" value="Overlays the canvec tile grid on the map and prints URL''s to the .zip files. Future goals: allow auto-downloading and loading of canvec .osm files"/>
-                <!--<attribute name="Plugin-Icon" value="..."/>-->
-                <!--<attribute name="Plugin-Link" value="http://ext.earthtools.ca/dummy"/>-->
-                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
-                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
-            </manifest>
-        </jar>
-    </target>
-    <!--
-    **********************************************************
-    ** revision - extracts the current revision number for the
-    **    file build.number and stores it in the XML property
-    **    version.*
-    **********************************************************
-    -->
-    <target name="revision">
-        <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
-            <env key="LANG" value="C"/>
-            <arg value="info"/>
-            <arg value="--xml"/>
-            <arg value="."/>
-        </exec>
-        <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true"/>
-        <delete file="REVISION"/>
-    </target>
-    <!--
-    **********************************************************
-    ** clean - clean up the build environment
-    **********************************************************
-    -->
-    <target name="clean">
-        <delete dir="${plugin.build.dir}"/>
-        <delete file="${plugin.jar}"/>
-    </target>
-    <!--
-    **********************************************************
-    ** install - install the plugin in your local JOSM installation
-    **********************************************************
-    -->
-    <target name="install" depends="dist">
-        <property environment="env"/>
-        <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
-            <and>
-                <os family="windows"/>
-            </and>
-        </condition>
-        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
-    </target>
-    <!--
-    ************************** Publishing the plugin *********************************** 
-    -->
-    <!--
-    ** extracts the JOSM release for the JOSM version in ../core and saves it in the 
-    ** property ${coreversion.info.entry.revision}
-    -->
-    <target name="core-info">
-        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
-            <env key="LANG" value="C"/>
-            <arg value="info"/>
-            <arg value="--xml"/>
-            <arg value="../../core"/>
-        </exec>
-        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
-        <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
-        <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
-        <delete file="core.info.xml"/>
-    </target>
-    <!-- commits the source tree for this plugin -->
-    <target name="commit-current">
-        <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
-        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-            <env key="LANG" value="C"/>
-            <arg value="commit"/>
-            <arg value="-m '${commit.message}'"/>
-            <arg value="."/>
-        </exec>
-    </target>
-    <!-- updates (svn up) the source tree for this plugin -->
-    <target name="update-current">
-        <echo>Updating plugin source ...</echo>
-        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-            <env key="LANG" value="C"/>
-            <arg value="up"/>
-            <arg value="."/>
-        </exec>
-        <echo>Updating ${plugin.jar} ...</echo>
-        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-            <env key="LANG" value="C"/>
-            <arg value="up"/>
-            <arg value="../dist/${plugin.jar}"/>
-        </exec>
-    </target>
-    <!-- commits the plugin.jar -->
-    <target name="commit-dist">
-        <echo>
-    ***** Properties of published ${plugin.jar} *****
-    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} *****                    
-                        
-    Now commiting ${plugin.jar} ...
-    </echo>
-        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
-            <env key="LANG" value="C"/>
-            <arg value="-m '${commit.message}'"/>
-            <arg value="commit"/>
-            <arg value="${plugin.jar}"/>
-        </exec>
-    </target>
-    <!-- make sure svn is present as a command line tool -->
-    <target name="ensure-svn-present">
-        <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
-            <env key="LANG" value="C"/>
-            <arg value="--version"/>
-        </exec>
-        <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
-            <!-- return code not set at all? Most likely svn isn't installed -->
-            <condition>
-                <not>
-                    <isset property="svn.exit.code"/>
-                </not>
-            </condition>
-        </fail>
-        <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
-            <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
-            <condition>
-                <isfailure code="${svn.exit.code}"/>
-            </condition>
-        </fail>
-    </target>
-    <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
-    </target>
+    <property name="plugin.author" value="Michael Bishop"/>
+    <property name="plugin.class" value="org.openstreetmap.josm.plugins.canvec_helper.canvec_helper"/>
+    <property name="plugin.description" value="Overlays the canvec tile grid on the map and prints URL''s to the .zip files. Future goals: allow auto-downloading and loading of canvec .osm files"/>
+    <property name="plugin.icon" value="images/favicon.png"/>
+    <property name="plugin.link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/FastDraw"/>
+
+    <!-- ** include targets that all plugins have in common ** -->
+    <import file="../build-common.xml"/>                
 </project>
Index: /applications/editors/josm/plugins/canvec_helper/nbproject/project.xml
===================================================================
--- /applications/editors/josm/plugins/canvec_helper/nbproject/project.xml	(revision 29805)
+++ /applications/editors/josm/plugins/canvec_helper/nbproject/project.xml	(revision 29805)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.ant.freeform</type>
+    <configuration>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
+            <name>canvec_helper</name>
+        </general-data>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2">
+            <!-- Не используйте диалоговое окно свойств проекта при редактировании данного файла вручную. -->
+            <name>canvec_helper</name>
+            <properties/>
+            <folders>
+                <source-folder>
+                    <label>canvec_helper</label>
+                    <location>.</location>
+                    <encoding>UTF-8</encoding>
+                </source-folder>
+                <source-folder>
+                    <label>src</label>
+                    <type>java</type>
+                    <location>src</location>
+                    <encoding>UTF-8</encoding>
+                </source-folder>
+            </folders>
+            <ide-actions>
+                <action name="build">
+                    <target>compile</target>
+                </action>
+                <action name="clean">
+                    <target>clean</target>
+                </action>
+                <action name="rebuild">
+                    <target>clean</target>
+                    <target>compile</target>
+                </action>
+                <action name="run">
+                    <target>runjosm</target>
+                </action>
+            </ide-actions>
+            <view>
+                <items>
+                    <source-folder style="packages">
+                        <label>src</label>
+                        <location>src</location>
+                    </source-folder>
+                    <source-file>
+                        <location>build.xml</location>
+                    </source-file>
+                </items>
+                <context-menu>
+                    <ide-action name="build"/>
+                    <ide-action name="rebuild"/>
+                    <ide-action name="clean"/>
+                    <ide-action name="run"/>
+                </context-menu>
+            </view>
+            <subprojects/>
+        </general-data>
+        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/3">
+            <compilation-unit>
+                <package-root>src</package-root>
+                <classpath mode="compile">../../core/src</classpath>
+                <source-level>1.6</source-level>
+            </compilation-unit>
+        </java-data>
+    </configuration>
+</project>
Index: /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecHelperAction.java
===================================================================
--- /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecHelperAction.java	(revision 29804)
+++ /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanvecHelperAction.java	(revision 29805)
@@ -10,4 +10,5 @@
 		parent_temp = parent;
 	}
+        @Override
 	public void actionPerformed(java.awt.event.ActionEvent action) {
 		canvec_layer layer;
Index: /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/SetMaxZoom.java
===================================================================
--- /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/SetMaxZoom.java	(revision 29804)
+++ /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/SetMaxZoom.java	(revision 29805)
@@ -12,4 +12,5 @@
 		this.parent = parent;
 	}
+        @Override
 	public void actionPerformed(ActionEvent ev) {
 		parent.setMaxZoom(level);
Index: /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_helper.java
===================================================================
--- /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_helper.java	(revision 29804)
+++ /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_helper.java	(revision 29805)
@@ -10,6 +10,7 @@
 		super(info);
 		System.out.println("in constructor");
-		Main.main.menu.imageryMenu.add(new CanvecHelperAction(this));
+		Main.main.menu.imagerySubMenu.add(new CanvecHelperAction(this));
 	}
+        @Override
 	public void mapFrameInitialized(MapFrame old, MapFrame new1) {
 		updateLayer();
Index: /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_layer.java
===================================================================
--- /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_layer.java	(revision 29804)
+++ /applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/canvec_layer.java	(revision 29805)
@@ -7,5 +7,4 @@
 import java.awt.event.MouseListener;
 import java.awt.Graphics2D;
-import java.awt.Point;
 import java.awt.Toolkit;
 import java.io.BufferedReader;
@@ -16,5 +15,4 @@
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
-import java.util.zip.ZipException;
 import javax.swing.AbstractAction;
 import javax.swing.Action;
@@ -23,5 +21,4 @@
 import javax.swing.JMenu;
 import javax.swing.JMenuItem;
-//import org.openstreetmap.josm.actions.RenameLayerAction;
 import org.openstreetmap.josm.data.Bounds;
 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
@@ -83,4 +80,5 @@
 		}
 	}
+        @Override
 	public Action[] getMenuEntries() {
 		return new Action[]{
@@ -98,8 +96,11 @@
 			this.parent = parent;
 		}
+                @Override
 		public void actionPerformed(ActionEvent e) {}
+                @Override
 		public boolean supportLayers(List<Layer> layers) {
 			return false;
 		}
+                @Override
 		public Component createMenuComponent() {
 			JMenu max_zoom = new JMenu("max zoom");
@@ -117,4 +118,5 @@
 			this.tile = tile;
 		}
+                @Override
 		public void actionPerformed(ActionEvent arg0) {
 			tile.can_download = true;
@@ -126,5 +128,7 @@
 			this.layer = layer;
 		}
+                @Override
 		public void actionPerformed(ActionEvent e) {}
+                @Override
 		public Component createMenuComponent() {
 			JMenu OpenOsm = new JMenu("Open tile");
@@ -134,4 +138,5 @@
 			return OpenOsm;
 		}
+                @Override
 		public boolean supportLayers(List<Layer> layers) {
 			return false;
@@ -144,4 +149,5 @@
 			this.tile = tile;
 		}
+                @Override
 		public void actionPerformed(ActionEvent e) {
 			tile.load_raw_osm();
@@ -153,8 +159,11 @@
 			this.parent = parent;
 		}
+                @Override
 		public void actionPerformed(ActionEvent e) {}
+                @Override
 		public boolean supportLayers(List<Layer> layers) {
 			return false;
 		}
+                @Override
 		public Component createMenuComponent() {
 			JMenu downloadCanvec = new JMenu("Download zip's");
@@ -168,16 +177,23 @@
 		this.max_zoom = max_zoom;
 	}
+        @Override
 	public Object getInfoComponent() {
 		return getToolTipText();
 	}
+        @Override
 	public String getToolTipText() {
 		return tr("canvec tile helper");
 	}
+        @Override
 	public void visitBoundingBox(BoundingXYVisitor v) {}
+        @Override
 	public boolean isMergable(Layer other) {
 		return false;
 	}
+        @Override
 	public void mergeFrom(Layer from) {}
+        @Override
 	public Icon getIcon() { return layerIcon; }
+        @Override
 	public void paint(Graphics2D g, MapView mv, Bounds bounds) {
 		//long start = System.currentTimeMillis();
@@ -194,8 +210,13 @@
 		//System.out.println((end-start)+"ms spent");
 	}
+        @Override
 	public void mouseExited(MouseEvent e) {}
+        @Override
 	public void mouseEntered(MouseEvent e) {}
+        @Override
 	public void mouseReleased(MouseEvent e) {}
+        @Override
 	public void mousePressed(MouseEvent e) {}
+        @Override
 	public void mouseClicked(MouseEvent e) {
 		System.out.println("click!");
Index: /applications/editors/josm/plugins/pdfimport/build.xml
===================================================================
--- /applications/editors/josm/plugins/pdfimport/build.xml	(revision 29804)
+++ /applications/editors/josm/plugins/pdfimport/build.xml	(revision 29805)
@@ -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="6088"/>
+    <property name="plugin.main.version" value="6097"/>
     
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/pdfimport/nbproject/project.xml
===================================================================
--- /applications/editors/josm/plugins/pdfimport/nbproject/project.xml	(revision 29805)
+++ /applications/editors/josm/plugins/pdfimport/nbproject/project.xml	(revision 29805)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.ant.freeform</type>
+    <configuration>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
+            <name>pdfimport</name>
+        </general-data>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2">
+            <!-- Не используйте диалоговое окно свойств проекта при редактировании данного файла вручную. -->
+            <name>pdfimport</name>
+            <properties/>
+            <folders>
+                <source-folder>
+                    <label>pdfimport</label>
+                    <location>.</location>
+                    <encoding>UTF-8</encoding>
+                </source-folder>
+                <source-folder>
+                    <label>src</label>
+                    <type>java</type>
+                    <location>src</location>
+                    <encoding>UTF-8</encoding>
+                </source-folder>
+            </folders>
+            <ide-actions>
+                <action name="build">
+                    <target>compile</target>
+                </action>
+                <action name="clean">
+                    <target>clean</target>
+                </action>
+                <action name="run">
+                    <target>runjosm</target>
+                </action>
+                <action name="rebuild">
+                    <target>clean</target>
+                    <target>compile</target>
+                </action>
+            </ide-actions>
+            <view>
+                <items>
+                    <source-folder style="packages">
+                        <label>src</label>
+                        <location>src</location>
+                    </source-folder>
+                    <source-file>
+                        <location>build.xml</location>
+                    </source-file>
+                </items>
+                <context-menu>
+                    <ide-action name="build"/>
+                    <ide-action name="rebuild"/>
+                    <ide-action name="clean"/>
+                    <ide-action name="run"/>
+                </context-menu>
+            </view>
+            <subprojects/>
+        </general-data>
+        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/3">
+            <compilation-unit>
+                <package-root>src</package-root>
+                <classpath mode="compile">../../core/src</classpath>
+                <source-level>1.6</source-level>
+            </compilation-unit>
+        </java-data>
+    </configuration>
+</project>
Index: /applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java
===================================================================
--- /applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java	(revision 29804)
+++ /applications/editors/josm/plugins/pdfimport/src/pdfimport/PdfImportPlugin.java	(revision 29805)
@@ -17,6 +17,6 @@
 	public PdfImportPlugin(PluginInformation info) {
 		super(info);
-		name = tr("Import PDf file");
-		MainMenu.add(Main.main.menu.dataMenu, new PdfImportAction());
+		name = tr("Import PDF file");
+		MainMenu.add(Main.main.menu.imagerySubMenu, new PdfImportAction());
 	}
 }
Index: /applications/editors/josm/plugins/piclayer/build.xml
===================================================================
--- /applications/editors/josm/plugins/piclayer/build.xml	(revision 29804)
+++ /applications/editors/josm/plugins/piclayer/build.xml	(revision 29805)
@@ -3,5 +3,5 @@
     <property name="commit.message" value="PicLayer - #8743 - fixed NPE when removing last layer"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="6088"/>
+    <property name="plugin.main.version" value="6097"/>
 	
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/piclayer/nbproject/project.xml
===================================================================
--- /applications/editors/josm/plugins/piclayer/nbproject/project.xml	(revision 29805)
+++ /applications/editors/josm/plugins/piclayer/nbproject/project.xml	(revision 29805)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://www.netbeans.org/ns/project/1">
+    <type>org.netbeans.modules.ant.freeform</type>
+    <configuration>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
+            <name>PicLayer</name>
+        </general-data>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2">
+            <!-- Не используйте диалоговое окно свойств проекта при редактировании данного файла вручную. -->
+            <name>PicLayer</name>
+            <properties/>
+            <folders>
+                <source-folder>
+                    <label>src</label>
+                    <type>java</type>
+                    <location>src</location>
+                    <encoding>UTF-8</encoding>
+                </source-folder>
+                <source-folder>
+                    <label>PicLayer</label>
+                    <location>.</location>
+                    <encoding>UTF-8</encoding>
+                </source-folder>
+            </folders>
+            <ide-actions>
+                <action name="build">
+                    <target>compile</target>
+                </action>
+                <action name="clean">
+                    <target>clean</target>
+                </action>
+                <action name="run">
+                    <target>runjosm</target>
+                </action>
+                <action name="rebuild">
+                    <target>clean</target>
+                    <target>compile</target>
+                </action>
+            </ide-actions>
+            <view>
+                <items>
+                    <source-folder style="packages">
+                        <label>src</label>
+                        <location>src</location>
+                    </source-folder>
+                    <source-file>
+                        <location>build.xml</location>
+                    </source-file>
+                </items>
+                <context-menu>
+                    <ide-action name="build"/>
+                    <ide-action name="rebuild"/>
+                    <ide-action name="clean"/>
+                    <ide-action name="run"/>
+                </context-menu>
+            </view>
+        </general-data>
+        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/3">
+            <compilation-unit>
+                <package-root>src</package-root>
+                <classpath mode="compile">../../core/src</classpath>
+                <source-level>1.6</source-level>
+            </compilation-unit>
+        </java-data>
+    </configuration>
+</project>
Index: /applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java
===================================================================
--- /applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java	(revision 29804)
+++ /applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/PicLayerPlugin.java	(revision 29805)
@@ -21,19 +21,17 @@
 package org.openstreetmap.josm.plugins.piclayer;
 
-import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
-import static org.openstreetmap.josm.tools.I18n.marktr;
 import static org.openstreetmap.josm.tools.I18n.tr;
 
-import java.awt.event.KeyEvent;
 import java.util.ArrayList;
 import java.util.List;
 
-import javax.swing.JMenu;
 import javax.swing.JOptionPane;
 import javax.swing.UIManager;
 
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.actions.JosmAction;
 import org.openstreetmap.josm.actions.mapmode.MapMode;
 import org.openstreetmap.josm.gui.IconToggleButton;
+import org.openstreetmap.josm.gui.MainMenu;
 import org.openstreetmap.josm.gui.MapFrame;
 import org.openstreetmap.josm.gui.MapView;
@@ -64,6 +62,6 @@
 
     // Plugin menu
-    private JMenu menu = null;
-
+    JosmAction newLayerFromFileAction = new NewLayerFromFileAction();
+    JosmAction newLayerFromClipboardAction = new NewLayerFromClipboardAction();
     /**
      * Constructor...
@@ -73,15 +71,8 @@
 
         // Create menu entry
-        if ( Main.main.menu != null ) {
-            menu = Main.main.menu.addMenu(marktr("PicLayer") , KeyEvent.VK_L, Main.main.menu.getDefaultMenuPos(), ht("/Plugin/PicLayer"));
-        }
-
+        
         // Add menu items
-        if ( menu != null ) {
-            menu.add(new NewLayerFromFileAction());
-            menu.add(new NewLayerFromClipboardAction());
-            menu.setEnabled(false);
-        }
-
+        MainMenu.add(Main.main.menu.imagerySubMenu, newLayerFromFileAction);
+        MainMenu.add(Main.main.menu.imagerySubMenu, newLayerFromClipboardAction);
         // Listen to layers
         MapView.addLayerChangeListener(this);
@@ -154,5 +145,6 @@
     @Override
     public void layerAdded(Layer arg0) {
-        menu.setEnabled(true);
+        newLayerFromClipboardAction.setEnabled(true);
+        newLayerFromClipboardAction.setEnabled(true);
     }
 
@@ -171,5 +163,6 @@
         // Why should I do all these checks now?
         boolean enable = Main.map != null && Main.map.mapView != null && Main.map.mapView.getAllLayers() != null && Main.map.mapView.getAllLayers().size() != 0;
-        menu.setEnabled(enable);
+        newLayerFromClipboardAction.setEnabled(enable);
+        newLayerFromClipboardAction.setEnabled(enable);
     }
 };
Index: /applications/editors/josm/plugins/walkingpapers/build.xml
===================================================================
--- /applications/editors/josm/plugins/walkingpapers/build.xml	(revision 29804)
+++ /applications/editors/josm/plugins/walkingpapers/build.xml	(revision 29805)
@@ -17,5 +17,5 @@
     <property name="commit.message" value="Changed the constructor signature of the plugin main class"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="6082"/>
+    <property name="plugin.main.version" value="6097"/>
 
     <property name="plugin.author" value="Frederik Ram"/>
Index: /applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersPlugin.java
===================================================================
--- /applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersPlugin.java	(revision 29804)
+++ /applications/editors/josm/plugins/walkingpapers/src/org/openstreetmap/josm/plugins/walkingpapers/WalkingPapersPlugin.java	(revision 29805)
@@ -27,7 +27,7 @@
     {
         super(info);
-        walkingPapersMenu = Main.main.menu.imageryMenu;
+        walkingPapersMenu = Main.main.menu.imagerySubMenu;
          // ht("/Plugin/WalkingPapers"));
-        MainMenu.add(Main.main.menu.imageryMenu, new WalkingPapersAddLayerAction(), false, 0);
+        MainMenu.add(walkingPapersMenu, new WalkingPapersAddLayerAction(), false, 0);
     }
 }
