Transcript today`s lab

SENG 531: Labs
TA: Brad Cossette
[email protected]
[email protected]
http://pages.cpsc.ucalgary.ca/~cossette/
Office Hours:
Monday, Wednesday 3-4pm ICT 524
Labs This Week:
 Monday
 Demos
 Wednesday
 Assignment
2
 Resources for Eclipse
 Demos
Reflections for Assignment 1
1.
Assertions don’t tell me anything

2.
Justify your statements with examples, anecdotes
Talk intelligently, critically about your solution



Explain what your solution does, not what it is.
Saying it’s evolvable, or not bullet proof is not enough
You need to do the coding to understand the solution

3.
Division of labor issues for larger teams
Too short is just as bad as too long

The best reflections were


Roughly 3 pages long
Had something interesting to say
Assignment 2 Overview
It’s Assignment 2, but now it’s a plugin!

Plugin for Eclipse 3.2


Version matters!
Java Language Spec 2nd edition

Roughly equivalent to the Java 1.4 SDK
Assignment 2: Use Case
Assignment 2: Use Case
Assignment 2: Use Case
New Context Item:
Concrete Declarations
Assignment 2: Use Case
Need to insert a root entry for each
method invocation
This will be your list of associated
method declarations
Eclipse Architecture
argument
field access
fighter
bar
Eclipse Architecture
Same as Assignment 1
You’re responsible for doing the cross referencing
argument
field access
fighter
bar
Assignment 2: Priorities
1.
2.
You must have a plugin working in
Eclipse 3.2
Get your Assignment 1 working in
Eclipse

A text-based printout should be a good
starting point
 Good GUI implementation + non-functional
back-end is not a good thing.
Before you panic

Eclipse is

Open Source



Developed by IBM


And they’re pretty anal about documentation
Focused on Plugins


You can actually look under the hood if you want
Get the Dev Kit
So there’s lots of plugins out there
Fairly popular

So there’s lots of tutorials and help out there
Some Resources

Eclipse

Plugin central
http://www.eclipseplugincentral.com/

Getting started with plugins
http://www.eclipse.org/articles/Article-PDE-does-plugins/PDE-intro.html

AST’s in Eclipse

Plugin for Java AST’s in Eclipse
http://www.eclipse.org/jdt/ui/astview/index.php
Some Resources

Strathcona
http://lsmr.cs.ucalgary.ca/projects/heuristic/strathcona/

Strathcona tries to recommend relevant
code examples based on the your current
context. Use at your own risk.
 Installation
http://lsmr.cpsc.ucalgary.ca/projects/heuristic/strathcona/installing

Usage
http://lsmr.cpsc.ucalgary.ca/projects/heuristic/strathcona/using
Suggestions

You definitely want to have a plugin
working by next Monday

Version your code via e-mail
 You


MAY need to backup entire change sets.
Play GMail against Hotmail
Use pair programming if you’re having
problems keeping everyone involved
Labs Next Week:
 Monday
 Open
 Wednesday
 Open
 Let
me know what issues you’re still facing