org.eclipse.xtext.ui.views
Class DefaultWorkbenchPartSelection

java.lang.Object
  extended by org.eclipse.xtext.ui.views.DefaultWorkbenchPartSelection
All Implemented Interfaces:
IWorkbenchPartSelection
Direct Known Subclasses:
DerivedSourceSelection

public class DefaultWorkbenchPartSelection
extends java.lang.Object
implements IWorkbenchPartSelection

Since:
2.3
Author:
Michael Clay - Initial contribution and API

Constructor Summary
DefaultWorkbenchPartSelection(org.eclipse.ui.IWorkbenchPart workbenchPart, org.eclipse.jface.viewers.ISelection selection)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 org.eclipse.jface.viewers.ISelection getSelection()
           
 org.eclipse.ui.IWorkbenchPart getWorkbenchPart()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWorkbenchPartSelection

public DefaultWorkbenchPartSelection(org.eclipse.ui.IWorkbenchPart workbenchPart,
                                     org.eclipse.jface.viewers.ISelection selection)
Method Detail

getWorkbenchPart

public org.eclipse.ui.IWorkbenchPart getWorkbenchPart()
Specified by:
getWorkbenchPart in interface IWorkbenchPartSelection

getSelection

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

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