[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
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.
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
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
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]
Customised Swing layout manager |
|
Hi,
A little typo, to get your layout manager to show
in the property sheet you create an override for Layout.override, not
Container.override. You just create a new override, put the extension point in
to pick it up as an override and add another annotation. See the
Layout.override that already exists to see how to do that.
Rich
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 |
|
To
| Discussions people developing code for the Visual Editor
project <ve-dev@xxxxxxxxxxx>
|
cc
|
|
Subject
| Re: [ve-dev]
Customised Swing layout manager |
|
Hi
Rashmi,
The
best way is to look at how this is done for a layout manager like, say,
BorderLayout. There is a file BorderLayout.override and this
defines the decorator for a factory, and the factory lets you control things
like GEF edit policies (that you will need to build). Look at the
existing factories and you should get a feel for how to do this.
To get your layout manager to appear in the drop down
list of available layout managers in the property sheet look at
Container.override. You could change the base file to add your own which
would work OK for you, but better would be to have your own Container.override
in your own plugin and defined your own layout manager.
If you need help
understanding how to create a plugin and get started with .override try the
Visual Editor tutorial on eclipse corner and the VE homepage.
Best regards and please
keep us informed of how you get on,
Joe Winchester
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