Skip to content

Remove WS_CARBON check #3077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public static boolean isWindows() {
*/
public static boolean isMac() {
final String ws = SWT.getPlatform();
return WS_CARBON.equals(ws) || WS_COCOA.equals(ws);
return WS_COCOA.equals(ws);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ private static final void readBindingsFromPreferences(final IMemento preferences
* @param commandService The command service for the workbench; must
* not be <code>null</code>.
*/
@SuppressWarnings("removal")
// @SuppressWarnings("removal")
private static final void readBindingsFromRegistry(final IConfigurationElement[] configurationElements,
final int configurationElementCount, final BindingManager bindingManager,
final CommandManager commandService) {
Expand Down Expand Up @@ -608,12 +608,6 @@ private static final void readBindingsFromRegistry(final IConfigurationElement[]

if (Util.WS_COCOA.equals(platform)) {
cocoaTempList.add(binding);
} else if (Util.WS_CARBON.equals(platform)) {
bindings.add(binding);
// temp work around ... simply honour the carbon
// bindings for cocoa.
cocoaTempList.add(new KeyBinding(keySequence, parameterizedCommand, schemeId, contextId, locale,
Util.WS_COCOA, null, Binding.SYSTEM));
} else {
bindings.add(binding);
}
Expand Down
Loading