|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.debugger.importd2; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport; import org.openide.TopManager; import org.openide.debugger.Debugger; import org.openide.debugger.DebuggerException; import org.openide.text.Line; import org.netbeans.modules.debugger.*; /** * Standart implementation of Watch interface. * @see org.openide.debugger.Watch * * @author Jan Jancura * @version 0.18, Feb 23, 1998 */ public class ImportWatch extends AbstractWatch implements Validator.Object { /** generated Serialized Version UID */ static final long serialVersionUID = 3431277044447811206L; // private variables ..................................................... private String errorMessage = null; private String name = ""; private String type; private String value; private boolean isHidden; private boolean valid = false; private ImportDebugger debugger; private transient PropertyChangeSupport pcs; // init ..................................................................... /** * Non public constructor called from the JavaDebugger only. * User must create watch from Debugger.getNewWatch () method. */ ImportWatch (ImportDebugger debugger, boolean hidden) { this.debugger = debugger; this.isHidden = hidden; init (); } protected void init () { pcs = new PropertyChangeSupport (this); debugger.getValidator ().add (this); } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { in.defaultReadObject (); init (); } // Watch implementation .................................................... /** Remove the watch from the list of all watches in the system. */ public void remove () { debugger.removeWatch (this); } /** Get the name of the variable to watch. * * @return the variable name */ public String getVariableName () { return name; } /** Set the variable name to watch. * * @param name string name of the variable to watch */ public void setVariableName (String name) { this.name = name; valid = false; } /** Get a textual representation of the value. * The watch should convert * the real value to a string representation. So if the watch represents * a |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.