Package net.sphene.goim.rcp.beans.GOIMGameItem

Examples of net.sphene.goim.rcp.beans.GOIMGameItem.GOIMGameExecuteCommands


      }
    });
    addCommand.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        TableItem item = new TableItem(executeCommandsTable,SWT.NULL);
        GOIMGameExecuteCommands cmd = new GOIMGameExecuteCommands();
        item.setData(cmd);
        item.setText(getGOIMGameExecuteCommandToString(cmd));
        executeCommandsTable.setFocus();
        executeCommandsTable.setSelection(new TableItem[] { item });
      }
    });
    delCommand.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        TableItem[] items = executeCommandsTable.getSelection();
        if(items.length > 0) {
          items[0].dispose();
        }
      }
    });
    executeCommandsTable.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event event) {
        TableItem[] items = executeCommandsTable.getSelection();
        if(items.length < 1) return;
        final TableItem item = items[0];
        if(cmdEditor.getEditor() != null) {
          cmdEditor.getEditor().dispose();
          typeEditor.getEditor().dispose();
          waitEditor.getEditor().dispose();
        }
       
        final GOIMGameExecuteCommands cmd = (GOIMGameExecuteCommands)item.getData();
        final Text command = new Text(executeCommandsTable,SWT.NONE);
        command.setText(cmd.command);
        command.selectAll();
        command.setFocus();
       
View Full Code Here


   * @return
   * @see #getExecuteParameters(GOIMGameItem, IGameDestination)
   */
  public List<GOIMGameExecuteCommands> getConnectCommands(GOIMGameItem game) {
    List<GOIMGameExecuteCommands> commands = new ArrayList<GOIMGameExecuteCommands>();
    GOIMGameExecuteCommands cmd;
   
    cmd = getExecuteCommandBefore();
    if(cmd != null) commands.add(cmd);
    if(game.customizedExecute && game.executeCommands != null && game.executeCommands.size() > 0) {
      for(GOIMGameExecuteCommands command : game.executeCommands) {
View Full Code Here

    String cmd = GOIMPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.P_GAME_EXECUTE_COMMAND_AFTER);
    return stringCommandToObject(cmd);
  }
  private GOIMGameExecuteCommands stringCommandToObject(String cmd) {
    if("".equals(cmd.trim())) return null;
    return new GOIMGameExecuteCommands(cmd,true,GOIMGameExecuteCommands.ExecuteCommandType.BOTH);
  }
View Full Code Here

   * @return
   * @see #getExecuteParameters(GOIMGameItem, IGameDestination)
   */
  public List<GOIMGameExecuteCommands> getLaunchCommands(GOIMGameItem game) {
    List<GOIMGameExecuteCommands> commands = new ArrayList<GOIMGameExecuteCommands>();
    GOIMGameExecuteCommands cmd;
   
    cmd = getExecuteCommandBefore();
    if(cmd != null) commands.add(cmd);
    if(game.customizedExecute && game.executeCommands != null && game.executeCommands.size() > 0) {
      for(GOIMGameExecuteCommands command : game.executeCommands) {
View Full Code Here

TOP

Related Classes of net.sphene.goim.rcp.beans.GOIMGameItem.GOIMGameExecuteCommands

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.