Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ve-dev] parse tree alloc




------------
Dr. Gili Mendel
IBM
Software Development
RTP Raleigh, NC
(919)543 6408, tie: 441 6408



"Janak Mulani" <janak.mulani@xxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx

07/22/2005 06:27 PM

Please respond to
Discussions people developing code for the Visual Editor project

To
"Discussions people developing code for the Visual Editor project" <ve-dev@xxxxxxxxxxx>
cc
Subject
RE: [ve-dev] parse tree alloc





Hi Gili,

>>> Gili >>>
Off hand, my first approach would be to treat this (in codegen) as a special
property that is set on the toolbar.  CodeGen will treat is as a "special"
property settings on the tool bar, but the decoder helper that is associated
with this new feature will create a Separator instance with the proper
allocation tree.
>>>>>

While decoding I create java instance of ULCSeparator and set it on the
"separator" SF of ULCMenu.

Could you please elaborate on "create instance with proper allocation tree"
and is there some sample code for this which I can look up?


><gm>
>Take a look at ConstructorDecoderHelper.decode():
>
>JavaAllocation alloc = InstantiationFactory.eINSTANCE.createParseTreeAllocation(
>                 getParsedTree(getAST(),expOfMethod,fOwner.getExprRef().getOffset(), fbeanPart.getModel(), getExpressionReferences()));
>
>The getAST() uses ParseTreeCreationFromAST which is a specialized ASTVisitor.  This guy will convert an AST tree to Parse Trees (resolving >class references).
></gm>

Thanks and regards,

Janak

"Janak Mulani" <janak.mulani@xxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx
07/15/2005 02:44 AM Please respond to
Discussions people developing code for the Visual Editor project

To"ve-Dev@Eclipse. Org" <ve-dev@xxxxxxxxxxx>
cc
Subject[ve-dev] separator


Hi,

The separators for toolbar and menu are not supported in Swing VE.

In ULC we have ULCSeparator like JSeparator of swing.

I would like to generate addSeparator() method on tool bar and menu. But at
the same time suppress the generation of new ULCSepartor() _expression_ and
also suppress generation of global or local var and getters.

In general is there a way to suppress generation of instantiation, variables
and getters?

Can I do the following:

In override file for ULCSeparator specify a CodeGenHelperClass that extends
AbstractExpressionDecoder.

The helper for decoder extends from ConstructorDecoderHelper and generates
nothing!

Or is there a better way to do separator?

Thanks,

Janak

_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev

_______________________________________________
ve-dev mailing list
ve-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ve-dev


Back to the top