| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.actions.ActionHelper
public class ActionHelper
This class provides a set of helpful functions that support New and Open actions.
| Constructor Summary | |
|---|---|
| ActionHelper() | |
| Method Summary | |
|---|---|
| static org.eclipse.ui.IEditorInput | createEditorInput(org.eclipse.core.resources.IResource resource,
                  java.lang.String editorID,
                  ISQLEditorConnectionInfo connInfo)Creates and returns an IEditorInputobject that is suitable for the
 given editor. | 
| static java.lang.String[] | getTemplateDDLStatements()Gets an array of strings containing a set of template DDL statements. | 
| static java.lang.String[] | getTemplateDMLStatements()Gets an array of strings containing a set of template DML statements. | 
| static java.lang.String | getTemplateSQLForStatementType(int statementType)Gets template SQL for the given statement type. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ActionHelper()
| Method Detail | 
|---|
public static org.eclipse.ui.IEditorInput createEditorInput(org.eclipse.core.resources.IResource resource,
                                                            java.lang.String editorID,
                                                            ISQLEditorConnectionInfo connInfo)
IEditorInput object that is suitable for the
 given editor.
resource - the resource (typically a file resource) with which to create
 the editor inputeditorID - the editor ID (defined in the editor's plugin.xml) for which
 an IEditorInput object is needed.  The supported editors are the
 SQL Builder and the SQL Editor.connInfo - a ISQLEditorConnectionInfo object to use to create the 
 editor input
- Returns:
- the edit input object
public static java.lang.String[] getTemplateDDLStatements()
public static java.lang.String[] getTemplateDMLStatements()
public static java.lang.String getTemplateSQLForStatementType(int statementType)
StatementHelper, plus
 some additional SQL Editor-specific statement types defined in
 NewSQLStatementControl  The statement types defined in 
 StatementHelper return a single template SQL statement.
 The statement types defined in NewSQLStatementControl return
 either several template SQL statements or none.
statementType - the type of statement for which the SQL template
 is needed
StatementHelper, 
NewSQLStatementComposite| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||