[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[News.eclipse.technology.gmf] Re: Couple questions related with GMF
|
1.
> different than I'd expect. For example, I expect RoundedRuleFigure'd use
> FlowLayout to layout its children figures - RuleEntitiesCompartmentFigure
> and RuleActionsCompartmentFigure;
Try to set layout's matchMinorSize="true" and specify preferred size for
Rule[Entities|Actions]CompartmentFigure.
Generally, working with layouts (not necessarily with GMF's) one should
doublecheck his expectations :) Even without the changes the diagram looked
to me like using FlowLayout - Rule's label and both compartment were
layouted in a single row (though size of the compartments was small, it's
obvious why - no size preferences (minimum/preferred) were specified in the
model).
> [...] I expect RuleEntitiesCompartmentFigure'd use StackLayout to place
> RuleEntity. But they are not.
That's known issue, https://bugs.eclipse.org/bugs/show_bug.cgi?id=149516
2. Already covered with adjacent posts.
3. That's a bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=150816),
although I believe it won't hurt your case - one you map RuleEntry's label
to domain attribute (e.g. RuleEntry.name), the problem will disappear. If
you really need label not backed up by domain feature, let me know and I'll
describe the workaround.
Artem
"ps" <paul.shi@xxxxxxxxx> wrote in message
news:e989qe$jjv$1@xxxxxxxxxxxxxxxxxxxx
> Hi there,
> I have attached a project "gmf.test" which contains all the models needed
> (all very simple ones). If you could give it a spin and answer some of my
> questions? (you need to generate gmf.test.edit and gmf.test.diagram
> presumably).
>
> 1. When I run the plugins and create a defaut.rule_diagram, the behaviour
> is different than I'd expect. For example, I expect RoundedRuleFigure'd
> use FlowLayout to layout its children figures -
> RuleEntitiesCompartmentFigure and RuleActionsCompartmentFigure; I expect
> RuleEntitiesCompartmentFigure'd use StackLayout to place RuleEntity. But
> they are not.
>
> 2. I tried to use GridLayout, and the generated code complains about not
> being able to result GridLayout in draw2d package.
>
> 3. I couldn't direct edit the label for RuleEntity and RuleAction, there
> is an exception thrown:
> java.lang.NullPointerException
> at
> org.eclipse.gmf.runtime.diagram.ui.editpolicies.LabelDirectEditPolicy.getDirectEditCommand(LabelDirectEditPolicy.java:90)
>
> I've to admit it's probably due to my limited GMF knowledge but I really
> belive it should work, so could you look into it and tell me what's wrong?
> I'd appreciate any help!
>
> Thanks,
> Paul
>
>