KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > tweaklets > AllowGrabFocus


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.ui.internal.tweaklets;
13
14 import org.eclipse.swt.widgets.Display;
15 import org.eclipse.ui.IWorkbenchPart;
16
17 /**
18  * @since 3.3
19  *
20  */

21 public class AllowGrabFocus extends GrabFocus {
22
23     /*
24      * (non-Javadoc)
25      *
26      * @see org.eclipse.ui.internal.tweaklets.GrabFocusManager#allowGrabFocus(org.eclipse.ui.IWorkbenchPart)
27      */

28     public boolean grabFocusAllowed(IWorkbenchPart part) {
29         return true;
30     }
31
32     /*
33      * (non-Javadoc)
34      *
35      * @see org.eclipse.ui.internal.tweaklets.GrabFocusManager#init(Display)
36      */

37     public void init(Display display) {
38     }
39
40     /* (non-Javadoc)
41      * @see org.eclipse.ui.internal.tweaklets.GrabFocusManager#dispose()
42      */

43     public void dispose() {
44     }
45 }
46
Popular Tags