KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > model > elements > VariableEditor


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.model.elements;
12
13 import org.eclipse.debug.internal.ui.elements.adapters.DefaultVariableCellModifier;
14 import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor;
15 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
16 import org.eclipse.jface.viewers.CellEditor;
17 import org.eclipse.jface.viewers.ICellModifier;
18 import org.eclipse.jface.viewers.TextCellEditor;
19 import org.eclipse.swt.widgets.Composite;
20
21 /**
22  * @since 3.3
23  */

24 public class VariableEditor implements IElementEditor {
25
26     /* (non-Javadoc)
27      * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor#getCellEditor(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.String, java.lang.Object, org.eclipse.swt.widgets.Composite)
28      */

29     public CellEditor getCellEditor(IPresentationContext context, String JavaDoc columnId, Object JavaDoc element, Composite parent) {
30         return new TextCellEditor(parent);
31     }
32
33     /* (non-Javadoc)
34      * @see org.eclipse.debug.internal.ui.viewers.model.provisional.IElementEditor#getCellModifier(org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext, java.lang.Object)
35      */

36     public ICellModifier getCellModifier(IPresentationContext context, Object JavaDoc element) {
37         return new DefaultVariableCellModifier();
38     }
39
40 }
41
Popular Tags