Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Questions about Sections and Forms and how to delegate actions to them
Questions about Sections and Forms and how to delegate actions to them [message #326834] Tue, 01 April 2008 18:23 Go to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Hello,

I've to deal with Section at the moment and have some questions regarding
them.

1. I the screenshot below and at various places in the plug-in manifest
editor you can see actions at the right side of a sections header.
http://www.eclipse.org/articles/Article-Forms33/images/secti on-aligned.png

How can I add the actions to this position?
Can there be delegated from extension points?

2. Within a FormEditors header a toolbar and a menu can be defined:
http://www.eclipse.org/articles/Article-Forms33/images/form- menu.png

Is it possible to delegate actions and menus to this places using
extension points? Until now I delegated every action within my plug-in
using org.eclipse.menus and it would be sad to break this paradigm here.

3. I'm using ColumnLayout in my Section. Inside one of my sections is e
tree viewer that grows while using the editor (adding items). Sadly the
section does not grow with it. It keeps its size it took after
initializing and grows only in width, not in height. Even calling
form.reflow(true) and tree.layout(true) after adding a item to the tree
didn’t helped. All I want is the section to grab all place available
vertically until the bottom end of the editor region. A good example is
the 'Required Plug-ins' section in the plug-in manifest editors
'Dependencies' tab.

How can this be done?

I could probably answer all the question myself I knew how to get the
plug-in manifest editors sources. So If you know that answer, please let
me know :)

Thank you!
Re: Questions about Sections and Forms and how to delegate actions to them [message #326875 is a reply to message #326834] Wed, 02 April 2008 13:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Jan Kohnert wrote:
> I could probably answer all the question myself I knew how to get the
> plug-in manifest editors sources. So If you know that answer, please let
> me know :)

You can check out the sources from CVS, but that can be tedious because
you usually need several projects to browse enough source to fully
understand. See http://wiki.eclipse.org/CVS_Howto for the details

The simples thing to do is download either the "RCP/Plugin Developers"
or the "Eclipse Classic" packages from the main downloads page. Both of
those include the PDE source code bundles. Unfortunately, the last time
I checked the source bundles are not listed in the Europa update site
for automatic installation, which is unfortunate if you want to work in
your existing installation.

Hope this helps,
Eric
Re: Questions about Sections and Forms and how to delegate actions to them [message #326940 is a reply to message #326834] Thu, 03 April 2008 13:15 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Jan Kohnert wrote:
> 2. Within a FormEditors header a toolbar and a menu can be defined:
> http://www.eclipse.org/articles/Article-Forms33/images/form- menu.png
>
> Is it possible to delegate actions and menus to this places using
> extension points? Until now I delegated every action within my plug-in
> using org.eclipse.menus and it would be sad to break this paradigm here.

The forms article should have mentioned how to add actions to the
section menu and section toolbar, probably using a ToolBarManager and a
MenuManager.

While you don't get any extension point for free, you can hook in any
contribution manager that you control the lifecycle for. Use
org.eclipse.ui.menus.IMenuService.populateContributionManage r(ContributionManager,
String) and
org.eclipse.ui.menus.IMenuService.releaseContributions(Contr ibutionManager),
and make up a unique internal ID.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:creating java project programmatically
Next Topic:Dialogs in org.eclipse.ui.workbench JAR
Goto Forum:
  


Current Time: Thu Dec 26 13:44:29 GMT 2024

Powered by FUDForum. Page generated in 0.02282 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top