|
|
|
@ -1,8 +1,5 @@
|
|
|
|
|
package com.fr.design.data.datapane; |
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
|
import com.fine.theme.light.ui.FineRoundBorder; |
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.fr.base.TableData; |
|
|
|
|
import com.fr.data.core.DataCoreUtils; |
|
|
|
|
import com.fr.data.core.db.DBUtils; |
|
|
|
@ -14,7 +11,6 @@ import com.fr.data.impl.DBTableData;
|
|
|
|
|
import com.fr.data.operator.DataOperator; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.border.FineBorderFactory; |
|
|
|
|
import com.fr.design.data.DesignTableDataManager; |
|
|
|
|
import com.fr.design.data.datapane.RefreshLabel.Refreshable; |
|
|
|
|
import com.fr.design.data.datapane.preview.PreviewLabel; |
|
|
|
@ -43,7 +39,6 @@ import com.fr.log.FineLoggerFactory;
|
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
import com.fr.workspace.server.connection.DBConnectAuth; |
|
|
|
|
import groovy.swing.factory.BoxLayoutFactory; |
|
|
|
|
|
|
|
|
|
import javax.swing.JList; |
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
@ -59,7 +54,9 @@ import javax.swing.tree.DefaultTreeCellRenderer;
|
|
|
|
|
import javax.swing.tree.DefaultTreeModel; |
|
|
|
|
import javax.swing.tree.TreeCellRenderer; |
|
|
|
|
import javax.swing.tree.TreePath; |
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Dimension; |
|
|
|
|
import java.awt.event.FocusAdapter; |
|
|
|
|
import java.awt.event.FocusEvent; |
|
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
@ -71,10 +68,6 @@ import java.util.List;
|
|
|
|
|
import java.util.Set; |
|
|
|
|
import java.util.concurrent.CancellationException; |
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.scale; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author zhou |
|
|
|
|
* @since 2012-7-11下午4:49:39 |
|
|
|
@ -246,15 +239,7 @@ public class ChoosePane extends BasicBeanPane<DataBaseItems> implements Refresha
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
JPanel northDSPane = TableLayoutHelper.createTableLayoutPane(coms, new double[]{p}, new double[]{p, f, p, f, p, f, COLUMN_SIZE, COLUMN_SIZE}); |
|
|
|
|
//JPanel northDSPane = new JPanel(new BorderLayout());
|
|
|
|
|
|
|
|
|
|
/*northDSPane.add( |
|
|
|
|
row(10, |
|
|
|
|
row(5, cell(l1), cell(dsNameComboBox)), |
|
|
|
|
row(5, cell(l2), cell(schemaBox)), |
|
|
|
|
row(5, cell(l3), cell(tableNameComboBox)), |
|
|
|
|
row(5, cell(new RefreshLabel(this)), cell(previewLabel))) |
|
|
|
|
.getComponent());*/ |
|
|
|
|
|
|
|
|
|
this.add(northDSPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|