Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Amalgam » DSL Book - problems with java code pg 81
DSL Book - problems with java code pg 81 [message #577474] Sat, 11 July 2009 16:14
Dave Milham is currently offline Dave MilhamFriend
Messages: 4
Registered: July 2009
Junior Member
I am steadily working my way through the DSL Toolkit book and have got to
a point on pg 81 where I need a clue as to what to do next
I am using the Amalgam downloaded DSL toolkit and JAVA 6.

I have made the changes to the constructor Public TopicFigure() - middle
page 81 and also to createContents() - top page 82 and the java editor
flags errors.

I searched the examples and I think th correct code is in:

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmf/exa mples/org.eclipse.gmf.examples.mindmap.diagram/src/org/eclip se/gmf/examples/mindmap/diagram/edit/parts/TopicEditPart.jav a?root=Modeling_Project&view=markup

However this look quite different from the book.
The specifc erro I get with the code in the book is that the parser cannot
resolve the name Rectangle and the import
import java.util.List;

marks Rectangle as not used.

I can partially resolve the porblme by using a full name like

I can resolve some of the errors by using the full path name
org.eclipse.draw2d.geometry.Rectangle but get error with Child.
Looking at the import I see that it has markers that some imports are not
used such as
import org.eclipse.swt.graphics.Rectangle

however using this path name does not resolve the errors

What would be useful is
1. confirmation that the code on Pg 81 and 82 works
2. that the URL for the example code above is the correct one and if not
where the correct code can be found.


many thanks

Dave M
Previous Topic:Unable to install DSL Toolkit
Next Topic:DSL Book - problems with java code pg 81
Goto Forum:
  


Current Time: Thu Apr 25 15:49:46 GMT 2024

Powered by FUDForum. Page generated in 0.02463 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top