KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > part > services > NullNameableService


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.services;
12
13 import org.eclipse.jface.resource.ImageDescriptor;
14 import org.eclipse.ui.internal.part.components.services.INameable;
15
16 /**
17  * Default implementation of the Nameable service. All methods are no-ops.
18  *
19  * @since 3.1
20  */

21 public class NullNameableService implements INameable {
22
23     /**
24      * Component constructor. Do not invoke directly.
25      */

26     public NullNameableService() {
27         
28     }
29     
30     /* (non-Javadoc)
31      * @see org.eclipse.ui.workbench.services.INameable#setName(java.lang.String)
32      */

33     public void setName(String JavaDoc newName) {
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.ui.workbench.services.INameable#setContentDescription(java.lang.String)
38      */

39     public void setContentDescription(String JavaDoc contentDescription) {
40     }
41
42     /* (non-Javadoc)
43      * @see org.eclipse.ui.workbench.services.INameable#setImage(org.eclipse.swt.graphics.Image)
44      */

45     public void setImage(ImageDescriptor theImage) {
46     }
47
48     /* (non-Javadoc)
49      * @see org.eclipse.ui.workbench.services.INameable#setTooltip(java.lang.String)
50      */

51     public void setTooltip(String JavaDoc toolTip) {
52     }
53
54 }
55
Popular Tags