GMF diagram generator chocking on colors [message #42805] |
Fri, 08 September 2006 12:31 |
Eclipse User |
|
|
|
Originally posted by: lod.staff.civ.org.pl
This is a multi-part message in MIME format.
--------------010504090004000508060001
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
Hello,
as part of learning GMF I'm coding a simplified UML Class Diagram
editor. Unfortunately, I've ran into the following problem:
I'm creating a PolygonDecoration that represents the arrowhead of a
generalization relation. The relevant part of the GMFGraph definition is
visible in the attached screenshot.
The problem is that the generator messes up the decoration definition
code severely:
private org.eclipse.draw2d.PolygonDecoration createTargetDecoration() {
org.eclipse.draw2d.PolygonDecoration df = new
org.eclipse.draw2d.PolygonDecoration();
// dispatchNext?
df.setFill(true);ERROR: org.eclipse.emf.codegen.jet.JETException:
InvocationTargetException
org.eclipse.draw2d.geometry.PointList pl = new
org.eclipse.draw2d.geometry.PointList();
pl.addPoint(0, 0);
pl.addPoint(-1, -2);
pl.addPoint(-1, 2);
df.setTemplate(pl);
df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
return df;
}
I suspect that this is a bug. Is there a possible workaround? Or, what
am I doing wrong?
Regards
PS. I'm using version 1.0.0.v20060627-1200 of GMF.
--------------010504090004000508060001
Content-Type: image/png;
name="gmfcolordiagram.PNG"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="gmfcolordiagram.PNG"
iVBORw0KGgoAAAANSUhEUgAAARgAAADcCAIAAAAk4inNAAAAAXNSR0IArs4c 6QAAAARnQU1B
AACxjwv8YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgA ABdwnLpRPAAA
GLNJREFUeF7tXcGuZkdxhpdhz5bVfQB2LHgDFmyzgd08gLdISTTrQCISIUtR UJCSC5ENkUax
GCTDxJEAOSECm8gQ2yNhj0z/0+N2TVdXdVV3V5/uc+pq9Ou/51ZXV39d3/nq nNM95/OffPLJ
59ifv//bv/7KV7/G2/hfHYGrIxCIZPRzd3d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KtNTsOouWmg55MIZEkgfhlo7A7ggYEskVaffk8PjlCDiR 5Fi5pSNAImBI
JEfdEbgOAoZE8tLuOmnkIzUk0kbgLnX7eyPcPNSEgCGRdlEk+QNZzxtHgELA kEi7gK5aIlTd
aafd2JehJHyOVA1jF/BPE6chkbZQpOZFq8KM/0z6n783if8RrgbyfUo1IA/4 e312DwhqSpcr
bOzDA7Xg5xQ4r96JIZGOUqSNNvZ1EknLuqsnu+X4DYlkGfYA322KNHxjX1bO MZdYQssB0LgL
PQKGRDpKkVQgNF8jxV469yM1K5JrkWqWJxgbEmlC9EO6UN21y3q0JhK1A2rI wN3JQAQMibSF
IgUo5c+RLDb2wbnkN/kly2QmvMs3MF3cFYWAIZE2An3ZlQ1ewu2SRYZE2kWR lp0qZ9GyU1O4
uN0oVg/VEVgWAVekZafGA9sJASfSTrPlsS6LgCGRlh2zB+YIDEfAkEh+s2H4 bLnDZREwJNKy
Y8aBLXv7eyMMLx6qIZF2UST5A9mL54oPn0HAkEi74K5aIlTdUWe3sa/a9S6A nzJOQyJtoUjN
i1a1T0sl9sySH9/Mtzj9DIm0+MjbtlGkQaXMLm6sgMvhYhOhngj5tji2FwzP kEhHKdK5N/ZJ
mHbBPD58yIZEOnxsfABtinTUxr4ka4ujetnwDIk0X5EaZrH5GglndtQK+Alt hErCmAk9NIDg
TfoRMCRSf3BzPKju2mUhTdvY5yyakwzNvRgSaQtFCsDJnyMduLHPN/M1p/ic hoZEmjOAIb0s
u7LBhWjI/E5wYkikXRRpAsptXTiL2nA7pJUhkQ4Zj3fqCByCgCGRXJEOmVHv 9BAEDIl0yHi8
U0fgEAT+DISnN1NvfCk/AAAAAElFTkSuQmCC
--------------010504090004000508060001--
|
|
|
Re: GMF diagram generator chocking on colors [message #42872 is a reply to message #42805] |
Fri, 08 September 2006 14:21 |
Michael Golubev Messages: 383 Registered: July 2009 |
Senior Member |
|
|
Hi,
I've submitted https://bugs.eclipse.org/bugs/show_bug.cgi?id=156702.
For now as a workaround, set the foreground color for connection rather than
for its decoration.
It will definitely work with almost the same visble results.
Regards,
Michael
"Mikolaj Koziarkiewicz" <lod@staff.civ.org.pl> wrote in message
news:edrnq7$jin$1@utils.eclipse.org...
> Hello,
>
> as part of learning GMF I'm coding a simplified UML Class Diagram
> editor. Unfortunately, I've ran into the following problem:
> I'm creating a PolygonDecoration that represents the arrowhead of a
> generalization relation. The relevant part of the GMFGraph definition is
> visible in the attached screenshot.
>
> The problem is that the generator messes up the decoration definition
> code severely:
>
> private org.eclipse.draw2d.PolygonDecoration createTargetDecoration() {
> org.eclipse.draw2d.PolygonDecoration df = new
> org.eclipse.draw2d.PolygonDecoration();
> // dispatchNext?
> df.setFill(true);ERROR: org.eclipse.emf.codegen.jet.JETException:
> InvocationTargetException
> org.eclipse.draw2d.geometry.PointList pl = new
> org.eclipse.draw2d.geometry.PointList();
> pl.addPoint(0, 0);
> pl.addPoint(-1, -2);
> pl.addPoint(-1, 2);
> df.setTemplate(pl);
> df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
>
>
>
>
> return df;
> }
>
>
> I suspect that this is a bug. Is there a possible workaround? Or, what
> am I doing wrong?
>
> Regards
>
>
> PS. I'm using version 1.0.0.v20060627-1200 of GMF.
>
|
|
|
Re: GMF diagram generator chocking on colors [message #42903 is a reply to message #42805] |
Fri, 08 September 2006 14:30 |
Michael Golubev Messages: 383 Registered: July 2009 |
Senior Member |
|
|
Hi,
Also I ve found that you may fix it by just setting the name for your
decoration.
It does not seem reasonable to set the names for decorations, but they are
figures and as such generator assumes that they have names.
Its a pity that it is not validated prior to generation for now.
Regards,
Michael
"Mikolaj Koziarkiewicz" <lod@staff.civ.org.pl> wrote in message
news:edrnq7$jin$1@utils.eclipse.org...
> Hello,
>
> as part of learning GMF I'm coding a simplified UML Class Diagram
> editor. Unfortunately, I've ran into the following problem:
> I'm creating a PolygonDecoration that represents the arrowhead of a
> generalization relation. The relevant part of the GMFGraph definition is
> visible in the attached screenshot.
>
> The problem is that the generator messes up the decoration definition
> code severely:
>
> private org.eclipse.draw2d.PolygonDecoration createTargetDecoration() {
> org.eclipse.draw2d.PolygonDecoration df = new
> org.eclipse.draw2d.PolygonDecoration();
> // dispatchNext?
> df.setFill(true);ERROR: org.eclipse.emf.codegen.jet.JETException:
> InvocationTargetException
> org.eclipse.draw2d.geometry.PointList pl = new
> org.eclipse.draw2d.geometry.PointList();
> pl.addPoint(0, 0);
> pl.addPoint(-1, -2);
> pl.addPoint(-1, 2);
> df.setTemplate(pl);
> df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
>
>
>
>
> return df;
> }
>
>
> I suspect that this is a bug. Is there a possible workaround? Or, what
> am I doing wrong?
>
> Regards
>
>
> PS. I'm using version 1.0.0.v20060627-1200 of GMF.
>
|
|
|
Re: GMF diagram generator chocking on colors [message #44321 is a reply to message #42903] |
Mon, 11 September 2006 08:47 |
Eclipse User |
|
|
|
Originally posted by: lod.staff.civ.org.pl
Hello,
thanks for the help and for making the bug submission! Indeed, naming
the decoration has solved the problem.
Regards,
Mikolaj
Michael Golubev wrote:
> Hi,
>
> Also I ve found that you may fix it by just setting the name for your
> decoration.
> It does not seem reasonable to set the names for decorations, but they are
> figures and as such generator assumes that they have names.
>
> Its a pity that it is not validated prior to generation for now.
>
> Regards,
> Michael
>
> "Mikolaj Koziarkiewicz" <lod@staff.civ.org.pl> wrote in message
> news:edrnq7$jin$1@utils.eclipse.org...
>> Hello,
>>
>> as part of learning GMF I'm coding a simplified UML Class Diagram
>> editor. Unfortunately, I've ran into the following problem:
>> I'm creating a PolygonDecoration that represents the arrowhead of a
>> generalization relation. The relevant part of the GMFGraph definition is
>> visible in the attached screenshot.
>>
>> The problem is that the generator messes up the decoration definition
>> code severely:
>>
>> private org.eclipse.draw2d.PolygonDecoration createTargetDecoration() {
>> org.eclipse.draw2d.PolygonDecoration df = new
>> org.eclipse.draw2d.PolygonDecoration();
>> // dispatchNext?
>> df.setFill(true);ERROR: org.eclipse.emf.codegen.jet.JETException:
>> InvocationTargetException
>> org.eclipse.draw2d.geometry.PointList pl = new
>> org.eclipse.draw2d.geometry.PointList();
>> pl.addPoint(0, 0);
>> pl.addPoint(-1, -2);
>> pl.addPoint(-1, 2);
>> df.setTemplate(pl);
>> df.setScale(getMapMode().DPtoLP(7), getMapMode().DPtoLP(3));
>>
>>
>>
>>
>> return df;
>> }
>>
>>
>> I suspect that this is a bug. Is there a possible workaround? Or, what
>> am I doing wrong?
>>
>> Regards
>>
>>
>> PS. I'm using version 1.0.0.v20060627-1200 of GMF.
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02987 seconds