public void onSmoothHeightmap()
        {
            editor Editor = "Editor";

            if (!this.getActiveTerrain().AsBool())
                return;
            // Show the dialog first and let the user
            // set the smoothing parameters.

            // Now create the terrain smoothing action to
            // get the work done and perform later undos.

            TerrainSmoothAction action = new ObjectCreator("TerrainSmoothAction").Create();
            action.smooth(this.getActiveTerrain().AsString(), 1.0f, 1);
            action.addToManager(Editor.getUndoManager());
        }