|
|
|
@ -204,7 +204,7 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
|
|
|
|
|
button.setBorderPainted(false); |
|
|
|
|
button.setContentAreaFilled(false); |
|
|
|
|
button.set4ToolbarButton(); |
|
|
|
|
button.setToolTipText(Toolkit.i18nText("Fine_Design_Template_Lock_Status")); |
|
|
|
|
button.setToolTipText(Toolkit.i18nText("Fine_Design_Template_Unlock_Tip")); |
|
|
|
|
button.addActionListener(new ActionListener() { |
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
@ -599,7 +599,8 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
|
|
|
|
|
boolean visible = fileNode != null |
|
|
|
|
&& StringUtils.isNotEmpty(fileNode.getLock()) |
|
|
|
|
&& WorkContext.getCurrent().isRoot() |
|
|
|
|
&& WorkContext.getCurrent().get(LockInfoOperator.class).isUnLockable(); |
|
|
|
|
&& WorkContext.getCurrent().get(LockInfoOperator.class).isUnLockable() |
|
|
|
|
&& !WorkContext.getCurrent().get(LockInfoOperator.class).isTplUnLocked(fileNode.getEnvPath()); |
|
|
|
|
rightToolBar.setVisible(visible); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|