KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > provisional > AbstractColumnEditor


1 /*******************************************************************************
2  * Copyright (c) 2006 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.debug.internal.ui.viewers.provisional;
12
13
14 /**
15  * Common function for a column editor.
16  * <p>
17  * Clients implementing <code>IColumnEditor</code> must subclass this class.
18  * </p>
19  * @since 3.2
20  */

21 public abstract class AbstractColumnEditor implements IColumnEditor {
22     
23     private IPresentationContext fContext;
24
25     /* (non-Javadoc)
26      * @see org.eclipse.debug.internal.ui.viewers.provisional.IColumnPresentation#init(org.eclipse.debug.internal.ui.viewers.provisional.IPresentationContext)
27      */

28     public void init(IPresentationContext context) {
29         fContext = context;
30     }
31
32     /* (non-Javadoc)
33      * @see org.eclipse.debug.internal.ui.viewers.provisional.IColumnPresentation#dispose()
34      */

35     public void dispose() {
36         fContext = null;
37     }
38     
39     /**
40      * Returns the context this column presentation is installed in.
41      *
42      * @return presentation context
43      */

44     protected IPresentationContext getPresentationContext() {
45         return fContext;
46     }
47 }
48
Popular Tags