public void run() { _sqlEntry.getTextComponent().requestFocus(); } });
public void run() { _sqlEntry.getTextComponent().requestFocus(); } });
private void onToolsPopupActionSelected(CompletionInfo completion) { final ToolsPopupCompletionInfo toExecute = (ToolsPopupCompletionInfo) completion; toExecute.getAction().actionPerformed(new ActionEvent(_sqlEntryPanel.getTextComponent(), _session.getIdentifier().hashCode(), "ToolsPopupSelected")); }
public void filePrint() { if (_panel == null) { throw new IllegalStateException("_panel is null"); } ISQLEntryPanel panel = _panel.getSQLEntryPanel(); if (panel == null) { throw new IllegalStateException("_panel.getSQLEntryPanel() is null"); } PrintUtilities.printComponent(panel.getTextComponent()); }
public void filePrint() { if (_panel == null) { throw new IllegalStateException("_panel is null"); } ISQLEntryPanel panel = _panel.getSQLEntryPanel(); if (panel == null) { throw new IllegalStateException("_panel.getSQLEntryPanel() is null"); } PrintUtilities.printComponent(panel.getTextComponent()); }
public static Frame getOwningFrame(ISQLPanelAPI sqlPanelAPI) { return GUIUtils.getOwningFrame(sqlPanelAPI.getSQLEntryPanel().getTextComponent()); } }
private void onToolsPopupActionSelected(CompletionInfo completion) { final ToolsPopupCompletionInfo toExecute = (ToolsPopupCompletionInfo) completion; toExecute.getAction().actionPerformed(new ActionEvent(_sqlEntryPanel.getTextComponent(), _session.getIdentifier().hashCode(), "ToolsPopupSelected")); }
public static Frame getOwningFrame(ISQLPanelAPI sqlPanelAPI) { return GUIUtils.getOwningFrame(sqlPanelAPI.getSQLEntryPanel().getTextComponent()); } }
public void registerKeyboardAction(Action action, KeyStroke keyStroke) { JComponent comp = getEntryPanel().getTextComponent(); comp.registerKeyboardAction(action, keyStroke, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); } }
private void doActionPerformed(ISQLEntryPanel sqlEntryPanel, ActionEvent evt) { if(sqlEntryPanel instanceof RSyntaxSQLEntryPanel) { SquirrelRSyntaxTextArea rsep = (SquirrelRSyntaxTextArea) sqlEntryPanel.getTextComponent(); rsep.repeatLastFind(evt); } else { String msg = s_stringMgr.getString("syntax.repeatLastfindOnlyOnRecommendedEditors"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); } }
private void doActionPerformed(ISQLEntryPanel sqlEntryPanel, ActionEvent evt) { if(sqlEntryPanel instanceof RSyntaxSQLEntryPanel) { SquirrelRSyntaxTextArea rsep = (SquirrelRSyntaxTextArea) sqlEntryPanel.getTextComponent(); rsep.showFindDialog(evt); } else { String msg = s_stringMgr.getString("syntax.findOnlyOnRecommendedEditors"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); } }
private void doActionPerformed(ISQLEntryPanel sqlEntryPanel, ActionEvent evt) { if(sqlEntryPanel instanceof RSyntaxSQLEntryPanel) { SquirrelRSyntaxTextArea rsep = (SquirrelRSyntaxTextArea) sqlEntryPanel.getTextComponent(); rsep.unmarkAll(); } else { String msg = s_stringMgr.getString("syntax.unmarkOnlyOnRecommendedEditors"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); } }
private void doActionPerformed(ISQLEntryPanel sqlEntryPanel, ActionEvent evt) { if(sqlEntryPanel instanceof RSyntaxSQLEntryPanel) { SquirrelRSyntaxTextArea rsep = (SquirrelRSyntaxTextArea) sqlEntryPanel.getTextComponent(); rsep.findSelected(evt); } else { String msg = s_stringMgr.getString("syntax.findSelectedOnlyOnRecommendedEditors"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); } }
public void run() { _entryPanelManager.getEntryPanel().getTextComponent().scrollRectToVisible(new Rectangle(0,0)); _entryPanelManager.getEntryPanel().setCaretPosition(0); } };
private void doActionPerformed(ISQLEntryPanel sqlEntryPanel, ActionEvent evt) { if(sqlEntryPanel instanceof RSyntaxSQLEntryPanel) { SquirrelRSyntaxTextArea rsep = (SquirrelRSyntaxTextArea) sqlEntryPanel.getTextComponent(); rsep.markSelected(evt); } else { String msg = s_stringMgr.getString("syntax.markSelectedOnlyOnRecommendedEditors"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); } }
private void doActionPerformed(ISQLEntryPanel sqlEntryPanel, ActionEvent evt) { if(sqlEntryPanel instanceof RSyntaxSQLEntryPanel) { SquirrelRSyntaxTextArea rsep = (SquirrelRSyntaxTextArea) sqlEntryPanel.getTextComponent(); rsep.showGoToLineDialog(evt); } else { String msg = s_stringMgr.getString("syntax.gotolineOnlyOnRecommendedEditors"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); } }
private void doActionPerformed(ISQLEntryPanel sqlEntryPanel, ActionEvent evt) { if(sqlEntryPanel instanceof RSyntaxSQLEntryPanel) { SquirrelRSyntaxTextArea rsep = (SquirrelRSyntaxTextArea) sqlEntryPanel.getTextComponent(); rsep.showReplaceDialog(evt); } else { String msg = s_stringMgr.getString("syntax.replaceOnlyOnRecommendedEditors"); JOptionPane.showMessageDialog(_session.getApplication().getMainFrame(), msg); } }
public static String escapeDate(ISQLEntryPanel entryPanel, ISession session) { // i18n[EditExtrasAccessor.editextrasPluginNeededForEscapeDate=Escape date is only available with the Edit Extras Plugin.\nGet the plugin from www.squirrelsql.org. It's free.] EditExtrasExternalService si = getService(session, s_stringMgr.getString("EditExtrasAccessor.editextrasPluginNeededForEscapeDate")); if(null != si) { return si.getDateEscape(GUIUtils.getOwningFrame(entryPanel.getTextComponent())); } return null; } }
public RecentFilesController(ISQLPanelAPI panel) { Frame parent = GUIUtils.getOwningFrame(panel.getSQLEntryPanel().getTextComponent()); init(panel.getSession().getApplication(), parent, panel.getSession().getAlias(), false); }
public RecentFilesController(ISQLPanelAPI panel) { Frame parent = GUIUtils.getOwningFrame(panel.getSQLEntryPanel().getTextComponent()); init(panel.getSession().getApplication(), parent, panel.getSession().getAlias(), false); }