KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > part > NullFocusable


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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 package org.eclipse.ui.internal.part;
12
13 import org.eclipse.ui.internal.part.components.interfaces.IFocusable;
14
15 /**
16  * Default implementation of the IFocusable adapter. If a part doesn't explicitly
17  * provide an adapter for IFocusable, this implementation will be used.
18  *
19  * @since 3.1
20  */

21 public class NullFocusable implements IFocusable {
22     
23     /**
24      * Creates the default implementation of IFocusable
25      */

26     public NullFocusable() {
27     }
28     
29     /* (non-Javadoc)
30      * @see org.eclipse.ui.internal.part.components.interfaces.IFocusable#setFocus()
31      */

32     public boolean setFocus() {
33         return false;
34     }
35 }
36
Popular Tags