if (CLabel.this.text != null) { char mnemonic = findMnemonic(CLabel.this.text); if (mnemonic != '\0') { e.result = "Alt+"+mnemonic; }
char mnemonic = findMnemonic(CLabel.this.text); if (mnemonic != '\0') { e.result = "Alt+"+mnemonic;
private void initAccessible() {	Accessible accessible = getAccessible();	accessible.addAccessibleListener(new AccessibleAdapter() {		public void getName(AccessibleEvent e) {			e.result = getText();		}				public void getHelp(AccessibleEvent e) {			e.result = getToolTipText();		}				public void getKeyboardShortcut(AccessibleEvent e) {			if (CLabel.this.text != null) {				char mnemonic = findMnemonic(CLabel.this.text);					if (mnemonic != '\0') {					e.result = "Alt+"+mnemonic; //$NON-NLS-1$				}			}		}	});			accessible.addAccessibleControlListener(new AccessibleControlAdapter() {		public void getChildAtPoint(AccessibleControlEvent e) {			Point pt = toControl(new Point(e.x, e.y));			e.childID = (getBounds().contains(pt)) ? ACC.CHILDID_SELF : ACC.CHILDID_NONE;		}				public void getLocation(AccessibleControlEvent e) {			Rectangle location = getBounds();			Point pt = toDisplay(new Point(location.x, location.y));			e.x = pt.x;			e.y = pt.y;			e.width = location.width;			e.height = location.height;		}				public void getChildCount(AccessibleControlEvent e) {			e.detail = 0;		}				public void getRole(AccessibleControlEvent e) {			e.detail = ACC.ROLE_LABEL;		}				public void getState(AccessibleControlEvent e) {			e.detail = ACC.STATE_READONLY;		}				public void getValue(AccessibleControlEvent e) {			e.result = getText();		}	});}