/*
 * Copyright (c) 2014 Paul Scherrer Institute. All rights reserved.
 */

import ch.psi.pshell.ui.Plugin;
import ch.psi.pshell.epics.Scienta;
import java.util.logging.Level;

/**
 *
 */
public class CustomStopAll implements Plugin {
   
    //Overridable callbacks
    @Override
    public void onStoppedDevices() {        
    	try{ 
    	    ((Scienta)getDevice("scienta")).zeroSupplies();
    	} catch (Exception ex){
    		getLogger().log(Level.WARNING, null, ex);
    	}
    }
    
}    
