/** * @see net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs.BaseSourceTab#createSourcePanel() */ @Override protected BaseSourcePanel createSourcePanel() { return new FormattedSourcePanel(getSession()); } }
/** * Create a instance of {@link BaseSourcePanel}. * Per default, a {@link DefaultSourcePanel} is used. * Subclasses can use this to override the default behavior provided by the DefaultSourcePanel, with a * subclass of BaseSourcePanel. * @return The source panel to use. */ protected BaseSourcePanel createSourcePanel() { /* * This callback method replaces the previous use of setSourcePanel, because since we use syntax highlightning, we need a session. * So we need a callback for "lazy" initialization of the source pane. */ return new DefaultSourcePanel(getSession()); }
/** * Constructor * * @param db2Sql * Object that contains methods for retrieving SQL that works for each DB2 platform */ public ViewSourceTab(String hint, String stmtSep, DB2Sql db2Sql) { super(hint); super.setCompressWhitespace(true); super.setupFormatter(stmtSep, null); this.db2Sql = db2Sql; }
/** * Constructor * * @param hint * what the user sees on mouse-over tool-tip */ public MysqlProcedureSourceTab(String hint) { super(hint); super.setCompressWhitespace(false); }
/** * Rebuild the tab. This usually means that some kind of configuration * data has changed (I.E. the output type has changed from text to table). */ public void rebuild() { super.rebuild(); _comp = null; }
protected IDataSet createDataSet() throws DataSetException { return new JavabeanDataSet(getDatabaseObjectInfo()); } }
/** * @see BaseObjectPanelTab#clear() */ public void clear() { ((DataSetScrollingPanel)getComponent()).clear(); }
public MysqlViewSourceTab(String hint, String stmtSep) { super(hint); super.setupFormatter(stmtSep, null); super.setCompressWhitespace(true); }
/** * @see net.sourceforge.squirrel_sql.client.session.mainpanel.objecttree.tabs.BaseSourceTab#createSourcePanel() */ @Override protected BaseSourcePanel createSourcePanel() { return new FormattedSourcePanel(getSession()); } }
/** * Create a instance of {@link BaseSourcePanel}. * Per default, a {@link DefaultSourcePanel} is used. * Subclasses can use this to override the default behavior provided by the DefaultSourcePanel, with a * subclass of BaseSourcePanel. * @return The source panel to use. */ protected BaseSourcePanel createSourcePanel() { /* * This callback method replaces the previous use of setSourcePanel, because since we use syntax highlightning, we need a session. * So we need a callback for "lazy" initialization of the source pane. */ return new DefaultSourcePanel(getSession()); }
/** * Rebuild the tab. This usually means that some kind of configuration * data has changed (I.E. the output type has changed from text to table). */ public void rebuild() { super.rebuild(); _comp = null; }
protected IDataSet createDataSet() throws DataSetException { return new JavabeanDataSet(getDatabaseObjectInfo()); } }
/** * @see BaseObjectPanelTab#clear() */ public void clear() { ((DataSetScrollingPanel)getComponent()).clear(); }
public MysqlTriggerSourceTab(String hint, String stmtSep) { super(hint); super.setupFormatter(stmtSep, null); super.setCompressWhitespace(true); }
/** * Constructor * * @param hint * what the user sees on mouse-over tool-tip * @param stmtSep * the string to use to separate SQL statements */ public TriggerSourceTab(String hint, String stmtSep) { super(hint); super.setCompressWhitespace(true); super.setupFormatter(stmtSep, null); }
/** * Constructor * * @param hint * what the user sees on mouse-over tool-tip * @param db2Sql * Object that contains methods for retrieving SQL that works for each DB2 platform */ public ProcedureSourceTab(String hint, String stmtSep, DB2Sql db2Sql) { super(hint); super.setCompressWhitespace(false); super.setupFormatter(stmtSep, null); this.db2Sql = db2Sql; }
/** * Constructor * * @param hint * what the user sees on mouse-over tool-tip * @param stmtSep * the string to use to separate SQL statements * @param db2Sql * Object that contains methods for retrieving SQL that works for each DB2 platform */ public TableSourceTab(String hint, String stmtSep, DB2Sql db2Sql) { super(hint); super.setCompressWhitespace(true); super.setupFormatter(stmtSep, null); this.db2Sql = db2Sql; }
/** * Constructor * * @param hint * what the user sees on mouse-over tool-tip * @param stmtSep * the string to use to separate SQL statements */ public ViewSourceTab(String hint, String stmtSep) { super(hint); super.setCompressWhitespace(false); super.setupFormatter(stmtSep, null); }
/** * Constructor * * @param hint * what the user sees on mouse-over tool-tip * @param stmtSep * the string to use to separate SQL statements * @param db2Sql * Object that contains methods for retrieving SQL that works for each DB2 platform */ public UDFSourceTab(String hint, String stmtSep, DB2Sql db2Sql ) { super(hint); super.setCompressWhitespace(true); super.setupFormatter(stmtSep, null); this.db2Sql = db2Sql; }
/** * Constructor * * @param hint * what the user sees on mouse-over tool-tip * @param stmtSep * the character that separates SQL statements * @param db2Sql * Object that contains methods for retrieving SQL that works for each DB2 platform */ public TriggerSourceTab(String hint, String stmtSep, DB2Sql db2Sql) { super(hint); super.setCompressWhitespace(true); super.setupFormatter(stmtSep, null); this.db2Sql = db2Sql; }