public Object execute(Object theFrame) {
    ObjectEditor.setAttribute(
        AnInteractiveMethodInvoker.class, AttributeNames.SHOW_UNBOUND_BUTTONS, new Boolean(true));
    ObjectEditor.setAttribute(
        AnInteractiveMethodInvoker.class, AttributeNames.SHOW_BUTTON, new Boolean(true));

    ObjectEditor.setPropertyAttribute(
        AnInteractiveMethodInvoker.class, "parameters", AttributeNames.LABELLED, false);
    ObjectEditor.setPropertyAttribute(
        AnInteractiveMethodInvoker.class, "parameters", AttributeNames.SHOW_BORDER, false);
    ObjectEditor.setPropertyAttribute(
        AnInteractiveMethodInvoker.class, "parameters", AttributeNames.STRETCH_ROWS, true);
    //		  ObjectEditor.setPropertyAttribute(AnInteractiveActualParameter.class, "value",
    // AttributeNames.COMPONENT_HEIGHT, 30);

    /*
    boolean showResult = (Boolean) AttributeNames.getDefaultOrSystemDefault(AttributeNames.INPLACE_METHOD_RESULT);
    ObjectEditor.setPropertyAttribute(AnInteractiveMethodInvoker.class, "result", AttributeNames.VISIBLE, showResult);
    */
    ObjectEditor.setAttribute(
        AnInteractiveMethodInvoker.class, AttributeNames.STRETCH_ROWS, new Boolean(false));
    ObjectEditor.setMethodAttribute(
        AnInteractiveMethodInvoker.class, "resetAll", AttributeNames.SHOW_BUTTON, false);
    ObjectEditor.setMethodAttribute(
        AnInteractiveMethodInvoker.class, "doImplicitInvoke", AttributeNames.SHOW_BUTTON, false);
    return null;
  }
 public void showAll() {
   // resetHiddenSiblingCommands();
   for (int i = 0; i < componentNames.size(); i++) {
     ObjectEditor.setVisible(parentClass, componentNames.get(i), true);
   }
   adapter.getTopAdapter().refreshAttributes(parentClass);
 }
 public static void createAndDisplayHistory(StringHistory stringHistory) {
   bus.uigen.ObjectEditor.edit(stringHistory);
   stringHistory.addElement("James Dean");
   stringHistory.addElement("Joe Doe");
   stringHistory.addElement("Jane Smith");
   stringHistory.addElement("John Smith");
 }
  public void hide() {
    // if (adapter.getParentAdapter() == null) return;
    ObjectEditor.setVisible(parentClass, adapter.getPropertyName(), false);
    adapter.getTopAdapter().refreshAttributes(parentClass);
    // ObjectEditor.refreshAttributes(this, adapter.getParentAdapter().getPropertyClass());

  }
  public static void main(String[] args) {

    TheBridgeScene newScene = new TheBridgeScene();
    OEFrame avatarEditor = ObjectEditor.edit(newScene);
    avatarEditor.setSize(800, 800);

    // Rotate left arm.
    newScene.getArthur().getArms().getLeftLine().rotate(100);
    avatarEditor.refresh();
    ThreadSupport.sleep(1000);
    newScene.getArthur().getArms().getLeftLine().rotate(60);
    avatarEditor.refresh();
    ThreadSupport.sleep(1000);
    newScene.getArthur().getArms().getLeftLine().rotate(-45);
    avatarEditor.refresh();
    ThreadSupport.sleep(1000);

    // Rotate right arm.
    newScene.getArthur().getArms().getRightLine().rotate(100);
    avatarEditor.refresh();
    ThreadSupport.sleep(1000);
    newScene.getArthur().getArms().getRightLine().rotate(60);
    avatarEditor.refresh();
    ThreadSupport.sleep(1000);
    newScene.getArthur().getArms().getRightLine().rotate(45);
    avatarEditor.refresh();
    ThreadSupport.sleep(1000);

    // Move avatars.
    newScene.getArthur().moveAvatar(200, 150);
    avatarEditor.refresh();
    ThreadSupport.sleep(1000);
    newScene.getGuard().moveAvatar(100, -50);
    avatarEditor.refresh();
  }
  void resetHiddenSiblingCommands() {
    hiddenSiblingCommands.clear();

    for (int i = 0; i < componentNames.size(); i++) {
      String propertyName = componentNames.get(i);
      Boolean isVisible = ObjectEditor.getPropertyVisible(parentClass, propertyName);
      if (isVisible != null && !isVisible) hiddenSiblingCommands.add(toShowCommand(propertyName));
    }
  }
 public void invokeDynamicCommand(String theCommand) {
   lastGroupCommandSelected = null;
   displayedProperties = null;
   String propertyOrGroupName = getPropertyOrGroupName(theCommand).toLowerCase();
   if (allSiblingCommands.contains(theCommand)) {
     ObjectEditor.setVisible(parentClass, propertyOrGroupName, true);
     adapter.getTopAdapter().refreshAttributes(parentClass);
   } else {
     lastGroupCommandSelected = theCommand;
     displayedProperties = projectionGroups.get(propertyOrGroupName);
     for (int i = 0; i < componentNames.size(); i++) {
       String nextComponent = componentNames.get(i);
       if (displayedProperties.contains(nextComponent))
         ObjectEditor.setVisible(parentClass, nextComponent, true);
       else ObjectEditor.setVisible(parentClass, nextComponent, false);
     }
     adapter.getTopAdapter().refreshAttributes(parentClass);
   }
 }
 public static void main(String[] args) {
   final int initWeight = 75;
   final double initHeight = 1.77;
   final int sleepTime = 3000;
   ABMISpreadsheet bmiSpreadsheet = new ABMISpreadsheet();
   bmiSpreadsheet.setHeight(initHeight);
   bmiSpreadsheet.setWeight(initWeight);
   OEFrame editor = ObjectEditor.edit(bmiSpreadsheet);
   ThreadSupport.sleep(sleepTime);
   editor.select(bmiSpreadsheet, "Weight");
   bmiSpreadsheet.setWeight(sleepTime);
   editor.refresh();
   ThreadSupport.sleep(sleepTime);
   editor.select(bmiSpreadsheet, "Height");
   bmiSpreadsheet.setHeight(0);
   editor.refresh();
   ThreadSupport.sleep(sleepTime);
   editor.select(bmiSpreadsheet, "Weight");
   bmiSpreadsheet.setWeight(0);
   editor.refresh();
 }
 public static void main(String[] args) {
   String foo = (new ArrayList<String>().get(0));
   History<String> stringHistory = new CopyOfAHistory();
   Object[] objects = new Object[50];
   String[] strings = new String[50];
   objects = strings;
   // objects[3] = new Object();
   List<Object> objectList = new ArrayList();
   List<String> stringList = new ArrayList();
   stringList.add("hello");
   // objectList = stringList;
   // List<String> stringListClone = (new ArrayList()).subList(0,3);
   List<String> stringListClone = (new ArrayList<String>(stringList));
   // List<Point> pointListClone = (new ArrayList<Point>(stringList));
   // History h = historyListClone.get(0);
   // historyListClone.add(new AHistory());
   stringHistory.addElement("James Dean");
   stringHistory.addElement("Joe Doe");
   stringHistory.addElement("Jane Smith");
   stringHistory.addElement("John Smith");
   bus.uigen.ObjectEditor.edit(stringHistory);
 }
 public static void main(String[] args) {
   ObjectEditor.edit(new AFancyCartesianPlane(200, 125, 125));
 }
 public void open(String newClassName) {
   objectEditor.newInstance(newClassName);
 }
 public ClassNameList() {
   objectEditor = ObjectEditor.defaultObjectEditor();
 }
 public static void main(String[] args) {
   CartesianPlane plane = new ACartesianPlaneWithFactoryMethod(200, 125, 125);
   ObjectEditor.edit(plane);
 }