[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [pde-dev] Diasabling Menuitems by code
|
Hey Curtis,
Thank you so much for the clarification! Meanwhile sorry for the inconvenience that my posts might have caused. Wish everyone have a great weekend!
Thanks,
Frank
2008/11/21 Curtis Windatt
<Curtis_Windatt@xxxxxxxxxx>
Mailing lists are intended for development discussion (by committers, contributors, and those extending the framework) while the newsgroups are for more general help and questions.
http://www.eclipse.org/mail/
http://www.eclipse.org/newsgroups/
As your question is asking for explanation on how to use some part of the platform framework, and isn't really about the development of the platform, it better belongs on the newsgroups (as Darin pointed out, the platform newsgroup, not PDE, is relevent to your question). IRC is another good place to try (http://wiki.eclipse.org/index.php/IRC). The newsgroups and IRC have a lot more people available to help you.
The p2 mailing lists are more active with developers using the framework, so they are might be more flexible.
Curtis
"Frank Du" ---11/21/2008 11:18:13 AM---Hi Darin,
Hi Darin,
It seems that I had sent emails into inappropriate places. I am not sure about the difference between mailing list and newsgroup. Is p2-dev mailing list intended for p2 contribution developers? If I have development questions about p2, I should post to the equinox newsgroup, right? Thank you for the clarification~~
Thanks a lot,
Frank
On Fri, Nov 21, 2008 at 10:59 AM, Darin Wright <Darin_Wright@xxxxxxxxxx> wrote:
This sort of question should be asked on the newsgroups rather than the
developer mailing list. It actually deals with the workbench frameworks
rather than PDE.
Darin
Sven Schwerin <schender2@xxxxxxxxxx>
Sent by: pde-dev-bounces@xxxxxxxxxxx
11/21/2008 03:05 AM
Please respond to
"Eclipse PDE general developers list." <pde-dev@xxxxxxxxxxx>
To
<pde-dev@xxxxxxxxxxx>
cc
Subject
[pde-dev] Diasabling Menuitems by code
Hi all,
cann someone exlain me how to get a reference to a menuitem by code to
enable/disable it.
Problem is when i want to disable a single menu item e.g. File -> Save
with following code i can only disable
the whole menu instead of single menuitems.
I tried to achieve this with following code:
Menu menuBar =
PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell().getMenuBar();
MenuItem [] items = menuBar.getItems();
items[0].setEnabled(false);
With this code i can disable the file menu.
MenuItem fileMenuItems [] = items[0].getMenu().getItems();
when i add this line fileMenuItems are null after execution.
Can someone help me with this problem?
Sven
Rundum-Schutz für den PC - Windows Live OneCare: 90 Tage kostenlos!
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev
--
Best Regards,
Frank Du_______________________________________________
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev
--
Best Regards,
Frank Du

