Package org.locationtech.udig.issues.test

Source Code of org.locationtech.udig.issues.test.DummyAutoIssueFixer

/*
*    uDig - User Friendly Desktop Internet GIS client
*    http://udig.refractions.net
*    (C) 2012, Refractions Research Inc.
*
* 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 Refractions BSD
* License v1.0 (http://udig.refractions.net/files/bsd3-v10.html).
*/
package org.locationtech.udig.issues.test;

import org.locationtech.udig.core.enums.Resolution;
import org.locationtech.udig.issues.IIssue;

import org.eclipse.ui.IMemento;

/**
* Issues are automatically fixed by this fixer, upon calling the fix method.
* <p>
*
* </p>
* @author chorner
* @since 1.1.0
*/
public class DummyAutoIssueFixer extends DummyIssueFixer {

    public void fix( Object object, IMemento fixerMemento ) {
        IIssue issue = (IIssue) object;
        //resolve it right now
        issue.setResolution(Resolution.RESOLVED);
    }

}
TOP

Related Classes of org.locationtech.udig.issues.test.DummyAutoIssueFixer

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.