KickJava   Java API By Example, From Geeks To Geeks.

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


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.core.runtime.IProgressMonitor;
14 import org.eclipse.core.runtime.NullProgressMonitor;
15 import org.eclipse.jface.action.IStatusLineManager;
16 import org.eclipse.swt.graphics.Image;
17
18 /**
19  * @since 3.1
20  */

21 public class NullStatusLineManager extends NullContributionManager implements
22         IStatusLineManager {
23
24     private NullProgressMonitor progressMonitor = new NullProgressMonitor();
25     
26     /* (non-Javadoc)
27      * @see org.eclipse.jface.action.IStatusLineManager#getProgressMonitor()
28      */

29     public IProgressMonitor getProgressMonitor() {
30         return progressMonitor;
31     }
32
33     /* (non-Javadoc)
34      * @see org.eclipse.jface.action.IStatusLineManager#isCancelEnabled()
35      */

36     public boolean isCancelEnabled() {
37         return false;
38     }
39
40     /* (non-Javadoc)
41      * @see org.eclipse.jface.action.IStatusLineManager#setCancelEnabled(boolean)
42      */

43     public void setCancelEnabled(boolean enabled) {
44
45     }
46
47     /* (non-Javadoc)
48      * @see org.eclipse.jface.action.IStatusLineManager#setErrorMessage(java.lang.String)
49      */

50     public void setErrorMessage(String JavaDoc message) {
51
52     }
53
54     /* (non-Javadoc)
55      * @see org.eclipse.jface.action.IStatusLineManager#setErrorMessage(org.eclipse.swt.graphics.Image, java.lang.String)
56      */

57     public void setErrorMessage(Image image, String JavaDoc message) {
58
59     }
60
61     /* (non-Javadoc)
62      * @see org.eclipse.jface.action.IStatusLineManager#setMessage(java.lang.String)
63      */

64     public void setMessage(String JavaDoc message) {
65
66     }
67
68     /* (non-Javadoc)
69      * @see org.eclipse.jface.action.IStatusLineManager#setMessage(org.eclipse.swt.graphics.Image, java.lang.String)
70      */

71     public void setMessage(Image image, String JavaDoc message) {
72
73     }
74
75 }
76
Popular Tags