2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Checking if MenuItem is checked


  • Subject: Re: [QF-Test] Checking if MenuItem is checked
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 17 Apr 2007 09:41:55 +0200

Hi Mac,

this appears to be an SWT MenuItem, not a Swing JMenuItem, so you have
to use the appropriate API, i.e. getText() instead of getLabel().

The documentation for SWT 3.2. is available online at

http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/widgets/package-summary.html

Best regards,
    Greg

Mac Martine <martine@?.com> writes:

>    Hello-
>    I have a MenuItem I got by using:
>    MyMenuItem = rc.getComponent("menuitemBuild_Automatically")
>    When I print MyMenuItem it prints "MenuItem {Build Auto&matically}"
>    The only other info I can seems to get about it is
>    MyMenuItem.isEnabled()
>    All other calls I expect to work on it all fail.
>    MyMenuItem.getLabel(), etc. Why is that?
>    But what I really need to know is if this menu item is checked or not.
>    It has a check next to it is it's on, or no check if it's off. How can
>    I figure out if it's checked or not?
>    Thanks!
>    Mac
>    Adobe Systems, Inc.

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833