index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/abbot/abbot/1.4.0/abbot | java-sources/abbot/abbot/1.4.0/abbot/util/SystemState.java | package abbot.util;
import java.awt.AWTException;
import java.awt.Toolkit;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.io.PrintStream;
import java.util.Properties;
import javax.swing.UIManager;
import abbot.Log;
/** Preserve and restore system state.
This includes the following:
<ul>
... |
0 | java-sources/abbot/abbot/1.4.0/abbot | java-sources/abbot/abbot/1.4.0/abbot/util/Tee.java | /*
* Copyright (c) 2006 Timothy Wall, All Rights Reserved
*/
package abbot.util;
import java.io.PrintStream;
/** Splits a {@link PrintStream} into two targets. Useful for making
* a copy of stream go somewhere else, such as redirecting stdout/stderr
* to a file.
*/
public class Tee extends PrintStream {
pri... |
0 | java-sources/abbot/abbot/1.4.0/abbot | java-sources/abbot/abbot/1.4.0/abbot/util/ThreadTerminatingSecurityManager.java | package abbot.util;
import java.security.Permission;
import java.util.*;
import abbot.NoExitSecurityManager;
/** Provides a method for terminating threads over which you otherwise have no
* control. Usually works.<p>
* NOTE: Still needs some work; if main script editor exits from the event
* dispatch thread, an ... |
0 | java-sources/abbot/abbot/1.4.0/abbot | java-sources/abbot/abbot/1.4.0/abbot/util/WeakAWTEventListener.java | package abbot.util;
import java.awt.*;
import java.awt.event.*;
import java.lang.ref.*;
/** Provides add-and-forget listening to the AWT event queue.
* Provides an AWTEventListener which will automatically disconnect the
* target listener when the target gets garbage-collected. Once the target
* is GC'd, this li... |
0 | java-sources/abbot/abbot/1.4.0/junit/extensions | java-sources/abbot/abbot/1.4.0/junit/extensions/abbot/ComponentTestFixture.java | package junit.extensions.abbot;
import abbot.tester.Robot;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.lang.reflect.*;
import java.util.Iterator;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import junit.framework.TestCase;
import abbot.*;
import abbot.finder.*;
import a... |
0 | java-sources/abbot/abbot/1.4.0/junit/extensions | java-sources/abbot/abbot/1.4.0/junit/extensions/abbot/RepeatHelper.java | package junit.extensions.abbot;
import java.util.ArrayList;
import junit.extensions.RepeatedTest;
import junit.framework.*;
import abbot.Log;
/** Convenience functions to wrap a given test case such that individual
methods may be run with heavy repetition, and default suites run with
light repetition.
*/
... |
0 | java-sources/abbot/abbot/1.4.0/junit/extensions | java-sources/abbot/abbot/1.4.0/junit/extensions/abbot/SizeOf.java | package junit.extensions.abbot;
import abbot.InterruptedAbbotException;
import java.util.ArrayList;
public class SizeOf {
/** For use with constructors which require arguments. */
public static interface ObjectCreator {
Object create();
}
private static class ClassCreator implements ObjectC... |
0 | java-sources/abbot/abbot/1.4.0/junit/extensions | java-sources/abbot/abbot/1.4.0/junit/extensions/abbot/TestHelper.java | package junit.extensions.abbot;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Locale;
import junit.framework.*;
import junit.textui.*;
import abbot.Log;
/** Provides automatic test suite generation give... |
0 | java-sources/abbot/abbot/1.4.0/junit/extensions | java-sources/abbot/abbot/1.4.0/junit/extensions/abbot/Timer.java | package junit.extensions.abbot;
/**
Time and performance measurement utilities.
@author twall
*/
public class Timer {
/** Time base for elapsed time calculations. */
private long start;
/** Basic constructor which sets the timer base to the current time. */
public Timer() {
reset... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ActionMapModel.java | package abbot.editor;
import javax.swing.ActionMap;
import javax.swing.table.AbstractTableModel;
import abbot.i18n.Strings;
public class ActionMapModel extends AbstractTableModel {
public static ActionMapModel EMPTY = new ActionMapModel() {
public int getRowCount() { return 1; }
public Object get... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/CompactHierarchy.java | package abbot.editor;
import abbot.Log;
import java.awt.*;
import javax.swing.*;
import java.util.*;
import abbot.util.AWT;
import abbot.finder.Hierarchy;
import java.lang.reflect.Field;
import java.util.concurrent.Callable;
/** Provides a condensed, more easily readable version of the original
hierarchy.
... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ComponentBrowser.java | package abbot.editor;
import java.awt.*;
import java.awt.event.*;
import java.lang.reflect.Method;
import java.util.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import javax.swing.tree.*;
import javax.swing.table.*;
import abbot.*;
import abbot.editor.editors.XMLEditor;
import ab... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ComponentBrowserListener.java | package abbot.editor;
import java.awt.Component;
import abbot.script.ComponentReference;
public interface ComponentBrowserListener {
public void selectionChanged(ComponentBrowser src,
Component comp, ComponentReference ref);
public void propertyAction(ComponentBrowser src,
... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ComponentNode.java | package abbot.editor;
import java.awt.*;
import java.util.*;
import javax.swing.tree.*;
import abbot.finder.*;
import abbot.i18n.Strings;
import abbot.tester.Robot;
/** Provides a JTree-compatible node model for displaying a given hierarchy. */
public class ComponentNode extends DefaultMutableTreeNode {
privat... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ComponentPropertyModel.java | package abbot.editor;
import java.awt.*;
import java.lang.reflect.*;
import java.util.*;
import javax.swing.table.DefaultTableModel;
import abbot.Log;
import abbot.i18n.Strings;
import abbot.script.PropertyCall;
import abbot.tester.ComponentTester;
class ComponentPropertyModel extends DefaultTableModel {
... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ComponentTree.java | package abbot.editor;
import abbot.finder.Hierarchy;
import abbot.util.AWT;
import abbot.util.WeakAWTEventListener;
import java.awt.AWTEvent;
import java.awt.Component;
import java.awt.EventQueue;
import java.awt.Rectangle;
import java.awt.Window;
import java.awt.event.AWTEventListener;
import java.awt.event.Compone... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ComponentTreeIcons.java | package abbot.editor;
import java.awt.Component;
import javax.swing.*;
import java.util.*;
import java.net.URL;
/** Provides JTree icons for different Components. */
class ComponentTreeIcons {
private Map icons = new HashMap();
public Icon getIcon(Class cls) {
String className = cls.getName();
... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/Costello.java | package abbot.editor;
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import abbot.Platform;
import abbot.i18n.Strings;
/** Simple splash screen for the script editor. */
public class Costello {
private static final String BUNDLE = "abbot.editor.i18n.costello";
static {
// Do... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/CustomCheckBoxMenuItem.java |
package abbot.editor;
import java.beans.*;
import javax.swing.*;
import abbot.Log;
import abbot.editor.actions.*;
import abbot.editor.widgets.Mnemonic;
/** A custom JCheckBoxMenuItem that listens to the selected
* state of its toggle action, reflecting its state when the action changes.
*/
public class CustomCh... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/EditorConstants.java | package abbot.editor;
/** Provide Editor action key names and menu keys.
Action names are looked up via
{@link abbot.i18n.Strings#get(String)} by
prepending the string <code>"actions."</code>.
NOTE: to add a new editor action, define a key for it here and an action
for it in ScriptEditor. Add to t... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/EditorContext.java | package abbot.editor;
import abbot.finder.TestHierarchy;
import abbot.script.Script;
import java.awt.Component;
import java.io.File;
import java.util.HashSet;
import java.util.Set;
/**
* Provide a transport for the editor context. This is usefull in cases where
* the costello editor is invoked inside of another... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/FileSystemHelper.java | package abbot.editor;
import java.io.File;
/**
* This class is provided as part of the EditorContext object and allows the
* editor to make certain request of the ownining context.
*/
public class FileSystemHelper {
/**
* When the script editor is saving scripts it uses this function to ensure
... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/HierarchyWriter.java | package abbot.editor;
import java.awt.*;
import java.io.*;
import java.util.*;
import abbot.script.*;
import abbot.finder.Hierarchy;
/** Provides support for writing out a GUI hierarchy as XML. */
public class HierarchyWriter {
private Hierarchy hierarchy;
public HierarchyWriter(Hierarchy h) {
t... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/InputMapModel.java | package abbot.editor;
import javax.swing.InputMap;
import javax.swing.KeyStroke;
import javax.swing.table.AbstractTableModel;
import abbot.i18n.Strings;
public class InputMapModel extends AbstractTableModel {
public static InputMapModel EMPTY = new InputMapModel() {
public int getRowCount() { return 1; }... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/LogoLabel.java | package abbot.editor;
/** Provides the abbot/costello logo. */
import javax.swing.*;
import javax.swing.border.*;
import abbot.i18n.Strings;
class LogoLabel extends JLabel {
private static final String PATH = "icons/abbot.gif";
public LogoLabel() {
super(Strings.get("Splash"), JLabel.CENTER);
... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/LookAndFeelPreserver.java | package abbot.editor;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
import abbot.util.*;
/** Preserves the current LAF for a given component hierarchy. */
public class LookAndFeelPreserver {
private LookAndFeel laf;
private Map owned = new WeakHashMap();
/** Avoid ... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/OSXAdapter.java | package abbot.editor;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.Map;
import java.util.WeakHashMap;
import javax.swing.Action;
import abbot.Lo... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/Preferences.java | package abbot.editor;
import java.io.*;
import java.util.Properties;
import abbot.Log;
public class Preferences extends Properties {
public static final String PROPS_FILENAME = ".abbot.properties";
private File file;
public Preferences() {
this(PROPS_FILENAME);
}
public Preferences(Str... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ReferenceAttributeModel.java | package abbot.editor;
import javax.swing.table.*;
import java.util.*;
import abbot.i18n.Strings;
import abbot.script.*;
/** Provides a table model for ComponentReference attributes. */
public class ReferenceAttributeModel extends AbstractTableModel {
private ComponentReference reference;
private static Str... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ReferencesModel.java | package abbot.editor;
import javax.swing.table.AbstractTableModel;
import abbot.script.*;
/** Formats a list of ComponentReferences for display in a table. */
class ReferencesModel extends AbstractTableModel {
private Resolver resolver;
public ReferencesModel(Resolver resolver) {
this.resolver = res... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ScriptEditor.java | package abbot.editor;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.lang.reflect.*;
import java.net.URL;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.swing.filechooser.FileFilter;
import javax.swing.event.*;
import junit.extensions.abbot.*;
import abbot.Bu... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ScriptEditorFrame.java | package abbot.editor;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import abbot.*;
import abbot.editor.actions.*;
import abbot.editor.widgets.*;
import abbot.i18n.Strings;
import javax.swing.text.JTextComponent;
/**
* Provides the pri... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ScriptModel.java | package abbot.editor;
import java.io.IOException;
import java.util.*;
import javax.swing.table.AbstractTableModel;
import org.jdom.Element;
import abbot.Log;
import abbot.script.*;
/** Formats a Script for display in a table. Keeps track of
* "open" nodes to create a tree-like display
* NOTE: this is a brute-fo... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/ScriptTable.java | package abbot.editor;
import java.awt.*;
import java.awt.datatransfer.Transferable;
import java.awt.dnd.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.net.URL;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.swing.plaf.basic.BasicTreeUI;
import javax.swing.t... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/StepTransferable.java | package abbot.editor;
import java.awt.datatransfer.*;
import java.util.*;
import abbot.script.Step;
public class StepTransferable implements Transferable {
public static final DataFlavor STEP_FLAVOR =
new DataFlavor("application/x-java-serialized-object;class=abbot.script.Step", "Abbot script step");
... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/editor/TestSelector.java | package abbot.editor;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.List;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.event.*;
import junit.runner.*;
import abbot.Log;
import abbot.i18n.Strings;
import abbot.util.PathClassLoader;
import abbot.edi... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/actions/Command.java | package abbot.editor.actions;
public interface Command {
public void execute();
}
|
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/actions/CommandHistory.java | package abbot.editor.actions;
import java.util.ArrayList;
/** Keep a history of commands, enabling potentially unlimited undo.
This class is not synchronized.<p>
Note that undo is itself an undoable action.<p>
*/
public class CommandHistory {
private ArrayList list = new ArrayList();
/** The index o... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/actions/EditorAction.java | package abbot.editor.actions;
import java.awt.event.*;
import java.net.URL;
import javax.swing.*;
import abbot.Log;
import abbot.Platform;
import abbot.editor.*;
import abbot.editor.widgets.*;
import abbot.i18n.Strings;
/** Encapsulate GUI attributes for an editor action. */
public abstract class EditorAction
... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/actions/EditorToggleAction.java | package abbot.editor.actions;
import java.awt.event.*;
/** Encapsulate GUI attributes for an editor action. */
public class EditorToggleAction extends EditorAction {
public static final String STATE = "STATE";
public EditorToggleAction(String base) {
super(base);
setSelected(false);
}... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/actions/NoUndoException.java | package abbot.editor.actions;
public class NoUndoException extends Exception {
}
|
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/actions/Undoable.java | package abbot.editor.actions;
public interface Undoable {
public void undo();
}
|
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/actions/UndoableCommand.java | package abbot.editor.actions;
public interface UndoableCommand extends Command, Undoable {
}
|
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/ActionEditor.java | package abbot.editor.editors;
import java.lang.reflect.Method;
import java.util.ArrayList;
import abbot.script.Action;
/** Provide convenient editing of a Action step. */
public class ActionEditor extends CallEditor {
public ActionEditor(Action action) {
super(action);
}
// FIXME return the edi... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/AnnotationEditor.java | package abbot.editor.editors;
import java.awt.event.ActionEvent;
import javax.swing.*;
import abbot.*;
import abbot.i18n.Strings;
import abbot.script.Annotation;
/** A Annotation only has its description available for editing. */
public class AnnotationEditor extends StepEditor {
private Annotation annotation;
... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/AppletviewerEditor.java | package abbot.editor.editors;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.util.*;
import javax.swing.*;
import abbot.i18n.Strings;
import abbot.script.Appletviewer;
import abbot.editor.widgets.ArrayEditor;
/** Provide convenient editing of an applet launch step. */
public class AppletviewerEdit... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/AssertEditor.java | package abbot.editor.editors;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.util.*;
import javax.swing.*;
import abbot.i18n.Strings;
import abbot.script.*;
import abbot.tester.ComponentTester;
/** Provide convenient editing of an Assert step. */
public class AssertEditor extends PropertyCallEdit... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/CallEditor.java | package abbot.editor.editors;
import java.awt.event.*;
import java.lang.reflect.*;
import java.util.*;
import javax.swing.*;
import abbot.i18n.Strings;
import abbot.script.*;
import abbot.editor.widgets.*;
/**
Provide an editor for call steps.
@author Blake Christensen <bchristen@users.sourceforge.net>
@au... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/CommentEditor.java | package abbot.editor.editors;
import java.awt.event.ActionEvent;
import javax.swing.JTextArea;
import abbot.script.Comment;
/** A Comment only has its description available for editing. */
public class CommentEditor extends StepEditor {
private Comment comment;
private JTextArea description;
public Com... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/EventEditor.java | package abbot.editor.editors;
import javax.swing.*;
import abbot.Log;
import abbot.script.*;
/** Edit a raw AWTEvent. */
public class EventEditor extends StepEditor {
private Event event;
JComboBox type;
JComboBox kind;
JComboBox cref;
private boolean ignoreCombo = false;
JTextField xValue;... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/ExpressionEditor.java | package abbot.editor.editors;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JTextArea;
import javax.swing.JButton;
import abbot.i18n.Strings;
import abbot.script.Expression;
import javax.script.ScriptException;
/** A Expression only has its description available for editing. */
public class Express... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/FixtureEditor.java | /*
* Copyright (c) 2005 Oculus Technologies Corporation, All Rights Reserved
*/
package abbot.editor.editors;
import abbot.script.*;
/** Simplified version of {@link ScriptEditor}.
* @author twall
*
*/
public class FixtureEditor extends ScriptEditor {
/**
* @param script
*/
public FixtureEdito... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/ImportButton.java | /**
* Name........: ImportButton
* Description.: Button allowing to import an Eclipse project configuration.
* Author......: Daniel Kasmeroglu
* E-Mail......: costamojan@users.sourceforge.net
*/
package abbot.editor.editors;
import net.sf.ant4eclipse.tools.jdt.*;
import net.sf.ant4eclipse.model.jdt.launch.*;
... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/LaunchEditor.java | /**
* Name........: LaunchEditor
* Description.: Provide convenient editing of a launch step.
* Author......: Timothy Wall
* E-Mail......: twall@users.sourceforge.net
*/
package abbot.editor.editors;
import abbot.editor.widgets.*;
import abbot.script.*;
import abbot.i18n.*;
import abbot.util.*;
import javax.s... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/PropertyCallEditor.java | package abbot.editor.editors;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.lang.reflect.*;
import java.util.*;
import javax.swing.*;
import abbot.i18n.Strings;
import abbot.script.*;
import abbot.tester.ComponentTester;
/** Provide convenient editing of a PropertyCall step. */
public ab... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/SampleEditor.java | package abbot.editor.editors;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;
import abbot.i18n.Strings;
import abbot.script.Sample;
/** Provide convenient editing of a Sample step. */
public class SampleEditor extends PropertyCallEditor {
private Sample step;
private JTextField property;
... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/ScriptEditor.java | package abbot.editor.editors;
import java.awt.event.ActionEvent;
import java.io.File;
import javax.swing.*;
import abbot.Log;
import abbot.i18n.Strings;
import abbot.script.*;
import abbot.script.Script;
import abbot.editor.EditorConstants;
import abbot.editor.widgets.Mnemonic;
/** Provide convenient editing of a Scr... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/SequenceEditor.java | package abbot.editor.editors;
import abbot.script.Sequence;
/** Provide convenient editing of a Sequence step. */
public class SequenceEditor extends StepEditor {
public SequenceEditor(Sequence seq) {
super(seq);
}
}
|
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/StepChangeListener.java | package abbot.editor.editors;
import abbot.script.Step;
/** Provide a data change notification when a Step changes. */
public interface StepChangeListener {
void stepChanged(Step step);
}
|
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/StepEditor.java | package abbot.editor.editors;
import java.awt.*;
import java.awt.event.*;
import java.lang.reflect.Constructor;
import java.util.*;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import abbot.Log;
import abbot.i18n.Strings;
import abbot.script.*;
import abbot.editor.widgets.ArrayEditor;
import abbot.edi... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/editors/XMLEditor.java | package abbot.editor.editors;
import java.awt.Component;
import java.awt.event.*;
import java.util.EventObject;
import javax.swing.*;
import javax.swing.table.TableCellEditor;
import javax.swing.tree.TreeCellEditor;
import abbot.script.XMLifiable;
/**
* An editor for an XMLifiable object.
* It'd be nice to provi... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/AbstractButtonRecorder.java | package abbot.editor.recorder;
import java.awt.Component;
import java.awt.event.InputEvent;
import abbot.script.*;
/**
* Record basic semantic events you might find on an AbstractButton. This
* class handles a click on the button.
*/
public class AbstractButtonRecorder extends JComponentRecorder {
public Ab... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/AbstractInternalFrameWatcher.java | package abbot.editor.recorder;
import java.awt.AWTEvent;
import java.awt.event.*;
import javax.swing.JInternalFrame;
import javax.swing.event.*;
public abstract class AbstractInternalFrameWatcher
extends InternalFrameAdapter implements ComponentListener {
public AbstractInternalFrameWatcher(JInternalFrame f)... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/ButtonRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import abbot.script.*;
/**
* Record simple clicks on a Button component. <p>
*/
public class ButtonRecorder extends ComponentRecorder {
public ButtonRecorder(Resolver resolver) {
super(resolver);
}
/** Don't need to store any position or modifi... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/CheckboxRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import abbot.script.*;
/**
* Record basic click a Checkbox component. <p>
*/
public class CheckboxRecorder extends ComponentRecorder {
public CheckboxRecorder(Resolver resolver) {
super(resolver);
}
/** Don't need to store any position or modif... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/ChoiceRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.*;
import abbot.Log;
import abbot.script.*;
/**
* Record basic semantic events you might find on an Choice component. <p>
*/
public class ChoiceRecorder extends ComponentRecorder {
private Choice choice = null;
/** If selection is nul... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/ComponentRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.*;
import java.text.*;
import java.util.*;
import javax.swing.*;
import javax.swing.text.JTextComponent;
import abbot.BugReport;
import abbot.Log;
import abbot.Platform;
import abbot.finder.matchers.JMenuItemMatcher;
import abbot.i18n.Strings;... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/ContainerRecorder.java | package abbot.editor.recorder;
import abbot.script.Resolver;
/**
* Record basic semantic events you might find on an Container. <p>
*/
public class ContainerRecorder extends ComponentRecorder {
public ContainerRecorder(Resolver resolver) {
super(resolver);
}
}
|
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/DialogRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import abbot.script.*;
/**
* Record basic semantic events you might find on an Window. <p>
*/
public class DialogRecorder extends WindowRecorder {
public DialogRecorder(Resolver resolver) {
super(resolver);
}
protected Step createResize(Window... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/EventRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.*;
import java.lang.reflect.*;
import java.text.MessageFormat;
import java.util.*;
import javax.swing.*;
import abbot.*;
import abbot.i18n.Strings;
import abbot.script.*;
import abbot.script.Action;
import abbot.script.Event;
import abbot.script... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/FileDialogRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.WindowEvent;
import java.util.Iterator;
import java.util.Map;
import java.util.HashMap;
import abbot.script.*;
/**
* Recorder for the java.awt.FileDialog. Since this is a native component and
* no java events are generated other than window o... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/FrameRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.WindowEvent;
import abbot.Log;
import abbot.script.*;
/**
* Record basic semantic events you might find on an Window. <p>
*/
public class FrameRecorder extends WindowRecorder {
private Frame frame;
private int newState;
public Fr... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JComboBoxRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import abbot.Log;
import abbot.script.*;
import abbot.script.Action;
import abbot.tester.*;
import abbot.util.AWT;
/**
* Record basic semantic events you might find on an JComboBox. <p>
* <ul>
* <li>Select an item by... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JComponentRecorder.java | package abbot.editor.recorder;
import java.awt.AWTEvent;
import java.awt.event.KeyEvent;
import javax.swing.*;
import abbot.Log;
import abbot.script.*;
import abbot.tester.Robot;
import java.util.concurrent.Callable;
/**
* Record basic semantic events you might find on an JComponent. <p>
*
* Watches for events... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JInternalFrameRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.ComponentEvent;
import javax.swing.JInternalFrame;
import javax.swing.event.InternalFrameEvent;
import abbot.Log;
import abbot.script.*;
import abbot.tester.ComponentTester;
import abbot.util.AWT;
/**
* Handle the recording of events related t... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JListRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.InputEvent;
import java.util.ArrayList;
import javax.swing.JList;
import abbot.script.*;
/**
* Record basic semantic events you might find on an JList. <p>
* <ul>
* <li>Select a cell
* </ul>
*/
public class JListRecorder extends JComponent... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JMenuItemRecorder.java | package abbot.editor.recorder;
import java.awt.AWTEvent;
import abbot.script.Resolver;
/**
* Override AbstractButton behavior, since we expect to grab a menu selection
* instead of a click.
*/
public class JMenuItemRecorder extends AbstractButtonRecorder {
public JMenuItemRecorder(Resolver resolver) {
... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JTabbedPaneRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.MouseEvent;
import javax.swing.JTabbedPane;
import javax.swing.JMenuItem;
import javax.swing.plaf.TabbedPaneUI;
import abbot.Platform;
import abbot.tester.ComponentLocation;
import abbot.tester.JTabbedPaneLocation;
import abbot.script.*;
/**
*... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JTableRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import javax.swing.JTable;
import abbot.script.*;
/**
* Record basic semantic events you might find on an JTable. <p>
* <ul>
* <li>Click one or more times in a cell
* </ul>
*/
public class JTableReco... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JTextComponentRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.*;
import javax.swing.text.JTextComponent;
import abbot.Log;
import abbot.script.*;
/**
* Record basic semantic events you might find on an JTextComponent. <p>
*/
public class JTextComponentRecorder extends JComponentRecorder {
private J... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/JTreeRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import javax.swing.JTree;
import abbot.script.*;
import abbot.tester.*;
/**
* Record basic semantic events you might find on an JTree. <p>
* <ul>
* <li>Click one or more times in a cell
* </ul>
*/
pu... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/Recorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.*;
import abbot.*;
import abbot.i18n.Strings;
import abbot.script.*;
import abbot.script.Resolver;
import abbot.tester.Robot;
/**
* The <code>Recorder</code> provides a mechanism for recording an event stream and
* generating a sequence of scr... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/RecordingFailedException.java | package abbot.editor.recorder;
import java.lang.annotation.Documented;
public class RecordingFailedException extends RuntimeException {
public RecordingFailedException(String msg, Throwable cause) {
super(msg, cause);
}
public RecordingFailedException(Throwable thr) {
super(thr.getMessage(... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/SemanticEvents.java | package abbot.editor.recorder;
/** Provide mnemonic constants for different types of semantic events. */
public interface SemanticEvents {
/** No event recognized. */
static final int SE_NONE = -1;
/** Any event recognized. */
static final int SE_ANY = 0;
/** Window show/hide/move/resize/activate. ... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/SemanticRecorder.java | package abbot.editor.recorder;
import java.awt.AWTEvent;
import java.awt.event.*;
import java.util.ArrayList;
import abbot.*;
import abbot.script.*;
import abbot.script.Resolver;
/**
* Template for recording AWTEvents and converting them into an appropriate
* semantic event. The EventRecorder class decides which ... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/recorder/WindowRecorder.java | package abbot.editor.recorder;
import java.awt.*;
import java.awt.event.*;
import abbot.script.*;
import abbot.tester.WindowTracker;
/**
* Record basic semantic events you might find on an Window. <p>
*/
public class WindowRecorder extends ContainerRecorder {
private Window window;
private Point where;
... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/AbstractAnimatedIcon.java | package abbot.editor.widgets;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.ref.WeakReference;
import javax.swing.Timer;
/** Provide animation of auto-generated animations. Makes use of the repaint
* tracking structure ... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/AbstractComponentDecorator.java | package abbot.editor.widgets;
import java.awt.*;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.event.HierarchyEvent;
import java.awt.event.HierarchyListener;
import java.awt.event.MouseEvent;
import java.awt.geom.AffineTransform;
import java.awt.geom.Area;
import java.be... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/AnimatedIcon.java | package abbot.editor.widgets;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Point;
import java.awt.geom.AffineTransform;
import java.awt.image.ImageObserver;
import java.awt.image.ImageProducer;
import java.io.IOException;
import java.io.InputSt... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/ArrayEditor.java | package abbot.editor.widgets;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;
import abbot.i18n.Strings;
import abbot.editor.widgets.TextField;
/** Provides editing of a variable-length array of strings. Actions fired
will have the index of the changed item in the ID (or -1 ... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/GifDecoder.java | package abbot.editor.widgets;
import java.net.*;
import java.io.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
/**
* Class GifDecoder - Decodes a GIF file into one or more frames. <br>
*
* <pre>
* Example:
* GifDecoder d = new GifDecoder();
* d.read("sample.gif");
* ... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/Highlighter.java | package abbot.editor.widgets;
import java.awt.*;
import javax.swing.JComponent;
/** Provides a persistent border around a component, drawn <i>after</i> the
component itself is drawn.
*/
public class Highlighter extends AbstractComponentDecorator {
private static final float WIDTH = 2;
private static final... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/Mnemonic.java | package abbot.editor.widgets;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.lang.reflect.Method;
import javax.swing.*;
import abbot.Log;
import abbot.Platform;
import abbot.tester.KeyStrokeMap;
import abbot.util.AWT;
import abbot.i18n.Strings;
/** Provide access to mnemonics appropriate for the curr... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/SpinningDial.java | package abbot.editor.widgets;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.RenderingHints;
import java.awt.Transparency;
import java.awt.image.BufferedImage;
im... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/SpinningDialWaitIndicator.java | package abbot.editor.widgets;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.Rectangl... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/TextArea.java | package abbot.editor.widgets;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import abbot.Log;
/** A better text area that fires when focus leaves the component, and
also selects all the contents when the action is fired to indicate the
conte... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/TextField.java | package abbot.editor.widgets;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import abbot.Log;
/** A better text field with some useful features.
<ul>
<li>Fires when focus leaves the component.
<li>Selects all the contents when the action is fired to indica... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/TextFormat.java | package abbot.editor.widgets;
import abbot.i18n.Strings;
/** Provides text formatting utilities. */
public class TextFormat {
public static final int TOOLTIP_WRAP = 50;
public static final int DIALOG_WRAP = 60;
/** Turns "SomeRunTogetherWords" into "Some Run Together Words". */
public static String ... |
0 | java-sources/abbot/costello/1.4.0/abbot/editor | java-sources/abbot/costello/1.4.0/abbot/editor/widgets/WaitIndicator.java | package abbot.editor.widgets;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Graphics;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.Rectangle;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseMotionAdapter;
impor... |
0 | java-sources/abbot/costello/1.4.0/abbot | java-sources/abbot/costello/1.4.0/abbot/script/Action.java | package abbot.script;
import java.lang.reflect.Method;
import java.util.*;
import abbot.tester.*;
import abbot.util.AWT;
/** Encapsulate an action. Usage:<br>
* <blockquote><code>
* <action method="..." args="..."><br>
* <action method="..." args="component_id[,...]" class="..."><br>
* </code></block... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.