|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.schemaobjecteditor.ui.internal.core.EditorDescriptor
public class EditorDescriptor
An instance of this class stands for a specific schema object editor, which contains some static information of this editor: name, icon, pages, etc.
| Constructor Summary | |
|---|---|
EditorDescriptor(java.lang.String id,
java.lang.String name,
java.lang.String dbName,
java.lang.String dbVersion,
java.lang.String type,
org.eclipse.swt.graphics.Image icon,
boolean genPreference)
|
|
EditorDescriptor(java.lang.String id,
java.lang.String name,
java.lang.String dbName,
java.lang.String dbVersion,
java.lang.String type,
org.eclipse.swt.graphics.Image icon,
boolean genPreference,
IEditorPageDescriptor[] _pages,
ISchemaObjectEditorHandler configuration,
ISchemaObjectEditorActionBarContributor contributor,
org.eclipse.core.runtime.IConfigurationElement configElement,
org.eclipse.core.runtime.IConfigurationElement contributorElement)
|
|
| Method Summary | |
|---|---|
ISchemaObjectEditorActionBarContributor |
getActionContributor()
Returns the action bar contributor, can be null |
java.util.Map |
getDefaultPagesOrder()
Returns the default order of the pages. |
IEditorPageDescriptor[] |
getDefaultSortedPages()
Returns the pages of this editor with default order |
java.lang.String |
getEditorId()
Returns the editor id |
java.lang.String |
getEditorName()
Returns the editor name |
ISchemaObjectEditorHandler |
getHandler()
Returns the handler for this editor |
org.eclipse.swt.graphics.Image |
getIcon()
Returns the icon for this editor, can be null |
IEditorPageDescriptor |
getMandatoryFirstPage()
Returns the page which is specified as the first page when it's visible |
IEditorPageDescriptor |
getMandatoryLastPage()
Returns the page which is specified as the last page when it's visible |
java.lang.String |
getObjectTypeName()
Returns the object type name |
IEditorPageDescriptor[] |
getPageDescriptors()
Returns the pages list of this editor |
java.lang.String |
getPluginId()
Returns the plugin id which this editors belongs to |
java.lang.String |
getSchemaObjectType()
Returns the db object type id for which this editor is defined |
IEditorPageDescriptor[] |
getSortedPages()
Returns the pages of this editor with the order set by end-user |
java.lang.String |
getVendorName()
Returns the vendor name |
java.lang.String |
getVersion()
Returns the product version for which this editor is defined |
IEditorPageDescriptor[] |
getVisibleSortedPages()
Returns the visible pages of this editor with the order set by end-user |
IEditorPageDescriptor[] |
getVisibleSortedPagesDefault()
Returns the visible pages of this editor with default order |
boolean |
isVisibilityConfigurable()
Checks if the visibility of pages of this editor can be set by end user |
void |
setActionContributor(ISchemaObjectEditorActionBarContributor contributor)
Sets the action bar contributor, should NOT called by consumer |
void |
setConfigElement(org.eclipse.core.runtime.IConfigurationElement element)
|
void |
setContributorElement(org.eclipse.core.runtime.IConfigurationElement element)
|
void |
setHandler(ISchemaObjectEditorHandler handler)
Sets the handler, should NOT called by consumer |
void |
setMandatoryFirstPage(IEditorPageDescriptor mandatoryFirstPage)
|
void |
setMandatoryLastPage(IEditorPageDescriptor mandatoryLastPage)
|
void |
setObjectTypeName(java.lang.String objTypeName)
|
void |
setPageDescriptors(IEditorPageDescriptor[] pages)
Sets the pages of this editor, should NOT called by consumer |
void |
setPluginId(java.lang.String pluginId)
Sets the plugin id |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorDescriptor(java.lang.String id,
java.lang.String name,
java.lang.String dbName,
java.lang.String dbVersion,
java.lang.String type,
org.eclipse.swt.graphics.Image icon,
boolean genPreference)
public EditorDescriptor(java.lang.String id,
java.lang.String name,
java.lang.String dbName,
java.lang.String dbVersion,
java.lang.String type,
org.eclipse.swt.graphics.Image icon,
boolean genPreference,
IEditorPageDescriptor[] _pages,
ISchemaObjectEditorHandler configuration,
ISchemaObjectEditorActionBarContributor contributor,
org.eclipse.core.runtime.IConfigurationElement configElement,
org.eclipse.core.runtime.IConfigurationElement contributorElement)
| Method Detail |
|---|
public ISchemaObjectEditorActionBarContributor getActionContributor()
IEditorDescriptornull
getActionContributor in interface IEditorDescriptorpublic java.util.Map getDefaultPagesOrder()
IEditorDescriptor
getDefaultPagesOrder in interface IEditorDescriptorpublic IEditorPageDescriptor[] getDefaultSortedPages()
IEditorDescriptor
getDefaultSortedPages in interface IEditorDescriptorpublic java.lang.String getEditorId()
IEditorDescriptor
getEditorId in interface IEditorDescriptorpublic java.lang.String getEditorName()
IEditorDescriptor
getEditorName in interface IEditorDescriptorpublic ISchemaObjectEditorHandler getHandler()
IEditorDescriptor
getHandler in interface IEditorDescriptorpublic org.eclipse.swt.graphics.Image getIcon()
IEditorDescriptornull
getIcon in interface IEditorDescriptorpublic IEditorPageDescriptor getMandatoryFirstPage()
IEditorDescriptor
getMandatoryFirstPage in interface IEditorDescriptorpublic IEditorPageDescriptor getMandatoryLastPage()
IEditorDescriptor
getMandatoryLastPage in interface IEditorDescriptorpublic IEditorPageDescriptor[] getPageDescriptors()
IEditorDescriptor
getPageDescriptors in interface IEditorDescriptorpublic java.lang.String getSchemaObjectType()
IEditorDescriptor
getSchemaObjectType in interface IEditorDescriptorpublic IEditorPageDescriptor[] getSortedPages()
IEditorDescriptor
getSortedPages in interface IEditorDescriptorpublic java.lang.String getVendorName()
IEditorDescriptor
getVendorName in interface IEditorDescriptorpublic java.lang.String getVersion()
IEditorDescriptor
getVersion in interface IEditorDescriptorpublic IEditorPageDescriptor[] getVisibleSortedPages()
IEditorDescriptor
getVisibleSortedPages in interface IEditorDescriptorpublic IEditorPageDescriptor[] getVisibleSortedPagesDefault()
IEditorDescriptor
getVisibleSortedPagesDefault in interface IEditorDescriptorpublic boolean isVisibilityConfigurable()
IEditorDescriptor
isVisibilityConfigurable in interface IEditorDescriptorpublic void setActionContributor(ISchemaObjectEditorActionBarContributor contributor)
IEditorDescriptor
setActionContributor in interface IEditorDescriptorpublic void setConfigElement(org.eclipse.core.runtime.IConfigurationElement element)
public void setContributorElement(org.eclipse.core.runtime.IConfigurationElement element)
public void setHandler(ISchemaObjectEditorHandler handler)
IEditorDescriptor
setHandler in interface IEditorDescriptorpublic void setMandatoryFirstPage(IEditorPageDescriptor mandatoryFirstPage)
setMandatoryFirstPage in interface IEditorDescriptorpublic void setMandatoryLastPage(IEditorPageDescriptor mandatoryLastPage)
setMandatoryLastPage in interface IEditorDescriptorpublic void setPageDescriptors(IEditorPageDescriptor[] pages)
IEditorDescriptor
setPageDescriptors in interface IEditorDescriptorpublic java.lang.String getObjectTypeName()
IEditorDescriptor
getObjectTypeName in interface IEditorDescriptorpublic void setObjectTypeName(java.lang.String objTypeName)
setObjectTypeName in interface IEditorDescriptorpublic java.lang.String getPluginId()
IEditorDescriptor
getPluginId in interface IEditorDescriptorpublic void setPluginId(java.lang.String pluginId)
IEditorDescriptor
setPluginId in interface IEditorDescriptor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||