|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IEditorUtility
An abstraction of some of the methods used to interact with the editors and panels used in the IDE
| Field Summary | |
|---|---|
static int |
FRAME_HEIGHT
|
static int |
FRAME_WIDTH
|
| Method Summary | |
|---|---|
boolean |
activateEditor(PageResource pageRes,
boolean activate)
Activate the source code editor for this page |
void |
addJar(EditorProject currentProject,
java.net.URL jarUrl)
Add a jar reference to the project class path. |
boolean |
canImportDbTable(java.awt.datatransfer.DataFlavor transferFlavor)
Indicates whether database table can be imported from the given data flavor. |
void |
copy(java.io.InputStream is,
java.io.OutputStream os)
|
void |
copyToClipboard(java.lang.String text)
Copy text to the clipboard |
Page |
getCachedPage(EditorProject currentProject,
PageResource pageRes)
If the page xml has been cached we want to use that xml to generate the page otherwise we just return the page contained in the pageRes object |
java.sql.Connection |
getDbConnection(java.lang.Object obj)
Get database connection |
java.lang.String |
getDbConnectionName(java.lang.Object obj)
Get database connection name |
java.lang.String |
getDbDriver(java.lang.Object obj)
Get database connection driver |
java.lang.String |
getDbDriverFile(java.lang.Object obj)
Get the path to the file (zip, jar) containing the jdbc driver used to connect the the database. |
java.lang.String |
getDbPassword(java.lang.Object obj)
Get database connection password It cannot be obtained from the Connection object |
java.lang.String |
getDbTableName(java.lang.Object obj)
Get database table name |
java.lang.ClassLoader |
getEditorClassLoader(EditorProject project)
Gets the class loader being used by the editor to load resources of the specified project. |
javax.swing.JEditorPane |
getEditorPane(java.awt.Container cont)
Search the container for an instance of JEditorPane |
javax.swing.JEditorPane |
getEditorPane(java.lang.String fileName)
Search the container for an instance of JEditorPane |
java.lang.Object[] |
getHandlerMethods(EditorProject currentProject,
java.lang.String fileName)
Get a list of the methods provided by the page class |
Modifiable |
getPageDataObject(EditorProject currentProject,
java.lang.String name)
Retrieve the PageDataObject for the page with the passed name |
java.lang.String |
getPlatform()
|
java.net.URL[] |
getProjectURLs(EditorProject project)
Gets the classpath URLs of the given project. |
boolean |
hasMethod(EditorProject currentProject,
java.lang.String fileName,
java.lang.String methodName)
Check if a method is already contained within the direct superclass |
void |
insertTextAtCaret(java.lang.Object sourceCodeEditor,
java.lang.String newText)
|
boolean |
isEclipse()
Is this an eclipse plugin? |
boolean |
isValid(java.lang.Object sourceCodeEditor)
|
java.awt.Image |
loadImage(java.lang.String name)
|
boolean |
locateMethod(Project currentProject,
PageResource pageRes,
java.lang.Object sourceCodeEditor,
java.lang.String methodName,
java.lang.String searchText,
boolean addNew,
boolean ctrlDown)
|
void |
markDirty(EditorProject project)
Mark the project as dirty |
boolean |
openSourceFile(EditorProject currentProject,
PageResource pageResource,
java.lang.String fileNme)
|
void |
requestActive(java.lang.Object window)
|
boolean |
setSourceCodeEditor(PageResource pageRes,
java.lang.String fileName)
Set the source code editor for the pageResource |
void |
showErrorMessage(java.lang.String msg,
java.lang.String title)
|
| Field Detail |
|---|
static final int FRAME_WIDTH
static final int FRAME_HEIGHT
| Method Detail |
|---|
void copyToClipboard(java.lang.String text)
text - the text to be copiedjava.sql.Connection getDbConnection(java.lang.Object obj)
obj - the object that the connection is to be obtained from
java.lang.String getDbConnectionName(java.lang.Object obj)
obj - object containing connection name
java.lang.String getDbDriver(java.lang.Object obj)
obj - the object from which the database connection is
to be obtained
java.lang.String getDbDriverFile(java.lang.Object obj)
obj - the object from which the db driver path
will be otained.java.lang.String getDbTableName(java.lang.Object obj)
java.lang.String getDbPassword(java.lang.Object obj)
obj - from which password is to be obtained
boolean canImportDbTable(java.awt.datatransfer.DataFlavor transferFlavor)
transferFlavors - the data formats available
true if database table can be imported,
false otherwise
boolean setSourceCodeEditor(PageResource pageRes,
java.lang.String fileName)
boolean activateEditor(PageResource pageRes,
boolean activate)
pageRes - the page resource that owns the sourceactivate - force the source editor to display if true
javax.swing.JEditorPane getEditorPane(java.awt.Container cont)
cont - the container to search
javax.swing.JEditorPane getEditorPane(java.lang.String fileName)
cont - the container to search
Modifiable getPageDataObject(EditorProject currentProject,
java.lang.String name)
name - the name of the page whose PageDataObject we wish to retrieve
java.net.URL[] getProjectURLs(EditorProject project)
project - project whose classpath entries will be returned
java.lang.ClassLoader getEditorClassLoader(EditorProject project)
project - project the classloader of which is to be obtained
Page getCachedPage(EditorProject currentProject,
PageResource pageRes)
pageRes - the pageResource we're checking
void requestActive(java.lang.Object window)
boolean locateMethod(Project currentProject,
PageResource pageRes,
java.lang.Object sourceCodeEditor,
java.lang.String methodName,
java.lang.String searchText,
boolean addNew,
boolean ctrlDown)
void insertTextAtCaret(java.lang.Object sourceCodeEditor,
java.lang.String newText)
boolean isValid(java.lang.Object sourceCodeEditor)
boolean openSourceFile(EditorProject currentProject,
PageResource pageResource,
java.lang.String fileNme)
boolean hasMethod(EditorProject currentProject,
java.lang.String fileName,
java.lang.String methodName)
currentProject - the current projectfileName - the full file name for the enclosing classmethodName - the bare method name e.g. 'showPrevious'
java.lang.Object[] getHandlerMethods(EditorProject currentProject,
java.lang.String fileName)
currentProject - the current projectfileName - the full file name for the enclosing class
void copy(java.io.InputStream is,
java.io.OutputStream os)
java.awt.Image loadImage(java.lang.String name)
java.lang.String getPlatform()
void showErrorMessage(java.lang.String msg,
java.lang.String title)
void addJar(EditorProject currentProject,
java.net.URL jarUrl)
currentProject - the current projectjarUrl - the jar to addboolean isEclipse()
void markDirty(EditorProject project)
project - the current project
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||