org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.constraints
Class ASAConstraintsEditorPage
java.lang.Object
   org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.common.EventManager
       org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.WorkbenchPart
           org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.EditorPart
               org.eclipse.datatools.sqltools.common.ui.helpsystem.HelpSystemEditorPart
org.eclipse.datatools.sqltools.common.ui.helpsystem.HelpSystemEditorPart
                   org.eclipse.datatools.sqltools.schemaobjecteditor.ui.core.SchemaObjectEditorPage
org.eclipse.datatools.sqltools.schemaobjecteditor.ui.core.SchemaObjectEditorPage
                       org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.ASATableSchemaEditorPage
org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.ASATableSchemaEditorPage
                           org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.constraints.ASAConstraintsEditorPage
org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.pages.constraints.ASAConstraintsEditorPage
- All Implemented Interfaces: 
- org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, ISchemaObjectEditorModelListener, IDisablementPart, ISchemaObjectEditorPage, org.eclipse.help.IContextProvider, org.eclipse.ui.forms.editor.IFormPage, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
- public class ASAConstraintsEditorPage 
- extends ASATableSchemaEditorPage- implements ISchemaObjectEditorPage
"Constraints" page for ASA table schema editor.
- Author:
- Idull
 
 
 
 
| Fields inherited from interface org.eclipse.ui.IEditorPart | 
| PROP_DIRTY, PROP_INPUT | 
 
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart | 
| PROP_TITLE | 
 
| Fields inherited from interface org.eclipse.help.IContextProvider | 
| NONE, SELECTION | 
 
 
| Method Summary | 
|  void | modelRegenerated()Do something when the model is re-generated, for example, after successfully saving the dirty editor, the edit
 model will be re-cloned from the refreshed database model, in this case, page should be refreshed to keep it
 synchronized with database
 | 
|  void | notifyChanged(org.eclipse.emf.common.notify.Notification msg)Should refresh this page (Active refresh) when:
 Column is added or removed from the constraint
 Constraint is added or removed
 | 
|  void | refresh()Refreshes this page.
 
 | 
|  void | setFocus(int itemType,
         java.lang.Object item)The default implementation sets the current page active
 | 
 
 
| Methods inherited from class org.eclipse.datatools.sqltools.schemaobjecteditor.ui.core.SchemaObjectEditorPage | 
| aboutToSave, canLeaveThePage, createPartControl, dispose, doSave, doSaveAs, enable, getDatabaseIdentifier, getEditor, getEditorDescriptor, getErrorMsg, getId, getIndex, getManagedForm, getPageDescriptor, getPartControl, getPreferencePageIds, getTitleImage, init, initialize, isActive, isDirty, isEditor, isPageOpened, isSaveAsAllowed, markDirty, menuAboutToShow, populateSQLObjects, revert, selectReveal, setActive, setEditor, setEditorDescriptor, setFocus, setId, setIndex, setPageDescriptor, setPartName, validate, validateAndShowErrors | 
 
 
| Methods inherited from class org.eclipse.ui.part.EditorPart | 
| getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData | 
 
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart | 
| addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
| Methods inherited from interface org.eclipse.datatools.sqltools.schemaobjecteditor.ui.ISchemaObjectEditorPage | 
| aboutToSave, getDatabaseIdentifier, getEditorDescriptor, getErrorMsg, getPageDescriptor, getPreferencePageIds, isPageOpened, markDirty, menuAboutToShow, populateSQLObjects, revert, setEditor, setEditorDescriptor, setId, setPageDescriptor, setPartName, validate, validateAndShowErrors, validateOnline | 
 
| Methods inherited from interface org.eclipse.ui.forms.editor.IFormPage | 
| canLeaveThePage, getEditor, getId, getIndex, getManagedForm, getPartControl, initialize, isActive, isEditor, selectReveal, setActive, setIndex | 
 
| Methods inherited from interface org.eclipse.ui.IEditorPart | 
| getEditorInput, getEditorSite, init | 
 
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart | 
| addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus | 
 
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable | 
| getAdapter | 
 
| Methods inherited from interface org.eclipse.ui.ISaveablePart | 
| doSave, doSaveAs, isDirty, isSaveAsAllowed, isSaveOnCloseNeeded | 
 
 
CONSTRAINT_FOCUS
public static final int CONSTRAINT_FOCUS
- See Also:
- Constant Field Values
ASAConstraintsEditorPage
public ASAConstraintsEditorPage()
ASAConstraintsEditorPage
public ASAConstraintsEditorPage(org.eclipse.ui.forms.editor.FormEditor editor,
                                java.lang.String id,
                                java.lang.String title)
ASAConstraintsEditorPage
public ASAConstraintsEditorPage(java.lang.String id,
                                java.lang.String title)
refresh
public void refresh()
- Refreshes this page.
 
 
- 
- Specified by:
- refreshin interface- ISchemaObjectEditorPage
- Overrides:
- refreshin class- ASATableSchemaEditorPage
 
- 
 
modelRegenerated
public void modelRegenerated()
- Description copied from interface: ISchemaObjectEditorPage
- Do something when the model is re-generated, for example, after successfully saving the dirty editor, the edit
 model will be re-cloned from the refreshed database model, in this case, page should be refreshed to keep it
 synchronized with database
 
- 
- Specified by:
- modelRegeneratedin interface- ISchemaObjectEditorPage
- Overrides:
- modelRegeneratedin class- ASATableSchemaEditorPage
 
- 
 
notifyChanged
public void notifyChanged(org.eclipse.emf.common.notify.Notification msg)
- Should refresh this page (Active refresh) when:
 
 - Column is added or removed from the constraint
 
- Constraint is added or removed
 
 
 Also, the page will be lazy refreshed when the page changes
 
 
- 
- Specified by:
- notifyChangedin interface- ISchemaObjectEditorModelListener
- Overrides:
- notifyChangedin class- ASATableSchemaEditorPage
 
- 
- Parameters:
- msg-
 
setFocus
public void setFocus(int itemType,
                     java.lang.Object item)
- Description copied from class: SchemaObjectEditorPage
- The default implementation sets the current page active
 
- 
- Specified by:
- setFocusin interface- ISchemaObjectEditorPage
- Overrides:
- setFocusin class- SchemaObjectEditorPage
 
- 
- Parameters:
- itemType- the type of the item, each page can define its own types
- item- the object of the type, it can be- nullif the item type provides enough information