Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.resources
Class QSYSEditorUtils

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.resources.QSYSEditorUtils

public class QSYSEditorUtils
extends Object

Utility functions for editing.


Field Summary
static String copyright
           
 
Method Summary
static IEditorPart findEditor(IFile file)
          Find an open editor associated with the specified IFile
static IEditorPart openEditor(String editorID, IFile file)
          Open an editor for the specified IFile.
static void setEditorAsReadOnly(IEditorPart editor, IFile file, boolean readOnly)
          Set editor to read only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Method Detail

findEditor

public static IEditorPart findEditor(IFile file)
Find an open editor associated with the specified IFile


openEditor

public static IEditorPart openEditor(String editorID,
                                     IFile file)
Open an editor for the specified IFile. If the file is already open, then the existing editor is given focus.


setEditorAsReadOnly

public static void setEditorAsReadOnly(IEditorPart editor,
                                       IFile file,
                                       boolean readOnly)
Set editor to read only


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.