mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
add config for caching
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
log4j.rootLogger = TRACE, fileout, stdout
|
||||
log4j.rootLogger = DEBUG, fileout, stdout
|
||||
log4j.appender.fileout = org.diylc.appframework.miscutils.NewLogForEachRunFileAppender
|
||||
log4j.appender.fileout.layout.ConversionPattern = %d{ABSOLUTE} %5p [%t] %c{1} - %m%n
|
||||
log4j.appender.fileout.layout = org.apache.log4j.PatternLayout
|
||||
|
||||
@@ -266,7 +266,9 @@ public class CanvasPanel extends JComponent implements Autoscroll {
|
||||
if (ConfigurationManager.getInstance().readBoolean(IPlugInPort.EXTRA_SPACE_KEY, true)) {
|
||||
drawOptions.add(DrawOption.EXTRA_SPACE);
|
||||
}
|
||||
drawOptions.add(DrawOption.ENABLE_CACHING);
|
||||
if (ConfigurationManager.getInstance().readBoolean(IPlugInPort.CACHING_ENABLED_KEY, true)) {
|
||||
drawOptions.add(DrawOption.ENABLE_CACHING);
|
||||
}
|
||||
|
||||
plugInPort.draw(g2d, drawOptions, null, null);
|
||||
|
||||
|
||||
@@ -71,6 +71,9 @@ public class ConfigPlugin implements IPlugIn {
|
||||
swingUI.injectMenuAction(
|
||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Auto-Edit Mode", IPlugInPort.AUTO_EDIT_KEY, true),
|
||||
CONFIG_MENU);
|
||||
swingUI.injectMenuAction(
|
||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Enable Caching (Beta)",
|
||||
IPlugInPort.CACHING_ENABLED_KEY, true), CONFIG_MENU);
|
||||
swingUI.injectMenuAction(
|
||||
ActionFactory.getInstance().createConfigAction(plugInPort, "Continuous Creation",
|
||||
IPlugInPort.CONTINUOUS_CREATION_KEY, false), CONFIG_MENU);
|
||||
|
||||
Reference in New Issue
Block a user