Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.jface.text.link
Class ProposalPosition

java.lang.Object
  extended by 

org.eclipse.jface.text.Position
      extended by 

org.eclipse.jface.text.link.LinkedPosition
          extended by 
org.eclipse.jface.text.link.ProposalPosition

public class ProposalPosition
extends LinkedPosition

LinkedPosition with added completion proposals.

Clients may instantiate or extend this class.

Since:
3.0

Field Summary
 
Fields inherited from class org.eclipse.jface.text. Position
isDeleted, length, offset
 
Constructor Summary
ProposalPosition ( IDocument document, int offset, int length, ICompletionProposal[] proposals)
          Creates a new instance, with no sequence number.
ProposalPosition ( IDocument document, int offset, int length, int sequence, ICompletionProposal[] proposals)
          Creates a new instance.
 
Method Summary
 boolean equals ( Object o)
           
  ICompletionProposal[] getChoices ()
          Returns the proposals attached to this position.
 int hashCode ()
           
 
Methods inherited from class org.eclipse.jface.text.link. LinkedPosition
getContent, getDocument, getSequenceNumber, includes, includes, includes, includes, overlapsWith, setSequenceNumber
 
Methods inherited from class org.eclipse.jface.text. Position
delete, getLength, getOffset, isDeleted, overlapsWith, setLength, setOffset, toString, undelete
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProposalPosition

public ProposalPosition(
IDocument document,
                        int offset,
                        int length,
                        int sequence,
                        
ICompletionProposal[] proposals)
Creates a new instance.

Parameters:
document - the document
offset - the offset of the position
length - the length of the position
sequence - the iteration sequence rank
proposals - the proposals to be shown when entering this position

ProposalPosition

public ProposalPosition(
IDocument document,
                        int offset,
                        int length,
                        
ICompletionProposal[] proposals)
Creates a new instance, with no sequence number.

Parameters:
document - the document
offset - the offset of the position
length - the length of the position
proposals - the proposals to be shown when entering this position
Method Detail

equals

public boolean equals(
Object o)
Overrides:
equals in class LinkedPosition

getChoices

public 
ICompletionProposal[] getChoices()
Returns the proposals attached to this position. The returned array is owned by this ProposalPosition and may not be modified by clients.

Returns:
an array of choices, including the initial one. Callers must not modify it.

hashCode

public int hashCode()
Overrides:
hashCode in class LinkedPosition

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire