| Re: [ve-dev] Customised Swing layout manager |
Please respond to Discussions people developing code for the Visual Editor project <ve-dev@xxxxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx
To:
"Discussions people
developing code for the Visual Editor project" <ve-dev@xxxxxxxxxxx>
cc:
Subject:
Re: [ve-dev]
Customised Swing layout manager
Hi All,
On creating a custom
LayoutManager.override,
I have been able to get the new LayoutManager display name shown in list
for layout property in the property editor . The code I used in the
.override file is as below.
<?xml version="1.0"
encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:org.eclipse.ve.internal.jcm="http:///org/eclipse/ve/internal/jcm.ecore"
xmlns:org.eclipse.ve.internal.cde.decorators="http:///org/eclipse/ve/internal/cde/decorators.ecore"
xmlns:org.eclipse.jem.java="java.xmi" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:event="event.xmi">
<event:Add featureName="eAnnotations">
<addedEObjects xsi:type="ecore:EAnnotation"
source="org.eclipse.ve.LayoutInfo">
<details
key="org.eclipse.ve.internal.jfc.core.layoutManagerClass"
value="mypackage.MyLayout"/>
<details
key="org.eclipse.ve.internal.jfc.core.layoutManagerDisplayName"
value="MyLayout"/>
</addedEObjects>
</event:Add>
</xmi:XMI>
How do We know that the class
MyLayout has been initialized and recognised the LayoutManager class by
VE. I have tried adding breakpoints to my LayoutManager class and running
VE in debug mode. I have not been able to trace the class as the breakpoints
are not being recognised.
MyLayout.override
file is as below
<?xml version="1.0"
encoding="UTF-8"?>
<event:AddMany xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:org.eclipse.ve.internal.jcm="http:///org/eclipse/ve/internal/jcm.ecore"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:codeGenHelpers="platform:/plugin/org.eclipse.ve.java.core/overrides/codegenHelpers.ecore"
xmlns:event="event.xmi"
featureName="eAnnotations">
<addedEObjects xsi:type="org.eclipse.ve.internal.jcm:BeanDecorator">
<keyedValues xsi:type="ecore:EStringToStringMapEntry"
key="org.eclipse.ve.internal.jfc.core.layoutpolicyfactoryclassnamekey"
value="My_Plugin/mypackage.MyLayoutPolicyFactory"/>
</addedEObjects>
<addedEObjects xsi:type="codeGenHelpers:CodeGenHelperClass"
source="codegen.CodeGenHelperClass"
modelled="true"/>
</event:AddMany>
Breakpoint added to MyLayoutPolicyFactory
are not being recognized while testing the plugin.Is there anything wrong
in the above declaration?
How do I run eclipse 3.1 in debug
mode to track the process of execution of the classes that are referenced
in the .override files?
Thank You & Best Regards,
Rashmi Ramachandra
-----Original Message-----
From: ve-dev-bounces@xxxxxxxxxxx [mailto:ve-dev-bounces@xxxxxxxxxxx]On
Behalf Of Peter Walker
Sent: Friday, August 26, 2005 9:00 PM
To: Discussions people developing code for the Visual Editor project
Subject: NL:Re: [ve-dev] Customised Swing layout manager
Rashmi,
To clarify about what override file to create, for SWT layouts use Layout.override,
for AWT/Swing layouts, use LayoutManager.override.
Regards...
Peter Walker
| Rich Kulp/Raleigh/IBM@IBMUS
Sent by: ve-dev-bounces@xxxxxxxxxxx 08/26/2005 09:50 AM
|
|
| Joe Winchester <WINCHEST@xxxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx 08/26/2005 08:24 AM
|
|
Please respond to Discussions people developing code for the Visual Editor project <ve-dev@xxxxxxxxxxx>
Sent by: ve-dev-bounces@xxxxxxxxxxx
To:
<ve-dev@xxxxxxxxxxx>
cc:
Subject: [ve-dev]
Customised Swing layout manager
Hi all,
I have implemented a swing layout manager along with the constraints class.
I loaded it to the eclipse enviroment as a bundle in the plugin. Now when
i use this layout in a visual class I am able to arrange the components
by changing the constraints values from the source view. But i am unable
to move the component on the design view(changing the constraints from
the properties and design view) .Can you help me out to solve my layout
poblem. Do i need to implement some a layout assistant that will interface
with my layout manager and the visualeditor.
Best Regards
-Rashmi
_______________________________________________
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_______________________________________________
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