org.topbraidcomposer.editors.forms.page
Class ResourceFormPage

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.EditorPart
              extended by org.eclipse.ui.forms.editor.FormPage
                  extended by org.topbraidcomposer.editors.pages.AbstractResourceEditorPage
                      extended by org.topbraidcomposer.editors.forms.page.ResourceFormPage
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, 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, IChangeEngineListener, IResourceSelectionListener, IResourceFormPage, IResourceEditorPage, ISubjectForm

public class ResourceFormPage
extends AbstractResourceEditorPage
implements IChangeEngineListener, IResourceFormPage, IResourceEditorPage, IResourceSelectionListener, ISubjectForm


Field Summary
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ResourceFormPage(org.eclipse.ui.forms.editor.FormEditor formEditor, java.lang.String id, java.lang.String title)
           
 
Method Summary
 IPropertyWidget addPropertyWidget(com.hp.hpl.jena.rdf.model.Property predicate)
           
 IPropertyWidget addPropertyWidget(com.hp.hpl.jena.rdf.model.Property predicate, boolean withEmptyValue)
           
 void changeOperationPerformed(ChangeOperation operation, boolean undone)
          Notifies the receiver that changes to one or more Graphs have been performed.
protected  void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
           
 void dispose()
           
protected  void fillContextMenu(org.eclipse.jface.action.MenuManager mm)
           
 org.eclipse.swt.widgets.Control getControl()
           
 int getLayoutColumnCount()
           
 IPropertyWidget getPropertyWidget(com.hp.hpl.jena.rdf.model.Property property)
           
protected  java.util.List<com.hp.hpl.jena.rdf.model.Property> getRelevantPredicates(boolean useDomain)
           
 com.hp.hpl.jena.rdf.model.Resource getSubject()
           
protected  com.hp.hpl.jena.rdf.model.Resource getSuitableComposite(com.hp.hpl.jena.rdf.model.Property predicate)
           
protected  FormSectionPart getWidgetSectionPart(com.hp.hpl.jena.rdf.model.Property predicate)
           
 void graphChangePerformed()
          Notifies the receiver that a global change to the current model has been performed.
 void graphDirty(com.hp.hpl.jena.graph.Graph graph)
          Called when a Graph has been set to dirty.
 void resourceSelected(com.hp.hpl.jena.rdf.model.Resource resource)
          Called when the resource selection has changed.
 void saveState(com.hp.hpl.jena.rdf.model.Resource subject)
           
 void scrollToVisible(IWidget widget)
           
 void setActive(boolean active)
           
 void setLayoutColumnCount(int count)
           
 void setSubject(com.hp.hpl.jena.rdf.model.Resource subject)
           
 void updateAll(boolean reflow)
           
protected  void updateToolBar()
           
 
Methods inherited from class org.topbraidcomposer.editors.pages.AbstractResourceEditorPage
isClosing, setClosing
 
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setFocus, setIndex
 
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.topbraidcomposer.editors.forms.IResourceFormPage
getPartControl
 
Methods inherited from interface org.eclipse.ui.forms.editor.IFormPage
canLeaveThePage, getEditor, getId, getIndex, getManagedForm, getPartControl, initialize, isActive, isEditor, selectReveal, setIndex
 
Methods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, getEditorSite, init
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, createPartControl, 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
 

Constructor Detail

ResourceFormPage

public ResourceFormPage(org.eclipse.ui.forms.editor.FormEditor formEditor,
                        java.lang.String id,
                        java.lang.String title)
Method Detail

addPropertyWidget

public IPropertyWidget addPropertyWidget(com.hp.hpl.jena.rdf.model.Property predicate)
Specified by:
addPropertyWidget in interface IResourceFormPage

addPropertyWidget

public IPropertyWidget addPropertyWidget(com.hp.hpl.jena.rdf.model.Property predicate,
                                         boolean withEmptyValue)
Specified by:
addPropertyWidget in interface ISubjectForm

changeOperationPerformed

public void changeOperationPerformed(ChangeOperation operation,
                                     boolean undone)
Description copied from interface: IChangeEngineListener
Notifies the receiver that changes to one or more Graphs have been performed.

Specified by:
changeOperationPerformed in interface IChangeEngineListener
Parameters:
operation - the ModelOperation that was executed, redone or undone
undone - true if the operation has been undone

createFormContent

protected void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
Overrides:
createFormContent in class AbstractResourceEditorPage

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.forms.editor.FormPage

fillContextMenu

protected void fillContextMenu(org.eclipse.jface.action.MenuManager mm)

getControl

public org.eclipse.swt.widgets.Control getControl()
Specified by:
getControl in interface ISubjectForm

getLayoutColumnCount

public int getLayoutColumnCount()

getPropertyWidget

public IPropertyWidget getPropertyWidget(com.hp.hpl.jena.rdf.model.Property property)
Specified by:
getPropertyWidget in interface ISubjectForm

getRelevantPredicates

protected java.util.List<com.hp.hpl.jena.rdf.model.Property> getRelevantPredicates(boolean useDomain)

getSubject

public com.hp.hpl.jena.rdf.model.Resource getSubject()
Specified by:
getSubject in interface IResourceFormPage
Specified by:
getSubject in interface ISubjectForm

getSuitableComposite

protected com.hp.hpl.jena.rdf.model.Resource getSuitableComposite(com.hp.hpl.jena.rdf.model.Property predicate)

getWidgetSectionPart

protected FormSectionPart getWidgetSectionPart(com.hp.hpl.jena.rdf.model.Property predicate)

graphChangePerformed

public void graphChangePerformed()
Description copied from interface: IChangeEngineListener
Notifies the receiver that a global change to the current model has been performed. This is typically called when new sub-Graphs have been added or removed, allowing the receiver to do a complete refresh.

Specified by:
graphChangePerformed in interface IChangeEngineListener

graphDirty

public void graphDirty(com.hp.hpl.jena.graph.Graph graph)
Description copied from interface: IChangeEngineListener
Called when a Graph has been set to dirty.

Specified by:
graphDirty in interface IChangeEngineListener
Parameters:
graph - the Graph that has changed

resourceSelected

public void resourceSelected(com.hp.hpl.jena.rdf.model.Resource resource)
Description copied from interface: IResourceSelectionListener
Called when the resource selection has changed. This method is called as a side effect by the ResourceSelection class.

Specified by:
resourceSelected in interface IResourceSelectionListener
Parameters:
resource - the new selection

saveState

public void saveState(com.hp.hpl.jena.rdf.model.Resource subject)

scrollToVisible

public void scrollToVisible(IWidget widget)

setActive

public void setActive(boolean active)
Specified by:
setActive in interface org.eclipse.ui.forms.editor.IFormPage
Overrides:
setActive in class org.eclipse.ui.forms.editor.FormPage

setLayoutColumnCount

public void setLayoutColumnCount(int count)

setSubject

public void setSubject(com.hp.hpl.jena.rdf.model.Resource subject)

updateAll

public void updateAll(boolean reflow)
Specified by:
updateAll in interface IResourceFormPage

updateToolBar

protected void updateToolBar()