320 likes | 524 Views
SENG 301 – Tutorial 1 Introduction to Eclipse and Subclipse. Slides: Theodore D. Hellmann and Jamie Starke. Acquiring the Software - 1. - download “Eclipse Classic” from eclipse.org - remember it just unzips (no installation). Acquiring the Software - 2. Subclipse.
E N D
SENG 301 – Tutorial 1Introduction to Eclipse and Subclipse Slides: Theodore D. Hellmann and Jamie Starke
Acquiring the Software - 1 - download “Eclipse Classic” from eclipse.org - remember it just unzips (no installation)
Acquiring the Software - 2 Subclipse
Acquiring the Software - 3 Subclipse
Acquiring the Software - 4 Subclipse
Acquiring the Software – 5 Subclipse
Acquiring the Software – 5 EclEmma
Acquiring the Software – 5 EclEmma
Using Eclipse - 1 Creating a new project
Using Eclipse - 2 Creating a new class
Using Eclipse - 3 Running your code
Using Eclipse - 4 Creating a new Source Folder
Using Eclipse - 5 Creating a new Source Folder
Using Eclipse - 6 Creating a new Source Folder
Using Eclipse - 7 Some useful features: - Catches syntax errors while you code - Hover over an error (squiggly red line) for suggestions on how to fix it - Auto-Complete
Using Subclipse - 1 Before you can use Subclipse: - email help@cpsc.ucalgary.ca and ask for an SVN account - the email should look something like “Hi my name is [your name], for my SENG 301 class, I need an SVN account for my cpsc account: [your username]”
Using Subclipse - 2 Help’s response will contain: - the link you’ll need to use when initially sharing the project and when accessing it - it should look something like: https://forge.cpsc.ucalgary.ca/svn/courses/s301/group[your group number here]
Using Subclipse - 3 To share a project:
Using Subclipse - 4 To share a project:
Using Subclipse - 5 To share a project:
Using Subclipse - 6 To access a project:
Using Subclipse - 7 To access a project:
Using Subclipse - 7 To access a project:
Using Subclipse - 8 To access a project:
Using Subclipse - 9 To access a project:
Using Subclipse - 10 The main commands you will use in Subclipse:
Using Subclipse - 11 The main commands you will use in Subclipse: Update: will check the repository for changes and add them to your code Commit: takes changes in your code and adds them to the server Merge: resolves conflicts discovered by either of the above operations
Using Subclipse - 12 The main commands you will use in Subclipse: Synchronize: - allows you to select which changes to make to both code bases if there have been concurrent modifications - otherwise Subclipse may insert junk into your code!
Using Subclipse - 13 Advice on Subclipse: If you Update/Commit frequently, you’ll reduce the chance of creating a conflict, and also reduce the time it takes to sort a conflict out! Be consistent in your use of Subclipse, committing only once a week or less may take more time then you think
Getting an SVN Log- 1 SSH into CSC using SSH Secure Shell Client:
Getting an SVN Log- 2 SSH into CSC using SSH Secure Shell Client:
Getting an SVN Log- 3 Create an SVN Log file: svn log https://forge.cpcs.ucalgary.ca/svn/courses/s301/group[your group number] –username [your username] >> SVNLog.txt