Eclipse Tips
Please note that there may be many ways to do similar commands.
To Change font of text in some windows:
Preferences+General+Appearance+Colors and Fonts From here there are various tabs that can be changed. Be cautious because some fonts are bigger than the eclipse windows. For example, Menlo 20 will not fully display in the Variable tab.
Find commands:
Command+F searches the current file.
Control+H searches for a specified string and pattern.
Command+Shift+R is used when you know a full or partial name. If you use capital letters, you narrow down the list (ie when searching for PurchaseOrderServiceImpl.java, type POSI).
How to build on your local:
Servers cannot be running.
If you only changed internal code (.java), This will rebuild, using your latest code.
If external files have changed (.xsd), then you need to refresh. This can be done within Package Exploere tab. Right-click on the project, under Build Project click on refresh. The proceed to build. Java perspective, Ant tab, expand project and double-click on dist-local default.
Occasionally you may need to Clean the whole project. This can be done using the Project drop-down at the top of the screen and selecting Clean....
It is not recommended that you Build Automatically.
To execute source code:
You must establish a ticket and a tunnel session first.
Once ticket and tunnel are established, go to the Java perspective, server tab and start the servers either in debug mode (bug icon) or regular (arrow in green circle icon). As the servers are starting, messages appear on the console tab. Review for errors.
Start your browser. To run on your local, use url localhost:8080/kfs-dev.
To stop the servers, push the red square icon on the server tab.
To determine what source .xsd is actually running:
Start the server and a browser session. Make sure breakpoints are in place to stop the code just prior to validating the .xsd file. Begin debugging. At the breakpoint, go to the browser and replace the url with the url of the .xsd you are expecting to execute and hit return. The contetnts of the .xsd being executed will display.
How to commit code:
- If only one module has change, you can right-click within the file and select Team+Commit.
- If multiple modules have change, rigth-click on the Project and select Team+Commit.
- Enter a comment, the JIRA number must be first with the Identifier (KFS, RICE, etc) capitalized. Then add a short description. For multiple modules, deselect all selected modules not needed. In other words the only modules selected should be the ones needed for your change. Then, for both a single module change and a multiple module change, press the OK button.
- Once change is committed, you should see the source code links in the JIRA, under the source tab.
How to reverse code:
If the code modification has been saved, right-click and select Team+revert. This will return you to the previous version of code in subversion.
If you have not saved your code, you can execute command+z and any unsaved changes will be lost.