-
Notifications
You must be signed in to change notification settings - Fork 12
Developing
- GitHub For Windows (http://windows.github.com/)
- Eclipse (http://www.eclipse.org/downloads/)
- Google Web Toolkit (https://developers.google.com/eclipse/docs/download)
Create an account on GitHub, and click on "Fork" on the top right corner of this page, or click this link: https://github.com/Nican/wpischeduler/fork
Open GitHub for Windows and clone to your local hard drive. The project should be cloned to your "Documents/GitHub/wpischeduler" user directory.
Download and install eclipse. While inside of Eclipse, click on "Help", "Install New Software..." and type in "https://dl.google.com/eclipse/plugin/4.3" for the "Work with" input box. Then select both "Google Plugin for Eclipse (required)" and "SDKs" and finish the installation.
Go into File -> Import... and select Existing Projects into Workspace, and select the folder where WPI Scheduler is cloned.
There are two ways to run the code, the easier slower development mode, in which the browser requires a special plugin to inter-op with Java, or the experiment Super Dev Mode.
Right click on the project in the Package Explorer, click on "Run As" and then on "Web Application", this should bring a message saying that that the web site can be accessed now at "http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997".
(Note: If you are using Windows 8, you can not use Google Chrome, since NaCL is not supported. Firefox is still fully supported)
4.2) GWT Super Dev Mode (https://developers.google.com/web-toolkit/articles/superdevmode)
Go into Run -> Run Configurations and in "Java Application" add a new Item.
- Set the Project as "Scheduler"
- Set the main class to be "com.google.gwt.dev.codeserver.CodeServer"
- Set the Program arguments to be "-src src/ edu.wpi.scheduler.Scheduler"
Run! Open http://localhost:9876/ in your browser and copy the "Dev Mode On" to your favorites toolbar. This item is a small piece of javascript to execute on Scheduler to recompile the code.
Go Run -> Run As -> Web Application. Visit http://127.0.0.1:8888/Scheduler.html
Click on the favorite button created on Step #2. This will execute a request for Super Dev Mode to recompile the project.
Right click on the project in the Package Explorer, click on "Google" and then on "GWT Compile". This process should take a minute to compile, and the compile project should be present under "Documents/GitHub/wpischeduler/war"
Once you are done with your changes, you can request for the changes to be pushed back into this main repository, so that other people can benefit from your hard work.
Go into GitHub for Windows, and find your repository. Review and Commit your changes, and then click on the "Sync" button.
Go in your online GitHub page, and click on the "Pull Request" button, and fill the form as necessary.
Inside of the Properties for Scheduler, under Java Build Path, add "gwt-codeserver.jar". The jar can usually be found in the eclipse folder, under eclipse\plugins\com.google.gwt.eclipse.sdkbundle_2.5.1\gwt-2.5.1.
Both GWT Super Dev Mode and Scheduler Web Application must be running at the same for development.