content: // ===============================================================================
  // Authors: AFRL/RQQD
  // Organization: Air Force Research Laboratory, Aerospace Systems Directorate, Power and Control Division
  // 
  // Copyright (c) 2017 Government of the United State of America, as represented by
  // the Secretary of the Air Force.  No copyright is claimed in the United States under
  // Title 17, U.S. Code.  All Other Rights Reserved.
  // ===============================================================================
  
  /*
   * Created on Apr 26, 2005
   */
  package org.flexdock.plaf.resources;
  
  import javax.swing.Action;
  
  import org.flexdock.plaf.resources.action.DefaultAction;
  import org.flexdock.util.Utilities;
  
  /**
   * @author Christopher Butler
   */
  public class ActionResourceHandler extends ResourceHandler {
  
      public Object getResource(String stringValue) {
          Object obj = Utilities.createInstance(stringValue);
          if(!(obj instanceof Action))
              obj = new DefaultAction();
          return obj;
      }
  }
  