|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.datatools.sqltools.data.internal.ui.DataUIPlugin
public class DataUIPlugin
Field Summary | |
---|---|
static java.lang.String |
PLUGIN_ID
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
DataUIPlugin()
The constructor. |
Method Summary | |
---|---|
static java.lang.String |
getCharacterEncoding()
Gets the encoding string from the Window->Preferences menu |
static DataUIPlugin |
getDefault()
Returns the shared instance. |
static java.lang.String |
getFileContentWithEncoding(java.lang.String filePath)
Gets the file content of a file with consideration for the character encoding for that file. |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String key)
This gets a .gif from the icons folder. |
org.eclipse.jface.resource.ImageDescriptor |
getPngImageDescriptor(java.lang.String key)
This gets a .png from the icons folder. |
TableDataEditorActionBarContributor |
getTableDataEditorContributor()
|
static boolean |
isGroupIDOK(org.eclipse.emf.ecore.EObject o)
|
IExternalTableDataEditor |
newExternalTableDataCellEditor(ITableDataEditor editor,
int columnIndex)
returns the best matching IExternalTableDataEditor or null. |
static java.lang.String |
parseEncoding(java.lang.String filePath)
Parses the character encoding from an XML file. |
void |
setTableDataEditorContributor(TableDataEditorActionBarContributor tableDataEditorContributor)
|
void |
writeLog(int severity,
int code,
java.lang.String message,
java.lang.Throwable exception)
Method writeLog. |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, start, startup, stop |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
Constructor Detail |
---|
public DataUIPlugin()
Method Detail |
---|
public static DataUIPlugin getDefault()
public TableDataEditorActionBarContributor getTableDataEditorContributor()
public void setTableDataEditorContributor(TableDataEditorActionBarContributor tableDataEditorContributor)
public void writeLog(int severity, int code, java.lang.String message, java.lang.Throwable exception)
severity
- - the severity; one of IStatus.OK, IStatus.ERROR, IStatus.INFO, or IStatus.WARNINGcode
- - the plug-in-specific status code, or OKmessage
- - a human-readable message, localized to the current localeexception-
- a low-level exception, or null if not applicablepublic static boolean isGroupIDOK(org.eclipse.emf.ecore.EObject o)
public static java.lang.String getCharacterEncoding()
public static java.lang.String parseEncoding(java.lang.String filePath)
This method assumes that the encoding will appear on the first line of the file and that it will always be in the form below:
filePath
- the path of the file to parse
public static java.lang.String getFileContentWithEncoding(java.lang.String filePath) throws java.io.FileNotFoundException, java.io.IOException
The content of the file is examined to determine the encoding. If found, then that encoding is used. If not found, then the encoding found in the workbench properties is used instead
filePath
- the path to the file
FileNotFoundException,
- IOException if file not found, or some other problems.
java.io.FileNotFoundException
java.io.IOException
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String key)
public org.eclipse.jface.resource.ImageDescriptor getPngImageDescriptor(java.lang.String key)
public IExternalTableDataEditor newExternalTableDataCellEditor(ITableDataEditor editor, int columnIndex)
editor
- the TableDataEditorcolumnIndex
- the index of the sql table column
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |