Thursday, 25 June 2009
Tuesday, 23 June 2009
3 Word Reviews
I have quite a few interests and like to spend more time pursuing them that writing about them. However, I'd also like to share my experiences with others. To this end I have decided that I am going to start writing reviews on a number of things from board games and role-play products, to software and APIs. However, I have decided that each review will be exactly 3 words long (not including the name of what I am reviewing) this should allow me plenty of time to document all that I test.
Saturday, 14 February 2009
Playing with Jazz
Last night I downloaded a copy of Rational Team Concert, having just heard about the Jazz project.
Having started it up I started to work through the tutorials and was, quite frankly, blown away by what it could do. I'm a big fan of Mylyn on eclipse and the way it can focus you on a single task at a time. Jazz (or Concert, not sure where the boundaries lie right now) seems to take the task oriented development and expand it well beyond the bounds of the coding. It integrates your task/bug tracking with your coding and testing, your commits are associated with the results of your automated tests all in a structured workflow. It also allows for planning your releases, iterations and working hours.
It can also be used to enforce your processes, though I have yet to see how to set it up, but a couple of examples are that a new developer's code will not be committed until it has been reviewed by a more experienced developer (and will create a task for the experienced developer with the code attached), or that code containing warnings cannot be committed.
To do all this, it provides it's own bug/task tracking system, project planning tools and a source control system. The tracking system and the project planning are quite straight forward, but the source control system is a little different to what I'm used to and I have yet to get my head around it. It is made up a streams, I think, and these streams can belong to individuals or teams. You work in your own stream, then when your are done, you integrate it into the team stream, on larger projects you then integrate that into another stream, and so on up.
Having started it up I started to work through the tutorials and was, quite frankly, blown away by what it could do. I'm a big fan of Mylyn on eclipse and the way it can focus you on a single task at a time. Jazz (or Concert, not sure where the boundaries lie right now) seems to take the task oriented development and expand it well beyond the bounds of the coding. It integrates your task/bug tracking with your coding and testing, your commits are associated with the results of your automated tests all in a structured workflow. It also allows for planning your releases, iterations and working hours.
It can also be used to enforce your processes, though I have yet to see how to set it up, but a couple of examples are that a new developer's code will not be committed until it has been reviewed by a more experienced developer (and will create a task for the experienced developer with the code attached), or that code containing warnings cannot be committed.
To do all this, it provides it's own bug/task tracking system, project planning tools and a source control system. The tracking system and the project planning are quite straight forward, but the source control system is a little different to what I'm used to and I have yet to get my head around it. It is made up a streams, I think, and these streams can belong to individuals or teams. You work in your own stream, then when your are done, you integrate it into the team stream, on larger projects you then integrate that into another stream, and so on up.
Saturday, 1 November 2008
Geoff on GEF pt. V
Erk! Hit a really difficult problem now. I've been working on printing a draw2d figure from my app for a few days now (on and off). I have managed, through debugging, to show that the figures are all being laid out as expected. My output is producing the correct number of blank pages and I have managed to display all text on screen once, before re-writing slightly, but I have not yet managed to produce the required text on the pages.
The following shows what I have so far:
The following shows what I have so far:
Printer printer = new Printer(data);
Graphics graphics = new PrinterGraphics(new SWTGraphics(new GC(printer, SWT.LEFT_TO_RIGHT)), printer);
Rectangle printRegion = getPrintRegion(printer);
printer.startJob(TournamentManager.get().getTournament().getDefinition()
.getName()
+ " Score Cards");
Figure root = new Figure();
root.setLayoutManager(new ToolbarLayout(false));
root.setForegroundColor(new Color(printer, 0,0,0));
root.setFont(printer.getSystemFont());
for (CompetitorStatus status : competitorStatuses) {
graphics.pushState();
IFigure page = buildFigure(status);
root.add(page);
Canvas c = new Canvas(new Shell(), SWT.None);
c.setLayout(new FillLayout());
LightweightSystem lwsTmp = new LightweightSystem(c);
lwsTmp.setContents(page);
c.setBounds(printRegion.x, printRegion.y, printRegion.width, printRegion.height);
c.layout();
printer.startPage();
graphics.translate(-printRegion.x, -printRegion.y);
graphics.getClip(printRegion);
printRegion.setLocation(printRegion.x, printRegion.y);
graphics.clipRect(printRegion);
page.paint(graphics);
printer.endPage();
graphics.popState();
}
printer.endJob();
Sunday, 26 October 2008
Geoff on GEF pt. IV
Wow! Things are now really falling into place.
Most of my effort recently has been spent trying to get my GEF ViewPart to display in a seperate window, as a nice touch I wanted it to display in fullscreen on a second monitor if one is available. Amazingly, I've done it.
First of all we look for all available monitors and grab the last one (I assumed the secondary display will be used for projectors or large monitors).
With that done, the trick is to open a new workbench window specifying a new perspective that contains just my GEF view. I then grab the shell of this workbench, remove the menu bar, set it's location to the top corner of the monitor to show it on and then set to full screen if not on the primary display.
Most of my effort recently has been spent trying to get my GEF ViewPart to display in a seperate window, as a nice touch I wanted it to display in fullscreen on a second monitor if one is available. Amazingly, I've done it.
@SuppressWarnings("restriction")
@Override
public void run() {
Display display = Display.getDefault();
Monitor[] monitors = display.getMonitors();
Monitor lastMon = monitors[monitors.length - 1];
Rectangle bounds = lastMon.getBounds();
try {
IWorkbenchWindow window = Workbench.getInstance().openWorkbenchWindow("org.gamingclubnetwork.tournament.perspective.display", null);
Shell shell = window.getShell();
shell.setMenuBar(null);
shell.setLocation(bounds.x, bounds.y);
shell.setFullScreen(monitors.length > 1);
}
catch (WorkbenchException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
First of all we look for all available monitors and grab the last one (I assumed the secondary display will be used for projectors or large monitors).
With that done, the trick is to open a new workbench window specifying a new perspective that contains just my GEF view. I then grab the shell of this workbench, remove the menu bar, set it's location to the top corner of the monitor to show it on and then set to full screen if not on the primary display.
Subscribe to:
Posts (Atom)