Package org.locationtech.udig.tools.jgrass.orientationview

Source Code of org.locationtech.udig.tools.jgrass.orientationview.ViewFeatureOrientationCommand

/*
* uDig - User Friendly Desktop Internet GIS client
* (C) HydroloGIS - www.hydrologis.com
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* (http://www.eclipse.org/legal/epl-v10.html), and the HydroloGIS BSD
* License v1.0 (http://udig.refractions.net/files/hsd3-v10.html).
*/
package org.locationtech.udig.tools.jgrass.orientationview;

import org.locationtech.udig.ui.operations.IOp;

import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.geotools.data.FeatureSource;

import org.locationtech.udig.tools.jgrass.utils.AbstractHandlerCommand;

/**
*
* Command for viewing orientation.
*
* @author Andrea Antonello (www.hydrologis.com)
*/
public class ViewFeatureOrientationCommand extends AbstractHandlerCommand {

    public Object execute( ExecutionEvent event ) throws ExecutionException {
        final IOp op = new ViewFeatureOrientation();
        try {
            runOp(op, FeatureSource.class);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

}
TOP

Related Classes of org.locationtech.udig.tools.jgrass.orientationview.ViewFeatureOrientationCommand

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.