public StaticMeshVegetationPickhandler(TerrainEditorPanel panel, bool bAdd)
 {
     _terrainPanel = panel;
     _bAdd = bAdd;
 }
        /// <summary>
        /// InitPluginModule : called at plugin initialisation time: Add the relevant shape creators here
        /// </summary>
        public override bool InitPluginModule()
        {
            TerrainManaged.ManagedModule.InitManagedModule();
              EDITOR_PLUGIN_INFO.NativePluginNames = new string[] { "VisionEnginePlugin" };

            TerrainEditor.Init();

              // Add IShapeCreatorPlugin
            _heightFieldCreator = new TerrainShapeCreator();
            EditorManager.ShapeCreatorPlugins.Add(_heightFieldCreator);

              // add default filter:
              TerrainEditor.HeightmapImporterList.Add(new ImportHeightmapTEX16bpp());
              TerrainEditor.HeightmapImporterList.Add(new ImportHeightmapRAW());
              TerrainEditor.HeightmapImporterList.Add(new ImportHeightmapDDS());

              TerrainEditor.HeightmapFilterList.Add(new HeightmapClearFilter());
              TerrainEditor.HeightmapFilterList.Add(new HeightmapScaleElevateFilter());

              TerrainEditor.DecorationFilterList.Add(new DecorationClearFilter());
              TerrainEditor.DecorationFilterList.Add(new DecorationImportFromLuminanceFilter());
              TerrainEditor.DecorationFilterList.Add(new DecorationFromDetailTextureFilter());
              TerrainEditor.DecorationFilterList.Add(new DecorationFromSlopeFilter());

            // create panel
            _panel = new TerrainEditorPanel(EditorManager.ApplicationLayout.DockingArea);
            _panel.ShowDockable();
              TerrainEditor.EditorPanel = _panel;

              // register tests:
              TestSuiteBuilder testBuilder = new TestSuiteBuilder();
              TestSuite testSuite = testBuilder.Build(typeof(EditorPlugin).Assembly.FullName);
              TestManager.AddTestSuite(testSuite);

              return true;
        }