001/* An attribute that creates an editor to configure and run an ExceptionManager. 002 003 Copyright (c) 2006-2014 The Regents of the University of California. 004 All rights reserved. 005 Permission is hereby granted, without written agreement and without 006 license or royalty fees, to use, copy, modify, and distribute this 007 software and its documentation for any purpose, provided that the above 008 copyright notice and the following two paragraphs appear in all copies 009 of this software. 010 011 IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY 012 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 013 ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF 014 THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF 015 SUCH DAMAGE. 016 017 THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, 018 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 019 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE 020 PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF 021 CALIFORNIA HAS NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, 022 ENHANCEMENTS, OR MODIFICATIONS. 023 024 PT_COPYRIGHT_VERSION_2 025 COPYRIGHTENDKEY 026 027 */ 028package ptolemy.actor.lib.gui; 029 030import java.awt.Frame; 031 032import ptolemy.actor.gui.EditorFactory; 033import ptolemy.kernel.util.IllegalActionException; 034import ptolemy.kernel.util.NameDuplicationException; 035import ptolemy.kernel.util.NamedObj; 036 037////ExceptionManagerGUIFactory 038 039/** 040 This is an attribute that creates an editor for configuring and 041 running the exception manager. This is designed to be contained by 042 an instance of ExceptionManager or a subclass of ExceptionManager. 043 It customizes the user interface for "configuring" the exception manager. 044 This UI will be invoked when you double click on the exception manager. 045 046 @author Edward A. Lee, Elizabeth Latronico 047 @version $Id$ 048 @since Ptolemy II 10.0 049 @Pt.ProposedRating Red (eal) 050 @Pt.AcceptedRating Red (eal) 051 */ 052public class ExceptionManagerGUIFactory extends EditorFactory { 053 054 /** Construct a factory with the specified container and name. 055 * @param container The container. 056 * @param name The name of the factory. 057 * @exception IllegalActionException If the factory is not of an 058 * acceptable attribute for the container. 059 * @exception NameDuplicationException If the name coincides with 060 * an attribute already in the container. 061 */ 062 public ExceptionManagerGUIFactory(NamedObj container, String name) 063 throws IllegalActionException, NameDuplicationException { 064 super(container, name); 065 066 } 067 068 /////////////////////////////////////////////////////////////////// 069 //// public methods //// 070 071 /** Create an editor for configuring the specified object with the 072 * specified parent window. 073 * @param object The object to configure. 074 * @param parent The parent window, or null if there is none. 075 */ 076 @Override 077 public void createEditor(NamedObj object, Frame parent) { 078 // This is always used to configure the container, so 079 // we just use that. 080 // TODO: What goes here? 081 082 } 083 084}