org.eclipse.xtext.xtext.launcher
Class SelectionUtil

java.lang.Object
  extended by org.eclipse.xtext.xtext.launcher.SelectionUtil

public class SelectionUtil
extends java.lang.Object

Author:
Peter Friese - Initial contribution and API

Constructor Summary
SelectionUtil()
           
 
Method Summary
static org.eclipse.core.resources.IFile getSelectedFile(org.eclipse.core.commands.ExecutionEvent event)
           
static org.eclipse.core.resources.IFile getSelectedFile(org.eclipse.ui.IEditorPart editor)
           
static org.eclipse.core.resources.IFile getSelectedFile(org.eclipse.jface.viewers.ISelection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionUtil

public SelectionUtil()
Method Detail

getSelectedFile

public static org.eclipse.core.resources.IFile getSelectedFile(org.eclipse.core.commands.ExecutionEvent event)

getSelectedFile

public static org.eclipse.core.resources.IFile getSelectedFile(org.eclipse.ui.IEditorPart editor)

getSelectedFile

public static org.eclipse.core.resources.IFile getSelectedFile(org.eclipse.jface.viewers.ISelection selection)