public int[] getBoundsOfSQLToBeExecuted() { int[] bounds = new int[2]; bounds[0] = getSelectionStart(); bounds[1] = getSelectionEnd(); if(bounds[0] == bounds[1]) { bounds = getSqlBoundsBySeparatorRule(getCaretPosition()); } return bounds; }
public void selectCurrentSql() { int[] boundsOfSQLToBeExecuted = getSqlBoundsBySeparatorRule(getCaretPosition()); if(boundsOfSQLToBeExecuted[0] != boundsOfSQLToBeExecuted[1]) { setSelectionStart(boundsOfSQLToBeExecuted[0]); setSelectionEnd(boundsOfSQLToBeExecuted[1]); } }
public int[] getBoundsOfSQLToBeExecuted() { int[] bounds = new int[2]; bounds[0] = getSelectionStart(); bounds[1] = getSelectionEnd(); if(bounds[0] == bounds[1]) { bounds = getSqlBoundsBySeparatorRule(getCaretPosition()); } return bounds; }
public void selectCurrentSql() { int[] boundsOfSQLToBeExecuted = getSqlBoundsBySeparatorRule(getCaretPosition()); if(boundsOfSQLToBeExecuted[0] != boundsOfSQLToBeExecuted[1]) { setSelectionStart(boundsOfSQLToBeExecuted[0]); setSelectionEnd(boundsOfSQLToBeExecuted[1]); } }