Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

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

m (Dev Setup For Recorder Branch moved to SWTBot/Dev Setup For Recorder Branch: Moving in the right namespace)
m (Add the swtbot furniture on the page)
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{SWTBot}}
 +
 
Here are the instructions for setting up your development environment for the recorder branch.
 
Here are the instructions for setting up your development environment for the recorder branch.
  
# Download all projects from http://dev.eclipse.org/svnroot/technology/org.eclipse.swtbot/branches/recorder-spike
+
Follow instructions on the [[SWTBot/Contribution | SWTBot contribution]] guide to checkout and build the source.
# Rename some resources as follows:
+
 
#* /org.eclipse.swtbot.eclipse.ui/META-INF/_MANIFEST.MF_eclipse_3_5 to /org.eclipse.swtbot.eclipse.ui/META-INF/MANIFEST.MF
+
The source code for the recorder is located on a branch called "recorder-spike".
#* /org.eclipse.swtbot.eclipse.ui/_build.properties.eclipse_3_5 to /org.eclipse.swtbot.eclipse.ui/build.properties
+
 
#* /org.eclipse.swtbot.eclipse.ui/_classpath.eclipse_3_5 to /org.eclipse.swtbot.eclipse.ui/.classpath
+
#* /org.eclipse.swtbot.junit4_x/META-INF/MANIFEST.MF_junit4_5 to /org.eclipse.swtbot.junit4_x/META-INF/MANIFEST.MF
+
#* /org.eclipse.swtbot.junit4_x/_classpath.junit4_5 to /org.eclipse.swtbot.junit4_x/.classpath
+
# Add all external plugins from /org.eclipse.swtbot.releng/externals/plugins to your target platform. One way to do that would be to create a target platform (Preferences > Plug-in Development > Target Platform) with all the plugins in your base eclipse install and the plugins from the path mentioned above.
+
 
# 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.
 
# 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.
 
# 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.
 
# 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.
Line 22: Line 20:
  
 
* 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 17:15, 22 February 2011


SWTBot
Website
Update Sites
Community
Mailing List
Forums/Newsgroups
IRC
Contribute
Open Bugzilla tickets
Open Gerrit reviews
Browse Source
Continuous Integration


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.

Back to the top