|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.result.ui.ResultsViewUIAccessor
public class ResultsViewUIAccessor
This class is mainly used to control the UI related behaviour, and is mainly designed for WTP Output view's current consumers to lessen the refactoring effort.
Field Summary | |
---|---|
static int |
MESSAGE_TAB
|
static int |
PARAM_TAB
|
static int |
RESULT_TAB
|
static int |
STATUS_TAB
|
Method Summary | |
---|---|
static ResultsViewUIAccessor |
getInstance()
|
int |
getMaxLengthToShowEllipses()
Gets the maximum length to display ellipsis[...] button |
int |
getRowCount(OperationCommand cmd)
Returns the row count of current displaying result set of the given result instance, if the current tab is not ressult set or it is in single tab display mode, we will simply return -1. |
void |
showTab(OperationCommand cmd,
int tabType)
Sets the focus to the given tab if the current result instance is the given instance. |
void |
showTab(OperationCommand cmd,
int tabType,
int tabNum)
Sets focus to the given message/result tab with the given tab number. |
void |
showTab(OperationCommand cmd,
IResultSetObject result)
Sets the focus to the given result set if the current result instance is the given instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATUS_TAB
public static final int PARAM_TAB
public static final int MESSAGE_TAB
public static final int RESULT_TAB
Method Detail |
---|
public static ResultsViewUIAccessor getInstance()
public void showTab(OperationCommand cmd, int tabType)
cmd
- the operation request, should not be nulltabType
- the tab typeOperationCommand#STATUS_TAB
,
OperationCommand#PARAM_TAB
,
OperationCommand#MESSAGE_TAB
,
OperationCommand#RESULT_TAB
public void showTab(OperationCommand cmd, int tabType, int tabNum)
cmd
- the operation request, should not be nulltabType
- the tab type, can be the one of the following:tabNum
- RESULT_TAB
,
MESSAGE_TAB
public void showTab(OperationCommand cmd, IResultSetObject result)
cmd
- the operation request, should not be nullresult
- the result set objectpublic int getRowCount(OperationCommand cmd)
cmd
- the operation request, should not be null
public int getMaxLengthToShowEllipses()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |