[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ve-dev] Customised Swing layout manager
|
Hi
all,
I was successful in
creating a override for loading my LayoutManager on the the layout property list
of the containers. When I started analysing the BorderLayout.override, I came
across a number of classes that do not have any API support and that are part of
jfc core internal package. I have also noticed other layout related class like
LayoutSwitcher, LayoutPolicyHelper, LayoutEditPolicy and
ConstraintPropertyDescriptor that may need to be implemented. Do we have
turorial or any documented help that would tell me how to go about writing the
edit policies for a custom layout manager and the required classes for
implementing a custom constrained layout?
-Rashmi
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