|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.fieldassist.SimpleContentProposal
ContentProposal
instead. This class will be removed
before the final release.
public class SimpleContentProposal
A default implementation of IContentProposal that allows clients to specify the contents in a constructor method.
Constructor Summary | |
---|---|
SimpleContentProposal(String content)
Deprecated. Create a simple content proposal whose label and content are the specified String. |
|
SimpleContentProposal(String content,
String description)
Deprecated. Create a simple content proposal whose content and description are as specified in the parameters. |
|
SimpleContentProposal(String content,
String label,
String description)
Deprecated. Create a simple content proposal whose content, label, and description are as specified in the parameters. |
Method Summary | |
---|---|
String |
getContent()
Deprecated. Return the content represented by this proposal. |
int |
getCursorPosition()
Deprecated. Return the integer position within the contents that the cursor should be placed after the proposal is accepted. |
String |
getDescription()
Deprecated. Return a description that describes this proposal. |
String |
getLabel()
Deprecated. Return the label used to describe this proposal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleContentProposal(String content)
content
- the String representing the content. Should not be
null
.public SimpleContentProposal(String content, String description)
content
- the String representing the content. Should not be
null
. This string will also be used as the label.description
- the String representing the description, or null
if there should be no description.public SimpleContentProposal(String content, String label, String description)
content
- the String representing the content. Should not be
null
.label
- the String representing the label. Should not be
null
.description
- the String representing the description, or null
if there should be no description.Method Detail |
---|
public String getContent()
IContentProposal
getContent
in interface IContentProposal
public int getCursorPosition()
IContentProposal
getCursorPosition
in interface IContentProposal
public String getDescription()
IContentProposal
getDescription
in interface IContentProposal
null
, then no description will be displayed.public String getLabel()
IContentProposal
getLabel
in interface IContentProposal
null
, then the content will be displayed as the
label.
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.