| Summary: | update graphiti tutorial description | ||
|---|---|---|---|
| Product: | [Modeling] Graphiti | Reporter: | Bernhard Merkle <bernhard.merkle> |
| Component: | Core | Assignee: | Michael Wenz <michael.wenz> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | michael.wenz, tim.kaiser |
| Version: | 0.8.0 | Flags: | michael.wenz:
indigo+
|
| Target Milestone: | 0.8.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | Indigo RC1 theme_bugs | ||
|
Description
Bernhard Merkle
Actually the reference to org.eclipse.emf.transaction is only needed for a later (rather exotic) extension of the turial (dark feature processing) and is not needed to start-off with the tutorial. For that reason we decided not to have this dependency in the initial list to keep references to a minimum. I added a note regarding this both on the diagrams and the dark feature processing page in the tutorial description. Thanks for pointing this out. Michael another small thing:
//from the tutorial doc:
// SHAPE WITH TEXT
{
// create shape for text
Shape shape = peCreateService.createShape(containerShape, false);
// create and set text graphics algorithm
Text text = gaService.createDefaultText(shape, addedClass.getName());
createDefaultText() does not compile, I think the interface may have changed ?
I used
final Text text = gaService.createText(shape, addedClass.getName());
so the tutorial docs with source code need some update here...
Correct, the API for this has changed, because of introducing management for fonts. This has already been updated in the head version in CVS. Michael sorry, another small thing: when implementing the UpdateFeature i get the following NPE: I just followed the instructions under "Test: Update a EClass Name" When I invoke the context menu in the PROJECT EXPLORER under EClasses I get the following exception. Is this a bug ? PS. should i post this first to the forum instead of bugzilla ? !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.graphiti.examples.common.RenameActionProvider.fillContextMenu(RenameActionProvider.java:57) at org.eclipse.ui.navigator.NavigatorActionService$2.run(NavigatorActionService.java:221) (In reply to comment #4) > sorry, another small thing: > > when implementing the UpdateFeature i get the following NPE: > > I just followed the instructions under "Test: Update a EClass Name" > When I invoke the context menu in the PROJECT EXPLORER under EClasses > I get the following exception. Is this a bug ? > as additional note: it also does not work with the delivered example so I think there must be some bug Definitly a bug, it's fine to post it in bugzilla. But this should be a seperate bug report, because it has nothing to do with the original docu bug. I filed another bugzilla for this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=345442 Michael Part of Graphiti Indigo 0.8.0 |