asc:tutorials:eclipse
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
asc:tutorials:eclipse [2014/10/29 14:23] – aparamonov | asc:tutorials:eclipse [2014/10/29 21:20] (current) – asc | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
====== Eclipse ====== | ====== Eclipse ====== | ||
- | Some of our colleagues managed to integrate Eclipse with the ATLAS TDAQ environment: | ||
This example touches only the basics. | This example touches only the basics. | ||
+ | Some of our colleagues managed to integrate Eclipse with the ATLAS TDAQ environment: | ||
===== Install Java and Eclipse ===== | ===== Install Java and Eclipse ===== | ||
Line 8: | Line 10: | ||
- If you do not have Java, please download and install it. Eclipse needs it. | - If you do not have Java, please download and install it. Eclipse needs it. | ||
- Download " | - Download " | ||
- | - Extract folder " | + | - Extract folder " |
- Enter the folder and execute " | - Enter the folder and execute " | ||
+ | |||
+ | <note tip>For ANL, eclipse is installed in / | ||
===== Install SVN plugins ===== | ===== Install SVN plugins ===== | ||
Line 15: | Line 19: | ||
- Run Eclipse and select Help > Install New Software... from the main menu. | - Run Eclipse and select Help > Install New Software... from the main menu. | ||
- Enter " | - Enter " | ||
- | - Select " | + | - Select " |
- Restart Eclipse | - Restart Eclipse | ||
- | - Select Help > Install New Software... from the main menu. | + | - Select Help -> Install New Software... from the main menu. |
- | - Enter http:// | + | - Enter [[http:// |
- Select " | - Select " | ||
- Restart Eclipse. | - Restart Eclipse. | ||
Line 24: | Line 28: | ||
===== Access CERN SVN ===== | ===== Access CERN SVN ===== | ||
- | - Window | + | - Window -> Open perspective -> SVN Repository Exploring |
- | - Add New Repository Location. Enter "svn+ssh:// | + | - Add New Repository Location. Enter [[svn+ssh:// |
- | - You can do that to your private SVN repository. | + | - Use your CERN username and password. |
- | - Select | + | - You can also do that to your private SVN repository. |
+ | - Select AnalysisSUSY -> trunk -> packages.rc | ||
- Right click on the file and select "Show history" | - Right click on the file and select "Show history" | ||
- Compare tag 620896 to the previous revision. | - Compare tag 620896 to the previous revision. | ||
- Now you can see what has changed. When the change was made. Who did that. The comments are also displayed. | - Now you can see what has changed. When the change was made. Who did that. The comments are also displayed. | ||
+ | |||
===== Import a package from SVN ===== | ===== Import a package from SVN ===== | ||
Line 36: | Line 42: | ||
- Return to "C/C++ Perspective": | - Return to "C/C++ Perspective": | ||
- Right-click on " | - Right-click on " | ||
- | - Select " | + | - Select " |
- | - | + | - Navigate to PhysicsAnalysis -> SYSYPhys -> SUSYTools -> tags -> SUSYTools-00-05-00-13 |
+ | - Select "Check out as a project with the name specified:" | ||
+ | - Go to src --> SUSYToolsAlg.cxx and double-click on the file. | ||
+ | - Right-click on the project name. Select "New -> Covert to a C/C++ Project" | ||
+ | - Select "C Project. Uncheck " | ||
+ | - Now the syntax checking, indexing, and autocomplete are enabled. | ||
+ | |||
+ | ===== Edit the code ===== | ||
+ | |||
+ | - Press Shift+Ctrl+F | ||
+ | - It will auto-alight the code. | ||
+ | - Go to line 128 and type " | ||
+ | - Delete " | ||
+ | - Let's commit that into the SVN repository. | ||
+ | - Right-click on SUSYToolsAlg.cxx and select "Team -> Commit..." | ||
+ | - Select " | ||
+ | - Ops.. we do not have permissions to do that. | ||
+ | - Well, that is how you synchronize your code with a repository. | ||
+ | - Right-click on SUSYToolsAlg.cxx and select "Team -> Revert" | ||
+ | |||
+ | ===== Add libraries | ||
+ | |||
+ | - You may want to keep your code aware of external libraries (e.g. ROOT). | ||
asc/tutorials/eclipse.1414592584.txt.gz · Last modified: 2014/10/29 14:23 by aparamonov