Package org.datastorm.controller.command

Examples of org.datastorm.controller.command.ShowQueryCommand


}

public void parseAndDisplay(String sqlQueries) throws SQLException {
  String[] queries = sqlParser.splitTextIntoSqlQueries(sqlQueries);
  for( int i = 0; i < queries.length; i++ ) {
    handleCommand(new ShowQueryCommand(queries[i]));
  }
}
View Full Code Here


  data.verticalAlignment = SWT.BEGINNING;
  button.setLayoutData(data);
 
  button.addSelectionListener(new SelectionAdapter() {
    public void widgetSelected(SelectionEvent e) {
      controller.handleCommand(new ShowQueryCommand(editor.getText()));
    }
  });
}
View Full Code Here

    runItem.setText("Run query\tCtrl+ENTER");
    runItem.setAccelerator(SWT.MOD1 + SWT.CR);
    runItem.setImage(Helper.readImage(shell.getDisplay(), "/refresh_22_22.png"));
    runItem.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event e) {
        controller.handleCommand(new ShowQueryCommand(editor.getText()));
      }
    });
  }
 
}
View Full Code Here

TOP

Related Classes of org.datastorm.controller.command.ShowQueryCommand

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.