[mac] enable async clipboard by default

This commit is contained in:
Alexey Pegov
2011-12-07 13:58:30 +04:00
parent 894052c4d8
commit 94fdb06cd0
2 changed files with 0 additions and 16 deletions
@@ -286,7 +286,6 @@ public class ClipboardSynchronizer implements ApplicationComponent {
@Nullable
public static Transferable getContentsSafe() {
final Ref<Transferable> result = new Ref<Transferable>();
if (Registry.is("ide.mac.useNativeClipboard.async")) {
final JRootPane pane = getRootPane();
if (pane != null) {
try {
@@ -312,7 +311,6 @@ public class ClipboardSynchronizer implements ApplicationComponent {
}
};
if (SwingUtilities.isEventDispatchThread()) {
run.run();
} else {
@@ -331,19 +329,6 @@ public class ClipboardSynchronizer implements ApplicationComponent {
}
return null;
}
Foundation.executeOnMainThread(new Runnable() {
@Override
public void run() {
Transferable transferable = getClipboardContentNatively();
if (transferable != null) {
result.set(transferable);
}
}
}, true, true);
return result.get();
}
}
@@ -154,7 +154,6 @@ show.live.templates.in.completion=false
documentation.component.editor.font=false
ide.mac.useNativeClipboard=true
ide.mac.useNativeClipboard.async=false
show.all.classes.on.first.completion=false
limited.relevance.sorting.in.completion=false