Cleanup (registry and related usages)

This commit is contained in:
Roman Shevchenko
2012-07-05 12:24:17 +02:00
parent cabf251005
commit 9e4846f894
15 changed files with 7418 additions and 7397 deletions
@@ -3,7 +3,7 @@
%importCall com.intellij.openapi.ui.playback.util.EditorPlaybackCall
%set ide.mac.message.dialogs.as.sheets=false
%set ide.mac.filechooser.native=false
%set ide.mac.file.chooser.native=false
%set ide.debug.minProgressTime=1000
%cd {script.dir}/../../../..
@@ -54,7 +54,7 @@ public class NavBarUpdateQueue extends MergingUpdateQueue {
private NavBarPanel myPanel;
public NavBarUpdateQueue(NavBarPanel panel) {
super("NavBar", Registry.intValue("navbar.updateMergeTime"), true, MergingUpdateQueue.ANY_COMPONENT, panel);
super("NavBar", Registry.intValue("navBar.updateMergeTime"), true, MergingUpdateQueue.ANY_COMPONENT, panel);
myPanel = panel;
setTrackUiActivity(true);
IdeEventQueue.getInstance().addActivityListener(new Runnable() {
@@ -111,7 +111,7 @@ public class NavBarUpdateQueue extends MergingUpdateQueue {
void restartRebuild() {
myUserActivityAlarm.cancelAllRequests();
myUserActivityAlarm.addRequest(myUserActivityAlarmRunnable, Registry.intValue("navbar.userActivityMergeTime"));
myUserActivityAlarm.addRequest(myUserActivityAlarmRunnable, Registry.intValue("navBar.userActivityMergeTime"));
}
private void processUserActivity() {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2011 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -125,7 +125,7 @@ public class DeferredIconImpl<T> implements DeferredIcon {
myDelegateIcon = result;
final boolean shouldRevalidate =
Registry.is("ide.tree.deferredicon.invalidates.cache") && myDelegateIcon.getIconWidth() != oldWidth;
Registry.is("ide.tree.deferred.icon.invalidates.cache") && myDelegateIcon.getIconWidth() != oldWidth;
//noinspection SSBasedInspection
SwingUtilities.invokeLater(new Runnable() {
@@ -136,7 +136,7 @@ public class AbstractTreeUi {
}
};
private final RegistryValue myYieldingUpdate = Registry.get("ide.tree.yeildingUiUpdate");
private final RegistryValue myYieldingUpdate = Registry.get("ide.tree.yieldingUiUpdate");
private final RegistryValue myShowBusyIndicator = Registry.get("ide.tree.showBusyIndicator");
private final RegistryValue myWaitForReadyTime = Registry.get("ide.tree.waitForReadyTimeout");
@@ -924,7 +924,7 @@ public class IdeEventQueue extends EventQueue {
Application app = ApplicationManager.getApplication();
if (app == null ||
!SystemInfo.isWindows ||
!Registry.is("actionSystem.win.supressAlt") ||
!Registry.is("actionSystem.win.suppressAlt") ||
!UISettings.getInstance().HIDE_TOOL_STRIPES) {
return !dispatch;
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -165,7 +165,7 @@ public final class SwingCleanuper implements ApplicationComponent{
Toolkit.getDefaultToolkit().addAWTEventListener(new AWTEventListener() {
@Override
public void eventDispatched(AWTEvent event) {
if (!SystemInfo.isMac || !Registry.is("jvmbugfix.mac.caccessibleLeak")) return;
if (!SystemInfo.isMac || !Registry.is("ide.mac.fix.accessibleLeak")) return;
HierarchyEvent he = (HierarchyEvent)event;
if ((he.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) > 0) {
File diff suppressed because it is too large Load Diff
@@ -69,7 +69,7 @@ public class FileChooserFactoryImpl extends FileChooserFactory {
return SystemInfo.isMac &&
!descriptor.isChooseJarContents() &&
"true".equalsIgnoreCase(System.getProperty("native.mac.file.chooser.enabled", "true")) &&
Registry.is("ide.mac.filechooser.native");
Registry.is("ide.mac.file.chooser.native");
}
@NotNull
File diff suppressed because it is too large Load Diff
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -119,7 +119,7 @@ public class ActionCommand extends TypeCommand {
final ActionCallback result = new ActionCallback();
context.getRobot().delay(Registry.intValue("actionSystem.playback.autodelay"));
context.getRobot().delay(Registry.intValue("actionSystem.playback.delay"));
SwingUtilities.invokeLater(new Runnable() {
public void run() {
am.tryToExecute(targetAction, input, null, null, false).doWhenProcessed(new Runnable() {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2011 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -83,7 +83,7 @@ public class ToggleActionCommand extends AbstractCommand {
final InputEvent inputEvent = ActionCommand.getInputEvent(actionId);
final ActionCallback result = new ActionCallback();
context.getRobot().delay(Registry.intValue("actionSystem.playback.autodelay"));
context.getRobot().delay(Registry.intValue("actionSystem.playback.delay"));
IdeFocusManager fm = IdeFocusManager.getGlobalInstance();
fm.doWhenFocusSettlesDown(new Runnable() {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -60,11 +60,11 @@ public abstract class TypeCommand extends AbstractCommand {
if (keyStroke.getKeyCode() > 0) {
robot.keyPress(keyStroke.getKeyCode());
robot.delay(Registry.intValue("actionSystem.playback.autodelay"));
robot.delay(Registry.intValue("actionSystem.playback.delay"));
robot.keyRelease(keyStroke.getKeyCode());
} else {
robot.keyPress(keyStroke.getKeyChar());
robot.delay(Registry.intValue("actionSystem.playback.autodelay"));
robot.delay(Registry.intValue("actionSystem.playback.delay"));
robot.keyRelease(keyStroke.getKeyChar());
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -400,7 +400,7 @@ final class Stripe extends JPanel{
}
public void setOverlayed(boolean overlayed) {
if (Registry.is("disable.toolwindow.overlayed")) return;
if (Registry.is("disable.toolwindow.overlay")) return;
Color bg = UIUtil.getPanelBackground();
if (UIUtil.isUnderAquaLookAndFeel()) {
@@ -180,7 +180,7 @@ public class MacFileChooserDialogImpl implements PathChooserDialog {
}
final Boolean showHidden = chooserDescriptor.getUserData(PathChooserDialog.NATIVE_MAC_CHOOSER_SHOW_HIDDEN_FILES);
if (Boolean.TRUE.equals(showHidden) || Registry.is("ide.mac.filechooser.showhidden.files")) {
if (Boolean.TRUE.equals(showHidden) || Registry.is("ide.mac.file.chooser.show.hidden.files")) {
if (Foundation.isClassRespondsToSelector(nsOpenPanel, Foundation.createSelector("setShowsHiddenFiles:"))) {
invoke(chooser, "setShowsHiddenFiles:", true);
}
@@ -1,21 +1,27 @@
localHistory.daysToKeep=5
# suppress inspection "UnusedProperty"
localHistory.daysToKeep.description=Specify how many working days changes should be remembered.\n\
WARNING: Do not use local history as main version control since it may become corrupted if the IDE hangs.
undo.globalUndoLimit=10
undo.documentUndoLimit=100
actionSystem.fixLostTyping=true
actionSystem.fixLostTyping.description=Redispatch events, lost between actions and dialog show/close
# suppress inspection "UnusedProperty"
actionSystem.fixLostTyping.description=Redispatch events, lost between actions and dialog show/close.
actionSystem.fixStickyFocusedWindows=true
actionSystem.fixNullFocusedComponent=true
actionSystem.noDefaultComponent=true
actionSystem.commandProcessingTimeout=30000
actionSystem.commandProcessingTimeout.description=Timeout after which currently proccessed command is forcibly cancelled
# suppress inspection "UnusedProperty"
actionSystem.commandProcessingTimeout.description=Timeout after which currently processed command is forcibly cancelled.
actionSystem.typeAheadTimeBeforeDialog=2000
actionSystem.typeAheadTimeBeforeDialog.description=If dialog shown as a result of some typing, all key types withing this time will be redispatched after dialog is closed
# suppress inspection "UnusedProperty"
actionSystem.typeAheadTimeBeforeDialog.description=If dialog shown as a result of some typing, all key types withing this time\
will be re-dispatched after dialog is closed.
actionSystem.typeAheadTimeAfterPopupAction=500
actionSystem.playback.autodelay=20
actionSystem.playback.autodelay.description=Delay between events generated by the playback runner
actionSystem.playback.delay=20
# suppress inspection "UnusedProperty"
actionSystem.playback.delay.description=Delay between events generated by the playback runner.
actionSystem.playback.useDirectActionCall=true
actionSystem.playback.useTypingTargets=true
actionSystem.focusIdleTimeout=20
@@ -24,7 +30,7 @@ actionSystem.keyGestures.enabled=false
actionSystem.keyGestureDblClickTime=500
actionSystem.suspendFocusTransferIfApplicationInactive=true
actionSystem.noContextComponentWhileFocusTransfer=true
actionSystem.secondKeystrokeTimout=2000
actionSystem.secondKeystrokeTimeout=2000
actionSystem.secondKeystrokeAutoPopupEnabled=false
actionSystem.secondKeystrokePopupTimeout=500
actionSystem.keyGestureHoldTime=400
@@ -32,22 +38,25 @@ actionSystem.autoSelectTimeout=1000
actionSystem.quickAccessEnabled=false
actionSystem.quickAccessModifiers=
actionSystem.quickAccessShowSpotsTime=1500
actionSystem.win.supressAlt=true
actionSystem.win.suppressAlt=true
actionSystem.mouseGesturesEnabled=true
actionSystem.assertFocusAccessFromEdt=true
ide.firstStartup=true
ide.debugMode=false
ide.debugMode.description=Record additonal information to make bug reports more informative
# suppress inspection "UnusedProperty"
ide.debugMode.description=Record additional information to make bug reports more informative.
ide.debug.minProgressTime=0
ide.forcedShowTooltip=alt
ide.forcedShowTooltip.description=Shortcut for forced show tooltip
# suppress inspection "UnusedProperty"
ide.forcedShowTooltip.description=Shortcut for forced show tooltip.
ide.popup.dropShadow=false
ide.consumeKnownToolkitBugs=true
ide.highlight.match.in.selected.only=true
ide.lazyIconLoading=true
ide.checkDuplicateMnemonics=false
ide.checkDuplicateMnemonics.description=Check for duplicate mnemonics
# suppress inspection "UnusedProperty"
ide.checkDuplicateMnemonics.description=Check for duplicate mnemonics.
ide.dnd.textHints=false
ide.max.recent.projects=25
@@ -63,7 +72,7 @@ ide.windowSystem.showListItemsPopup=true
ide.windowSystem.asyncSplitters=true
ide.windowSystem.showTooWindowButtonsSwitcher=true
ide.tree.yeildingUiUpdate=true
ide.tree.yieldingUiUpdate=true
ide.tree.showBusyIndicator=true
ide.tree.waitForReadyTimeout=250
ide.tree.waitForReadySchedule=250
@@ -74,7 +83,7 @@ ide.tree.autoExpandMaxDepth=5
ide.tree.expandRecursionDepth=50
ide.tree.checkStructure=false
ide.tree.uiLockAttempt=250
ide.tree.deferredicon.invalidates.cache=true
ide.tree.deferred.icon.invalidates.cache=true
ide.splitter.mouseZone=6
ide.smart.horizontal.scrolling=true
@@ -95,7 +104,7 @@ ide.balloon.shadow.size=15
editor.balloonHints=true
editor.mouseSelectionStateResetTimeout=1000
editor.mouseSelectionStateResetDeadzone=4
editor.mouseSelectionStateResetDeadZone=4
editor.use.new.tabs=true
editor.smarterSelectionQuoting=true
@@ -104,8 +113,8 @@ ide.showIndexRebuildMessage=false
ide.tabbedPane.bufferedPaint=true
ide.tabbedPane.dragOutMultiplier=1.2
ide.mac.filechooser.showhidden.files=false
ide.mac.filechooser.native=true
ide.mac.file.chooser.show.hidden.files=false
ide.mac.file.chooser.native=true
ide.mac.message.dialogs.as.sheets=true
ide.mac.inplaceDialogMnemonicsFix=true
ide.mac.fix.dialog.showing=false
@@ -114,57 +123,59 @@ ide.mac.show.native.help=true
ide.mac.useNativeClipboard=false
debugger.valueTooltipAutoShow=true
debugger.valueTooltipAutoShow.description=Auto show tooltip on mouse over
# suppress inspection "UnusedProperty"
debugger.valueTooltipAutoShow.description=Auto show tooltip on mouse over.
debugger.mayBringFrameToFrontOnBreakpoint=true
debugger.breakpoint.message.full.trace=false
debugger.breakpoint.message.full.trace.description='Log message to console' breakpoint action will out full stacktrace for the thread that hit the breakpoint
# suppress inspection "UnusedProperty"
debugger.breakpoint.message.full.trace.description='Log message to console' breakpoint action will out full stacktrace\
for the thread that hit the breakpoint.
debugger.breakpoint.use.breakpoints.popup=true
filesystem.useNative=true
filesystem.useChannels=false
analyze.exceptions.on.the.fly=false
analyze.exceptions.on.the.fly.description=Automatically analyze clipboard on frame activation, and if there is a stacktrace calls Analyze Stacktrace
# suppress inspection "UnusedProperty"
analyze.exceptions.on.the.fly.description=Automatically analyze clipboard on frame activation,\
and if there is a stacktrace calls Analyze Stacktrace.
compiler.perform.outputs.refresh.on.start=false
compiler.perform.outputs.refresh.on.start.description=Whether to perform initial FS refresh before compilation starts. Need this to detect external changes to output dirs
# suppress inspection "UnusedProperty"
compiler.perform.outputs.refresh.on.start.description=Whether to perform initial FS refresh before compilation starts.\
Need this to detect external changes to output dirs.
compiler.max.static.constants.searches=3000
compiler.max.static.constants.searches.description=If the number of changed compile time constants exceeds this value, make will start full-project rebuild
# out-of-process build parameters
# suppress inspection "UnusedProperty"
compiler.max.static.constants.searches.description=If the number of changed compile time constants exceeds this value,\
make will start full-project rebuild
#compiler.out-of-process.as-server=false
#compiler.out-of-process.as-server.description=Use implementation of out-of-process build as server process
compiler.process.heap.size=700
compiler.process.heap.size.description=Heap size value in MB for the build process
# suppress inspection "UnusedProperty"
compiler.process.heap.size.description=Heap size value in MB for the build process.
compiler.process.32bit.vm.on.mac=true
compiler.process.32bit.vm.on.mac.description=Force -d32 VM option on Mac (recommended for faster startup and lower memory footprint)
# suppress inspection "UnusedProperty"
compiler.process.32bit.vm.on.mac.description=Force -d32 VM option on Mac (recommended for faster startup and lower memory footprint).
compiler.process.vm.options=-Xss2048k -Djdt.compiler.useSingleThread=true
compiler.process.vm.options.description=Additional options for the build process' VM
# suppress inspection "UnusedProperty"
compiler.process.vm.options.description=Additional options for the build process' VM.
compiler.process.use.memory.temp.cache=true
compiler.process.use.memory.temp.cache.description=Store temporary data in memory for faster compilation; requires larger server heap size
# suppress inspection "UnusedProperty"
compiler.process.use.memory.temp.cache.description=Store temporary data in memory for faster compilation; requires larger server heap size.
compiler.process.use.external.javac=false
compiler.process.use.external.javac.description=Run javac compiler in a separate process (allows to run build process with smaller heap size)
# suppress inspection "UnusedProperty"
compiler.process.use.external.javac.description=Run javac compiler in a separate process (allows to run build process with smaller heap size).
compiler.process.debug.port=-1
#compiler.server.javac.debug.port=-1
# parameters specific to server implementation
compiler.server.max.simultaneous.builds=1
compiler.server.max.simultaneous.builds.description=The max number of simultaneous build sessions. Increasing this value may require larger server heap size
# suppress inspection "UnusedProperty"
compiler.server.max.simultaneous.builds.description=The max number of simultaneous build sessions.\
Increasing this value may require larger server heap size.
compiler.server.ping.interval=5
compiler.server.ping.interval.description=Interval in seconds between ping requests the IDE periodically sends to server. If server does not receive pings for some time, it shuts down. Specify -1 to disable this feature.
# end of out-of-process build parameters
# suppress inspection "UnusedProperty"
compiler.server.ping.interval.description=Interval in seconds between ping requests the IDE periodically sends to server.\
If server does not receive pings for some time, it shuts down. Specify -1 to disable this feature.
vcs.show.colored.annotations=true
vcs.showConsole=true
@@ -181,12 +192,12 @@ keymap.show.alias.actions=false
frameworks.download.libraries.server.url=http://pluginsrepo-test:8080
caches.indexerThreadsCount=-1
vcs.show.history.numbers=true
navbar.updateMergeTime=250
navbar.userActivityMergeTime=500
navBar.updateMergeTime=250
navBar.userActivityMergeTime=500
inspectionGadgets.telemetry.enabled=false
jvmbugfix.mac.caccessibleLeak=true
ide.mac.fix.accessibleLeak=true
projectView.showHierarchyErrors=true
projectView.hide.dot.idea=true
@@ -194,42 +205,52 @@ show.live.templates.in.completion=false
documentation.component.editor.font=false
ide.completion.middle.matching=true
ide.completion.middle.matching.description=Suggest items in completion that contain the entered string somewhere in the middle
# suppress inspection "UnusedProperty"
ide.completion.middle.matching.description=Suggest items in completion that contain the entered string somewhere in the middle.
ide.goto.middle.matching=true
ide.goto.middle.matching.description=Suggest items in goto actions that contain the entered string somewhere in the middle
# suppress inspection "UnusedProperty"
ide.goto.middle.matching.description=Suggest items in goto actions that contain the entered string somewhere in the middle.
ide.enable.toolwindow.stack=false
change.signature.awesome.mode=true
change.signature.awesome.mode.description=Enables list view for change signature
# suppress inspection "UnusedProperty"
change.signature.awesome.mode.description=Enables list view for change signature.
enable.groovy.hotswap=true
enable.groovy.hotswap.description=Whether IDEA should add a special java agent to the debugged process which allows to hot-swap Groovy changes in some cases
# suppress inspection "UnusedProperty"
enable.groovy.hotswap.description=Whether IDEA should add a special java agent to the debugged process\
which allows to hot-swap Groovy changes in some cases
dump.threads.on.empty.lookup=false
dump.threads.on.empty.lookup.description=Whether IDEA should issue a thread dump when an empty completion lookup appears
# suppress inspection "UnusedProperty"
dump.threads.on.empty.lookup.description=Whether IDEA should issue a thread dump when an empty completion lookup appears.
file.structure.tree.mode=true
disable.toolwindow.overlayed=true
disable.toolwindow.overlayed.description=Disable transparent toolwindow stripes
disable.toolwindow.overlay=true
# suppress inspection "UnusedProperty"
disable.toolwindow.overlay.description=Disable transparent toolwindow stripes.
core.pooled.threads=20
editor.dumb.mode.available=true
enable.animation.on.dialogs=false
vcs.remote.management.ready=false
type.ahead.logging.enabled=false
fast.tree.expand.in.structure.view=false
ide.use.nautilus3=true
ide.use.nautilus3.description=Use Nautilus if available
# suppress inspection "UnusedProperty"
ide.use.nautilus3.description=Use Nautilus (if available) for 'Show fine in %OS_file_manager_name%' actions.
ide.goto.implementation.show.interfaces=false
ide.goto.implementation.show.interfaces.description=Whether to show sub-interfaces when invoking Goto Implementation (Ctrl+Alt+B) on an interface
# suppress inspection "UnusedProperty"
ide.goto.implementation.show.interfaces.description=Whether to show sub-interfaces when invoking\
'Go to Implementation' action (Ctrl+Alt+B) on an interface.
ide.open.editors.asynchronously=true
# suppress inspection "UnusedProperty"
ide.open.editors.asynchronously.description=Prepare editors in background thread
file.colors.in.commit.dialog=false
testng.serialized.protocol.enabled=false