Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Apply GridData for button created by jface action
Apply GridData for button created by jface action [message #464261] Sat, 19 November 2005 10:14 Go to next message
Eclipse UserFriend
Originally posted by: ashraf.fouad.gmail.com

Dears,
I'm still new in SWT/JFace, and this is my first application, so sorry if
it seems it is naive.

I layout my controls using GridLayout, and I created some JFACE buttons
using action classes I created using:

ActionContributionItem aci = new ActionContributionItem(action);
aci.fill(this.buttonArea);

this.buttonArea is Composite which have GridLayout of 3 columns, I want to
add the button filling horizontal span = 3, and some other attributes in
GridData.

How can I specify the layout for button created using Jface action?

Thanks in advance.
Ashraf Fouad
Re: Apply GridData for button created by jface action [message #464377 is a reply to message #464261] Tue, 22 November 2005 12:01 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Actions are part of the UI Workbench. You will probably get a better
response to this question in the eclipse platform newsgroup:

news://news.eclipse.org/eclipse.platform

"Ashraf Fouad" <ashraf.fouad@gmail.com> wrote in message
news:75805464090dbcd98b61f66653af49a4$1@www.eclipse.org...
> Dears,
> I'm still new in SWT/JFace, and this is my first application, so sorry if
> it seems it is naive.
>
> I layout my controls using GridLayout, and I created some JFACE buttons
> using action classes I created using:
>
> ActionContributionItem aci = new ActionContributionItem(action);
> aci.fill(this.buttonArea);
>
> this.buttonArea is Composite which have GridLayout of 3 columns, I want to
> add the button filling horizontal span = 3, and some other attributes in
> GridData.
>
> How can I specify the layout for button created using Jface action?
>
> Thanks in advance.
> Ashraf Fouad
>
Previous Topic:Problems with receiving SelectionChangedEvent notifications
Next Topic:Text widget as a console
Goto Forum:
  


Current Time: Mon Aug 19 23:04:29 GMT 2019

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

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

Back to the top