KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > edit > provider > IUpdateableItemText


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: IUpdateableItemText.java,v 1.2 2005/06/08 06:17:05 nickb Exp $
16  */

17 package org.eclipse.emf.edit.provider;
18
19
20
21 /**
22  * This is the interface implemented by an item provider if it supports an updateable item text.
23  * This is be used to support edit-in-place tree items.
24  */

25 public interface IUpdateableItemText
26 {
27   /**
28    * This returns the text that will be displayed when editing begins.
29    */

30   public String JavaDoc getUpdateableText(Object JavaDoc object);
31
32   /**
33    * This sets the given object's label text to the given text.
34    */

35   public void setText(Object JavaDoc object, String JavaDoc text);
36 }
37
Popular Tags