Package net.sf.robocode.ui

Examples of net.sf.robocode.ui.IWindowManager


      }
    }
  }

  public void cleanup() {
    final IWindowManager windowManager = Container.getComponent(IWindowManager.class);

    if (windowManager != null) {
      windowManager.cleanup();
    }
    Container.getComponent(IBattleManager.class).cleanup();
    Container.getComponent(IHostManager.class).cleanup();
  }
View Full Code Here


    Container.getComponent(IBattleManager.class).cleanup();
    Container.getComponent(IHostManager.class).cleanup();
  }

  public void initForRobocodeEngine(IBattleListener listener) {
    final IWindowManager windowManager = Container.getComponent(IWindowManager.class);

    if (windowManager != null) {
      windowManager.setSlave(true);
      windowManager.setEnableGUI(false);
    }
    Container.getComponent(IHostManager.class).initSecurity();
    if (listener != null) {
      Container.getComponent(IBattleManager.class).addListener(listener);
    }
View Full Code Here

    cpuConstant = Math.max(1, (long) (1000000.0 * APPROXIMATE_CYCLES_ALLOWED * TEST_PERIOD_MILLIS / count));
  }

  private void setStatus(String message) {
    IWindowManager windowManager = Container.getComponent(IWindowManager.class);

    if (windowManager != null) {
      windowManager.setStatus(message);
    }
  }
View Full Code Here

  public void refreshRobotList(final boolean withClear) {

    final Runnable runnable = new Runnable() {
      public void run() {
        final IWindowManager windowManager = Container.getComponent(IWindowManager.class);

        try {
          windowManager.setBusyPointer(true);
          repositoryManager.refresh(withClear);

          List<IRobotSpecItem> robotList = repositoryManager.getRepositoryItems(onlyShowSource,
              onlyShowWithPackage, onlyShowRobots, onlyShowDevelopment, false, ignoreTeamRobots, onlyShowInJar);

          getAvailableRobotsPanel().setRobotList(robotList);
          if (preSelectedRobots != null && preSelectedRobots.length() > 0) {
            setSelectedRobots(preSelectedRobots);
            preSelectedRobots = null;
          }
        } finally {
          windowManager.setBusyPointer(false);
        }
      }
    };

    SwingUtilities.invokeLater(runnable);
View Full Code Here

    }
    return (IRobotSpecItem) repositoryItem;
  }

  private void setStatus(String message) {
    IWindowManager windowManager = Container.getComponent(IWindowManager.class);

    if (windowManager != null) {
      windowManager.setStatus(message);
    }
    if (message.length() > 0) {
      Logger.logMessage(message);
    }
  }
View Full Code Here

    }
    return false;
  }

  protected static void setStatus(String message) {
    IWindowManager windowManager = net.sf.robocode.core.Container.getComponent(IWindowManager.class);
    if (windowManager != null) {
      windowManager.setStatus(message);
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.robocode.ui.IWindowManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.