|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.actions.server; |
|
|
|
package com.fr.design.actions.server; |
|
|
|
|
|
|
|
|
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
import com.fine.theme.icon.LazyIcon; |
|
|
|
|
|
|
|
import com.fine.theme.utils.FineClientProperties; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
import com.fr.design.data.datapane.connect.ConnectionShowPane; |
|
|
|
import com.fr.design.data.datapane.connect.ConnectionShowPane; |
|
|
@ -115,6 +116,7 @@ public class ConnectionListAction extends UpdateAction { |
|
|
|
Object object = this.getValue(UILockMenuItem.class.getName()); |
|
|
|
Object object = this.getValue(UILockMenuItem.class.getName()); |
|
|
|
if (object == null && !(object instanceof UILockMenuItem)) { |
|
|
|
if (object == null && !(object instanceof UILockMenuItem)) { |
|
|
|
UILockMenuItem menuItem = new UILockMenuItem(this, EditLockUtils.CONNECTION_LOCKED_TOOLTIPS, null, LockItem.CONNECTION); |
|
|
|
UILockMenuItem menuItem = new UILockMenuItem(this, EditLockUtils.CONNECTION_LOCKED_TOOLTIPS, null, LockItem.CONNECTION); |
|
|
|
|
|
|
|
menuItem.putClientProperty(FineClientProperties.MENU_ITEM_TYPE, null); |
|
|
|
// 设置名字用作单元测
|
|
|
|
// 设置名字用作单元测
|
|
|
|
menuItem.setName(getName()); |
|
|
|
menuItem.setName(getName()); |
|
|
|
setPressedIcon4Button(menuItem); |
|
|
|
setPressedIcon4Button(menuItem); |
|
|
|