Browse Source
Merge in DESIGN/design from ~KERRY/design_10.0:feature/x to feature/x * commit '9f9972eeb49d2c40486d032e6466bdc012d2dfc7': KERNEL-10626 直接在2.0上支持fvs多开feature/x
kerry
3 years ago
4 changed files with 72 additions and 7 deletions
@ -0,0 +1,21 @@
|
||||
package com.fr.design.mainframe; |
||||
|
||||
import com.fr.design.base.mode.DesignModeContext; |
||||
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus; |
||||
|
||||
public class DefaultToolKitConfig implements ToolKitConfigStrategy { |
||||
@Override |
||||
public boolean hasTemplateTabPane(ToolBarMenuDockPlus plus) { |
||||
return !DesignModeContext.isDuchampMode(); |
||||
} |
||||
|
||||
@Override |
||||
public boolean hasCombineUp(ToolBarMenuDockPlus plus) { |
||||
return plus.hasToolBarPane(); |
||||
} |
||||
|
||||
@Override |
||||
public boolean hasToolBarPane(ToolBarMenuDockPlus plus) { |
||||
return plus.hasToolBarPane(); |
||||
} |
||||
} |
@ -0,0 +1,27 @@
|
||||
package com.fr.design.mainframe; |
||||
|
||||
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus; |
||||
|
||||
public interface ToolKitConfigStrategy { |
||||
|
||||
/** |
||||
* 展示tabpane |
||||
* @param plus |
||||
* @return |
||||
*/ |
||||
boolean hasTemplateTabPane(ToolBarMenuDockPlus plus); |
||||
|
||||
/** |
||||
* 展示模板操作按钮(复制、粘贴、保存等) |
||||
* @param plus |
||||
* @return |
||||
*/ |
||||
boolean hasCombineUp(ToolBarMenuDockPlus plus); |
||||
|
||||
/** |
||||
* 展示工具栏pane |
||||
* @param plus |
||||
* @return |
||||
*/ |
||||
boolean hasToolBarPane(ToolBarMenuDockPlus plus); |
||||
} |
Loading…
Reference in new issue