|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.ide.ResourceUtil
Utility class for manipulating resources and determining correspondences between resources and workbench objects.
This class provides all its functionality via static methods. It is not intended to be instantiated or subclassed.
Method Summary | |
---|---|
static IEditorPart |
findEditor(IWorkbenchPage page,
IFile file)
Returns the editor in the given page whose input represents the given file, or null if there is no such editor. |
static IFile |
getFile(IEditorInput editorInput)
Returns the file corresponding to the given editor input, or null
if there is no applicable file.
|
static IResource |
getResource(IEditorInput editorInput)
Returns the resource corresponding to the given editor input, or null
if there is no applicable resource.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static IFile getFile(IEditorInput editorInput)
null
if there is no applicable file.
Returns null
if the given editor input is null
.
editorInput
- the editor input, or null
null
public static IResource getResource(IEditorInput editorInput)
null
if there is no applicable resource.
Returns null
if the given editor input is null
.
editorInput
- the editor input
null
public static IEditorPart findEditor(IWorkbenchPage page, IFile file)
null
if there is no such editor.
page
- the workbench pagefile
- the file
null
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.