net.sourceforge.geeboss.view
Class GeebossMenu

java.lang.Object
  extended by net.sourceforge.geeboss.view.GeebossMenu
All Implemented Interfaces:
Translatable

public class GeebossMenu
extends java.lang.Object
implements Translatable

This is the Menu that is displayed on top of the Geeboss application


Field Summary
static java.lang.String[] MENU_STRUCTURE
          Toplevel menu structure used to set hotkeys
static java.lang.String[][] SUB_MENU_STRCTURE
          Sublevel menu structure that may be assigned with hotkeys
 
Constructor Summary
GeebossMenu(MainView geebossGui, org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Shell shell, EventManager eventManager)
          Create a new Geeboss Menu.
 
Method Summary
 void disposeNewMenu()
          Dispose Management for the "File -> New" Menu
 void initMnemonics()
          Init the mnemonics
 void removeOneCharAccelerators()
          This is a workaround for bug #915624.
 void setPatchTreeMenuEnabled(boolean enabled)
          Set the Patch Tree Menuitem to checked or not
 void setQuickviewMenuEnabled(boolean enabled)
          Set the Quickview Menuitem to checked or not
 void updateAccelerators()
          Update the accelerators on the menuitems
 void updateI18N()
          Update all controlls text with i18n
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MENU_STRUCTURE

public static final java.lang.String[] MENU_STRUCTURE
Toplevel menu structure used to set hotkeys


SUB_MENU_STRCTURE

public static java.lang.String[][] SUB_MENU_STRCTURE
Sublevel menu structure that may be assigned with hotkeys

Constructor Detail

GeebossMenu

public GeebossMenu(MainView geebossGui,
                   org.eclipse.swt.widgets.Display display,
                   org.eclipse.swt.widgets.Shell shell,
                   EventManager eventManager)
Create a new Geeboss Menu.

Parameters:
geebossGui - Access some methods of the main controller
display - The display
shell - The shell
eventManager - The manager handling user interaction
Method Detail

disposeNewMenu

public void disposeNewMenu()
Dispose Management for the "File -> New" Menu


initMnemonics

public void initMnemonics()
Init the mnemonics


removeOneCharAccelerators

public void removeOneCharAccelerators()
This is a workaround for bug #915624. Remove hotkeys that use a single character (in this case 'n' and 'f').


setPatchTreeMenuEnabled

public void setPatchTreeMenuEnabled(boolean enabled)
Set the Patch Tree Menuitem to checked or not

Parameters:
enabled - true sets item unchecked

setQuickviewMenuEnabled

public void setQuickviewMenuEnabled(boolean enabled)
Set the Quickview Menuitem to checked or not

Parameters:
enabled - true sets item unchecked

updateAccelerators

public void updateAccelerators()
Update the accelerators on the menuitems


updateI18N

public void updateI18N()
Update all controlls text with i18n

Specified by:
updateI18N in interface Translatable


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.