Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Action
Action [message #452544] Mon, 21 March 2005 23:37 Go to next message
Mark Victory is currently offline Mark VictoryFriend
Messages: 133
Registered: July 2009
Senior Member
Why does the Action class have methods such as setChecked, setEnabled, etc.
if
calling them has no effect on the GUI widgets that run the action such as
the toolbar item or menu item?
Re: Action [message #452556 is a reply to message #452544] Tue, 22 March 2005 11:14 Go to previous messageGo to next message
vincent is currently offline vincentFriend
Messages: 3
Registered: July 2009
Junior Member
you need to update the toolbar.

"Mark Victory" <mvictory@us.ibm.com> a
Re: Action [message #452598 is a reply to message #452556] Tue, 22 March 2005 21:56 Go to previous messageGo to next message
Mark Victory is currently offline Mark VictoryFriend
Messages: 133
Registered: July 2009
Senior Member
Yes, I understand that.
I am trying to determine WHY actions have those methods (setChecked, etc.)
if they have no effect.

Thanks,
Mark

"vincent" <vincentg@knowesis.fr> wrote in message
news:d1p381$ak5$1@news.eclipse.org...
> you need to update the toolbar.
>
> "Mark Victory" <mvictory@us.ibm.com> a
Re: Action [message #452613 is a reply to message #452544] Wed, 23 March 2005 12:16 Go to previous messageGo to next message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Mark,

I'm using IAction-classes as variables in my application and use them for my
menus, buttons, toolbars. If I call IAction.setChecked or IAction.setEnabled
then all menus, buttons and toolbars were updated automatically.

Take a look at
MenuManager.add
ToolbarManager.add
....

Bye Stefan

"Mark Victory" <mvictory@us.ibm.com> schrieb im Newsbeitrag
news:d1nqjp$sbb$1@news.eclipse.org...
> Why does the Action class have methods such as setChecked, setEnabled,
etc.
> if
> calling them has no effect on the GUI widgets that run the action such as
> the toolbar item or menu item?
>
>
Re: Action [message #452722 is a reply to message #452613] Wed, 23 March 2005 16:12 Go to previous messageGo to next message
Mark Victory is currently offline Mark VictoryFriend
Messages: 133
Registered: July 2009
Senior Member
Thanks Stefan,

Are your actions contributed via "code" or the plugin.xml?

Thanks,
Mark

"Stefan Pietsch" <pietsch@multichart.de> wrote in message
news:d1rrg6$u82$1@news.eclipse.org...
> Hi Mark,
>
> I'm using IAction-classes as variables in my application and use them for
my
> menus, buttons, toolbars. If I call IAction.setChecked or
IAction.setEnabled
> then all menus, buttons and toolbars were updated automatically.
>
> Take a look at
> MenuManager.add
> ToolbarManager.add
> ...
>
> Bye Stefan
>
> "Mark Victory" <mvictory@us.ibm.com> schrieb im Newsbeitrag
> news:d1nqjp$sbb$1@news.eclipse.org...
> > Why does the Action class have methods such as setChecked, setEnabled,
> etc.
> > if
> > calling them has no effect on the GUI widgets that run the action such
as
> > the toolbar item or menu item?
> >
> >
>
>
Re: Action [message #452966 is a reply to message #452722] Tue, 29 March 2005 10:52 Go to previous message
Stefan Pietsch is currently offline Stefan PietschFriend
Messages: 68
Registered: July 2009
Member
Hi Mark,

I'm using actions via code. I created only standalone applications.

Bye Stefan

"Mark Victory" <mvictory@us.ibm.com> schrieb im Newsbeitrag
news:d1s9b5$kjv$1@news.eclipse.org...
> Thanks Stefan,
>
> Are your actions contributed via "code" or the plugin.xml?
>
> Thanks,
> Mark
>
> "Stefan Pietsch" <pietsch@multichart.de> wrote in message
> news:d1rrg6$u82$1@news.eclipse.org...
> > Hi Mark,
> >
> > I'm using IAction-classes as variables in my application and use them
for
> my
> > menus, buttons, toolbars. If I call IAction.setChecked or
> IAction.setEnabled
> > then all menus, buttons and toolbars were updated automatically.
> >
> > Take a look at
> > MenuManager.add
> > ToolbarManager.add
> > ...
> >
> > Bye Stefan
> >
> > "Mark Victory" <mvictory@us.ibm.com> schrieb im Newsbeitrag
> > news:d1nqjp$sbb$1@news.eclipse.org...
> > > Why does the Action class have methods such as setChecked, setEnabled,
> > etc.
> > > if
> > > calling them has no effect on the GUI widgets that run the action such
> as
> > > the toolbar item or menu item?
> > >
> > >
> >
> >
>
>
Previous Topic:Browser Widget not working on Linux?
Next Topic:Tooltip for Table Cell?
Goto Forum:
  


Current Time: Wed Jul 17 14:19:30 GMT 2019

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

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

Back to the top