|
|
|
@ -2,6 +2,7 @@ package com.fr.design.data.datapane.connect;
|
|
|
|
|
|
|
|
|
|
import com.fanruan.config.impl.data.ConnectionConfigProviderFactory; |
|
|
|
|
import com.fanruan.config.impl.data.ConnectionConfigWriterFactory; |
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.fr.config.remote.RemoteConfigEvent; |
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
@ -16,6 +17,7 @@ import com.fr.design.fun.ConnectionProvider;
|
|
|
|
|
import com.fr.design.gui.controlpane.JListControlPane; |
|
|
|
|
import com.fr.design.gui.controlpane.NameObjectCreator; |
|
|
|
|
import com.fr.design.gui.controlpane.NameableCreator; |
|
|
|
|
import com.fr.design.gui.controlpane.ShortCut4JControlPane; |
|
|
|
|
import com.fr.design.gui.ilist.ListModelElement; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.event.EventDispatcher; |
|
|
|
@ -95,6 +97,21 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh
|
|
|
|
|
getSupportedTypesWorker.execute(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected ShortCut4JControlPane[] createShortcuts() { |
|
|
|
|
return new ShortCut4JControlPane[]{ |
|
|
|
|
shortCutFactory.addItemShortCut(), |
|
|
|
|
shortCutFactory.removeItemShortCut(), |
|
|
|
|
shortCutFactory.copyItemShortCut(), |
|
|
|
|
shortCutFactory.sortItemShortCut(), |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected int getLeftPreferredSize() { |
|
|
|
|
return FineUIScale.scale(180); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getEmptyNameTip() { |
|
|
|
|
return Toolkit.i18nText("Fine-Design_Basic_Connection_Empty_Name"); |
|
|
|
|