|
|
|
@ -599,19 +599,24 @@ public class DesignerFrameFileDealerPane extends JPanel implements FileToolbarSt
|
|
|
|
|
*/ |
|
|
|
|
public void refreshRightToolBarByContentPaneType() { |
|
|
|
|
if (rightToolBar != null) { |
|
|
|
|
if (StringUtils.equals(TemplateTreeSearchToolbarPane.CONTENT_PANE_TYPE, TemplateTreeSearchToolbarPane.SEARCH_PANE)) { |
|
|
|
|
if (StringUtils.equals(TemplateTreeSearchToolbarPane.contentPaneType, TemplateTreeSearchToolbarPane.SEARCH_PANE)) { |
|
|
|
|
rightToolBar.setVisible(false); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void refreshRightToolBarBy(FileNode fileNode) { |
|
|
|
|
refreshRightToolBarByNode(fileNode); |
|
|
|
|
refreshRightToolBarByContentPaneType(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据当前选中节点判断是否锁定状态 |
|
|
|
|
* |
|
|
|
|
* @param fileNode 选中文件节点 |
|
|
|
|
*/ |
|
|
|
|
public void refreshRightToolBarByNode(FileNode fileNode) { |
|
|
|
|
if (rightToolBar != null) { |
|
|
|
|
if (StringUtils.equals(TemplateTreeSearchToolbarPane.CONTENT_PANE_TYPE, TemplateTreeSearchToolbarPane.SEARCH_PANE)) { |
|
|
|
|
rightToolBar.setVisible(false); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
boolean locked = fileNode != null |
|
|
|
|
&& StringUtils.isNotEmpty(fileNode.getLock()) |
|
|
|
|
&& !ComparatorUtils.equals(fileNode.getLock(), fileNode.getUserID()); |
|
|
|
|