Java Code Examples for com.intellij.util.PlatformUtils#isWebStorm()

The following examples show how to use com.intellij.util.PlatformUtils#isWebStorm() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlutterCreateAdditionalSettingsFields.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
public void addSettingsFields(@NotNull SettingsStep settingsStep) {
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.description.label"), descriptionField);
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.type.label"),
                                projectTypeForm.getComponent());
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.org.label"), orgField);
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.android.label"),
                                androidLanguageRadios.getComponent());
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.ios.label"),
                                iosLanguageRadios.getComponent());
  // WebStorm has a smaller area for the wizard UI.
  if (!PlatformUtils.isWebStorm()) {
    settingsStep.addSettingsComponent(new SettingsHelpForm().getComponent());
  }

  settingsStep.addSettingsComponent(createParams.setInitialValues().getComponent());
}
 
Example 2
Source File: FlutterCreateAdditionalSettingsFields.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
public void addSettingsFields(@NotNull SettingsStep settingsStep) {
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.description.label"), descriptionField);
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.type.label"),
                                projectTypeForm.getComponent());
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.org.label"), orgField);
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.android.label"),
                                androidLanguageRadios.getComponent());
  settingsStep.addSettingsField(FlutterBundle.message("flutter.module.create.settings.radios.ios.label"),
                                iosLanguageRadios.getComponent());
  // WebStorm has a smaller area for the wizard UI.
  if (!PlatformUtils.isWebStorm()) {
    settingsStep.addSettingsComponent(new SettingsHelpForm().getComponent());
  }

  settingsStep.addSettingsComponent(createParams.setInitialValues().getComponent());
}
 
Example 3
Source File: TSColorSettings.java    From Custom-Syntax-Highlighter with MIT License 4 votes vote down vote up
@Override
public DisplayPriority getPriority() {
  return PlatformUtils.isWebStorm() ? DisplayPriority.KEY_LANGUAGE_SETTINGS : DisplayPriority.LANGUAGE_SETTINGS;
}
 
Example 4
Source File: JSColorSettings.java    From Custom-Syntax-Highlighter with MIT License 4 votes vote down vote up
@Override
public DisplayPriority getPriority() {
  return PlatformUtils.isWebStorm() ? DisplayPriority.KEY_LANGUAGE_SETTINGS : DisplayPriority.LANGUAGE_SETTINGS;
}
 
Example 5
Source File: BlazeJavascriptSyncPlugin.java    From intellij with Apache License 2.0 4 votes vote down vote up
private static boolean isLanguageSupportedInIde() {
  return PlatformUtils.isIdeaUltimate()
      || PlatformUtils.isWebStorm()
      || PlatformUtils.isCLion()
      || PlatformUtils.isGoIde();
}
 
Example 6
Source File: BlazeJavascriptSyncPlugin.java    From intellij with Apache License 2.0 4 votes vote down vote up
private static boolean isWorkspaceTypeSupported() {
  // still supported in IntelliJ UE for legacy reasons
  return PlatformUtils.isWebStorm() || PlatformUtils.isIdeaUltimate();
}
 
Example 7
Source File: BlazeJavascriptSyncPlugin.java    From intellij with Apache License 2.0 4 votes vote down vote up
@Nullable
@Override
public WorkspaceType getDefaultWorkspaceType() {
  return PlatformUtils.isWebStorm() ? WorkspaceType.JAVASCRIPT : null;
}
 
Example 8
Source File: BlazeTypescriptSyncPlugin.java    From intellij with Apache License 2.0 4 votes vote down vote up
private static boolean isLanguageSupportedInIde() {
  return PlatformUtils.isIdeaUltimate()
      || PlatformUtils.isWebStorm()
      || PlatformUtils.isCLion()
      || PlatformUtils.isGoIde();
}