|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.result.ui.view.ResultsViewControl
public class ResultsViewControl
This is the control for the view showing the result.
Field Summary |
---|
Fields inherited from interface org.eclipse.help.IContextProvider |
---|
NONE, SELECTION |
Constructor Summary | |
---|---|
ResultsViewControl()
|
|
ResultsViewControl(ResultsView resultsView)
|
Method Summary | |
---|---|
void |
addResultHistoryFilter(org.eclipse.jface.viewers.ViewerFilter filter)
|
void |
allResultInstancesRemoved()
When all instances are removed, we perform the following steps: Clears the status for the SQL Results View Re-search the index according to current query expression Refreshes the history results table |
void |
clearHistory()
|
void |
createActions()
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
dispose()
|
org.eclipse.help.IContext |
getContext(java.lang.Object target)
|
int |
getContextChangeMask()
|
org.eclipse.swt.widgets.Composite |
getControl()
|
IResultInstance |
getCurrentInstance()
|
org.eclipse.jface.action.Action |
getHLayoutAction()
|
org.eclipse.jface.action.IAction |
getOpenFilterDialogAction()
|
org.eclipse.jface.action.IAction |
getPreferenceAction()
|
org.eclipse.jface.action.IAction[] |
getRegisteredActions()
|
RemoveAllVisibleFinishedResultAction |
getRemoveAllVisibleFinishedResultAction()
|
org.eclipse.jface.action.IAction |
getRemoveResultAction()
|
ResultHistorySection |
getResultHistorySection()
|
ResultSection |
getResultSection()
|
java.lang.String |
getSearchExpression(java.lang.Object target)
|
org.eclipse.jface.action.IAction |
getSingleTabDisplayAction()
|
org.eclipse.jface.action.IAction |
getTerminateAction()
|
org.eclipse.jface.action.IAction |
getTextModeDisplayAction()
|
boolean |
getUsePreferences()
Gets the ResultsViewControl's setting about whether to use preference settings or defaults. |
ResultsView |
getView()
|
org.eclipse.jface.action.Action |
getVLayoutAction()
|
void |
init()
|
void |
init(org.eclipse.ui.IViewSite site,
org.eclipse.ui.IMemento memento)
|
void |
parametersShow(IResultInstance instance,
java.util.List params)
When CURRENT result instance need to show parameters, we perform the following steps: Invokes the onParametersShown method to show the parameters
|
void |
profileAdded(IConnectionProfile profile)
Refresh the result history when profile is created |
void |
profileChanged(IConnectionProfile profile)
Refresh the result history when profile is changed |
void |
profileChanged(IConnectionProfile profile,
java.lang.String oldName,
java.lang.String oldDesc,
java.lang.Boolean oldAutoConnect)
Refresh the result history when profile is changed |
void |
profileDeleted(IConnectionProfile profile)
Refresh the result history when profile is deleted |
void |
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
|
void |
reDisplay(IResultInstance instance)
Re-displays the selected instance since the options is modified |
void |
refreshResults()
|
void |
resultInstanceAppended(IResultInstance instance,
ResultItem result,
int index)
When an item is appended to the CURRENT result instance, we perform the following steps: Invokes the onNewItemAppended method to show the new item
|
void |
resultInstanceCreated(IResultInstance result)
When a new result instance is created, we perform the following steps: Clears the status for the SQL Results View Refreshes the history results table to display the newly-created result Selects this newly-created result (make it the current result, this will invoke the showDetail method to show this result)
|
void |
resultInstanceRemoved(IResultInstance result)
When an instance is removed, we perform the following steps: Clears the status for the SQL Results View Re-search the index according to current query expression Refreshes the history results table |
void |
resultInstanceReset(IResultInstance instance)
When an instance is reseted, we perform the following steps: Re-search the index according to current query expression Refreshes the history results table to display new status If it is the CURRENT instance, invokes onInstanceReseted method
|
void |
resultInstancesRemoved(IResultInstance[] results)
When an array of instances are removed, we perform the following steps: Clears the status for the SQL Results View Re-search the index according to current query expression Refreshes the history results table |
void |
resultInstanceStatusUpdated(IResultInstance instance)
When a result instance's status is changed, we perform the following steps: If the status is changed to FINISH status, we update the actions accordingly Refreshes the history results table to display new status for this result If it is the CURRENT instance, invokes onInstanceFinished
|
void |
saveState(org.eclipse.ui.IMemento memento)
|
void |
setCurrentInstance(IResultInstance instance)
|
void |
setFocus()
|
void |
setResultSection(ResultSection section)
|
void |
setUsePreferences(boolean usePreferences)
Tells the ResultsViewControl whether to use preference settings or preference defaults. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResultsViewControl()
public ResultsViewControl(ResultsView resultsView)
Method Detail |
---|
public org.eclipse.help.IContext getContext(java.lang.Object target)
getContext
in interface org.eclipse.help.IContextProvider
public int getContextChangeMask()
getContextChangeMask
in interface org.eclipse.help.IContextProvider
public java.lang.String getSearchExpression(java.lang.Object target)
getSearchExpression
in interface org.eclipse.help.IContextProvider
public void init() throws org.eclipse.ui.PartInitException
org.eclipse.ui.PartInitException
public void init(org.eclipse.ui.IViewSite site, org.eclipse.ui.IMemento memento) throws org.eclipse.ui.PartInitException
org.eclipse.ui.PartInitException
public void saveState(org.eclipse.ui.IMemento memento)
public org.eclipse.swt.widgets.Composite getControl()
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
public void createActions()
public void setFocus()
public void dispose()
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
propertyChange
in interface org.eclipse.jface.util.IPropertyChangeListener
public void reDisplay(IResultInstance instance)
instance
- the result instancepublic ResultSection getResultSection()
public void setResultSection(ResultSection section)
public ResultHistorySection getResultHistorySection()
public IResultInstance getCurrentInstance()
public org.eclipse.jface.action.IAction[] getRegisteredActions()
public void refreshResults()
public void setCurrentInstance(IResultInstance instance)
public void profileChanged(IConnectionProfile profile, java.lang.String oldName, java.lang.String oldDesc, java.lang.Boolean oldAutoConnect)
profileChanged
in interface IProfileListener1
public void profileAdded(IConnectionProfile profile)
profileAdded
in interface IProfileListener
public void profileDeleted(IConnectionProfile profile)
profileDeleted
in interface IProfileListener
public void profileChanged(IConnectionProfile profile)
profileChanged
in interface IProfileListener
public RemoveAllVisibleFinishedResultAction getRemoveAllVisibleFinishedResultAction()
public void clearHistory()
public ResultsView getView()
public void addResultHistoryFilter(org.eclipse.jface.viewers.ViewerFilter filter)
public boolean getUsePreferences()
public void setUsePreferences(boolean usePreferences)
usePreferences
- public org.eclipse.jface.action.IAction getTerminateAction()
public org.eclipse.jface.action.IAction getRemoveResultAction()
public org.eclipse.jface.action.IAction getSingleTabDisplayAction()
public org.eclipse.jface.action.IAction getTextModeDisplayAction()
public org.eclipse.jface.action.Action getVLayoutAction()
public org.eclipse.jface.action.Action getHLayoutAction()
public org.eclipse.jface.action.IAction getOpenFilterDialogAction()
public org.eclipse.jface.action.IAction getPreferenceAction()
public void resultInstanceCreated(IResultInstance result)
showDetail
method to show this result)
resultInstanceCreated
in interface IResultManagerListener
result
- the result instancepublic void resultInstanceRemoved(IResultInstance result)
resultInstanceRemoved
in interface IResultManagerListener
result
- the result instancepublic void resultInstancesRemoved(IResultInstance[] results)
resultInstancesRemoved
in interface IResultManagerListener
results
- the result instancespublic void allResultInstancesRemoved()
allResultInstancesRemoved
in interface IResultManagerListener
public void resultInstanceAppended(IResultInstance instance, ResultItem result, int index)
onNewItemAppended
method to show the new item
resultInstanceAppended
in interface IResultManagerListener
instance
- the result instanceresult
- the result itemindex
- the index of the result itempublic void resultInstanceStatusUpdated(IResultInstance instance)
onInstanceFinished
resultInstanceStatusUpdated
in interface IResultManagerListener
instance
- the result instancepublic void resultInstanceReset(IResultInstance instance)
onInstanceReseted
method
resultInstanceReset
in interface IResultManagerListener
instance
- the result instancepublic void parametersShow(IResultInstance instance, java.util.List params)
onParametersShown
method to show the parameters
parametersShow
in interface IResultManagerListener
instance
- the result instanceparams
- the Parameter
instances listParameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |