diff --git a/src/main/gui/net/sf/jailer/ui/databrowser/SQLBrowserContentPane.form b/src/main/gui/net/sf/jailer/ui/databrowser/SQLBrowserContentPane.form deleted file mode 100644 index dc0bf058b..000000000 --- a/src/main/gui/net/sf/jailer/ui/databrowser/SQLBrowserContentPane.form +++ /dev/null @@ -1,100 +0,0 @@ - - -
diff --git a/src/main/gui/net/sf/jailer/ui/databrowser/SQLBrowserContentPane.java b/src/main/gui/net/sf/jailer/ui/databrowser/SQLBrowserContentPane.java deleted file mode 100644 index 9241d8b8f..000000000 --- a/src/main/gui/net/sf/jailer/ui/databrowser/SQLBrowserContentPane.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2007 - 2018 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package net.sf.jailer.ui.databrowser; - -import java.awt.GridBagConstraints; -import java.sql.SQLException; - -import javax.swing.JInternalFrame; -import javax.swing.JScrollPane; - -import org.fife.ui.autocomplete.CompletionProvider; -import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; - -import net.sf.jailer.database.Session; -import net.sf.jailer.datamodel.DataModel; -import net.sf.jailer.ui.databrowser.metadata.MetaDataSource; -import net.sf.jailer.ui.databrowser.sqlconsole.MetaDataBasedSQLCompletionProvider; -import net.sf.jailer.ui.syntaxtextarea.DataModelBasedSQLCompletionProvider; -import net.sf.jailer.ui.syntaxtextarea.RSyntaxTextAreaWithSQLSyntaxStyle; -import net.sf.jailer.ui.syntaxtextarea.SQLAutoCompletion; - -/** - * Content UI of a row browser frame in SQL mode (as {@link JInternalFrame}s). Contains a - * table for rendering rows. - * - * @author Ralf Wisser - */ -@SuppressWarnings("serial") -public class SQLBrowserContentPane extends javax.swing.JPanel { - - /** Creates new form SQLBrowserContentPane */ - public SQLBrowserContentPane(DataModel dataModel, Session session, MetaDataSource metaDataSource) { - initComponents(); - this.sqlEditorPane = new RSyntaxTextAreaWithSQLSyntaxStyle(false, false) { - @Override - protected void runBlock() { - super.runBlock(); - reloadButton.doClick(); - } - }; - JScrollPane jScrollPane1 = new JScrollPane(); - jScrollPane1.setViewportView(sqlEditorPane); - - try { - CompletionProvider provider = null; - if (metaDataSource != null) { - provider = new MetaDataBasedSQLCompletionProvider(session, metaDataSource); - } else if (dataModel != null) { - provider = new DataModelBasedSQLCompletionProvider(session, dataModel); - } - - if (provider != null) { - new SQLAutoCompletion(provider, sqlEditorPane); - } - } catch (SQLException e1) { - } - - GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints(); - gridBagConstraints.gridx = 1; - gridBagConstraints.gridy = 1; - gridBagConstraints.gridheight = 6; - gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; - gridBagConstraints.weightx = 1.0; - gridBagConstraints.weighty = 1.0; - editorPanel.add(jScrollPane1, gridBagConstraints); - } - - /** This method is called from within the constructor to - * initialize the form. - * WARNING: Do NOT modify this code. The content of this method is - * always regenerated by the Form Editor. - */ - //