You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
834 B
29 lines
834 B
package com.fr.design.mainframe; |
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
import com.fr.design.mainframe.toolbar.ToolBarMenuDockPlus; |
|
import javax.swing.JPanel; |
|
|
|
|
|
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(); |
|
} |
|
|
|
@Override |
|
public JPanel customNorthPane(JPanel toolBarPane, ToolBarMenuDockPlus plus) { |
|
CenterRegionContainerPane.getInstance().resetCenterRegionContainerPane(); |
|
return toolBarPane; |
|
} |
|
}
|
|
|