org.eclipse.emf.mapping.presentation
Class ComposedSelection

java.lang.Object
  |
  +--org.eclipse.emf.mapping.presentation.ComposedSelection
All Implemented Interfaces:
IComposedSelection, org.eclipse.jface.viewers.ISelection, org.eclipse.jface.viewers.IStructuredSelection

public class ComposedSelection
extends java.lang.Object
implements org.eclipse.jface.viewers.IStructuredSelection, IComposedSelection


Field Summary
protected  org.eclipse.jface.viewers.ISelection primarySelection
           
protected  org.eclipse.jface.viewers.ISelection[] selections
           
 
Constructor Summary
ComposedSelection(org.eclipse.jface.viewers.ISelection primarySelection, org.eclipse.jface.viewers.ISelection[] selections)
           
 
Method Summary
 boolean equals(java.lang.Object that)
           
 org.eclipse.jface.viewers.IStructuredSelection getCombinedSelection()
           
 java.util.Iterator getElements()
          Deprecated.  
 java.lang.Object getFirstElement()
           
 java.lang.Object getPrimaryItem()
           
 org.eclipse.jface.viewers.ISelection getSelection()
           
 org.eclipse.jface.viewers.ISelection[] getSelections()
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 int size()
           
 java.lang.Object[] toArray()
           
 java.util.List toList()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selections

protected org.eclipse.jface.viewers.ISelection[] selections

primarySelection

protected org.eclipse.jface.viewers.ISelection primarySelection
Constructor Detail

ComposedSelection

public ComposedSelection(org.eclipse.jface.viewers.ISelection primarySelection,
                         org.eclipse.jface.viewers.ISelection[] selections)
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface org.eclipse.jface.viewers.ISelection

getElements

public java.util.Iterator getElements()
Deprecated.  


iterator

public java.util.Iterator iterator()
Specified by:
iterator in interface org.eclipse.jface.viewers.IStructuredSelection

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface org.eclipse.jface.viewers.IStructuredSelection

toList

public java.util.List toList()
Specified by:
toList in interface org.eclipse.jface.viewers.IStructuredSelection

getFirstElement

public java.lang.Object getFirstElement()
Specified by:
getFirstElement in interface org.eclipse.jface.viewers.IStructuredSelection

getPrimaryItem

public java.lang.Object getPrimaryItem()

size

public int size()
Specified by:
size in interface org.eclipse.jface.viewers.IStructuredSelection

getSelection

public org.eclipse.jface.viewers.ISelection getSelection()
Specified by:
getSelection in interface IComposedSelection

getSelections

public org.eclipse.jface.viewers.ISelection[] getSelections()
Specified by:
getSelections in interface IComposedSelection

getCombinedSelection

public org.eclipse.jface.viewers.IStructuredSelection getCombinedSelection()
Specified by:
getCombinedSelection in interface IComposedSelection

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.