Jump to: navigation, search

Difference between revisions of "SWTBot/Dev Setup For Recorder Branch"

m (Update instructions for git)
m (add a category)
Line 18: Line 18:
  
 
* You can set -Dorg.eclipse.swtbot.recorder.actions.print=true as a VM argument to make the recorder print to console as it records events.
 
* You can set -Dorg.eclipse.swtbot.recorder.actions.print=true as a VM argument to make the recorder print to console as it records events.
 +
 +
[[Category:SWTBot]]

Revision as of 16:12, 22 February 2011

Here are the instructions for setting up your development environment for the recorder branch.

Follow instructions on the SWTBot contribution guide to checkout and build the source.

The source code for the recorder is located on a branch called "recorder-spike".

  1. To run the recorder with a standalone application, start org.eclipse.swtbot.swt.recorder.ui.Main with the name of your standalone app as an argument. For example, you can use org.eclipse.swt.examples.controlexample.CustomControlExample as the argument.
  2. To run the recorder with an eclipse application, create an Eclipse Application launcher. Add the following code at an appropriate location where it will be called once.
Thread recorderThread = new Thread("SWTBotRecorder") {
			public void run() {
				new SWTBotRecorderWindow().createWindow();
			}
		};
		
		recorderThread.start();
  • You can set -Dorg.eclipse.swtbot.recorder.actions.print=true as a VM argument to make the recorder print to console as it records events.