mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
product codes
This commit is contained in:
@@ -22,7 +22,7 @@ public class PlatformUtilsCore {
|
||||
public static final String IDEA_PREFIX = "idea";
|
||||
public static final String COMMUNITY_PREFIX = "Idea";
|
||||
public static final String APPCODE_PREFIX = "AppCode";
|
||||
public static final String CPP_PREFIX = "CppIde";
|
||||
public static final String CLION_PREFIX = "CLion";
|
||||
public static final String PYCHARM_PREFIX = "Python";
|
||||
public static final String PYCHARM_PREFIX2 = "PyCharmCore";
|
||||
public static final String RUBY_PREFIX = "Ruby";
|
||||
@@ -59,8 +59,8 @@ public class PlatformUtilsCore {
|
||||
return APPCODE_PREFIX.equals(getPlatformPrefix());
|
||||
}
|
||||
|
||||
public static boolean isCppIde() {
|
||||
return CPP_PREFIX.equals(getPlatformPrefix());
|
||||
public static boolean isCLion() {
|
||||
return CLION_PREFIX.equals(getPlatformPrefix());
|
||||
}
|
||||
|
||||
public static boolean isPyCharm() {
|
||||
|
||||
@@ -28,7 +28,7 @@ public class PlatformUtils {
|
||||
public static final String IDEA_PREFIX = PlatformUtilsCore.IDEA_PREFIX;
|
||||
public static final String IDEA_CE_PREFIX = PlatformUtilsCore.COMMUNITY_PREFIX;
|
||||
public static final String APPCODE_PREFIX = PlatformUtilsCore.APPCODE_PREFIX;
|
||||
public static final String CPP_PREFIX = PlatformUtilsCore.CPP_PREFIX;
|
||||
public static final String CLION_PREFIX = PlatformUtilsCore.CLION_PREFIX;
|
||||
public static final String PYCHARM_PREFIX = PlatformUtilsCore.PYCHARM_PREFIX;
|
||||
public static final String PYCHARM_CE_PREFIX = PlatformUtilsCore.PYCHARM_PREFIX2;
|
||||
public static final String RUBY_PREFIX = PlatformUtilsCore.RUBY_PREFIX;
|
||||
@@ -66,12 +66,12 @@ public class PlatformUtils {
|
||||
return PlatformUtilsCore.isAppCode();
|
||||
}
|
||||
|
||||
public static boolean isCppIde() {
|
||||
return PlatformUtilsCore.isCppIde();
|
||||
public static boolean isCLion() {
|
||||
return PlatformUtilsCore.isCLion();
|
||||
}
|
||||
|
||||
public static boolean isCidr() {
|
||||
return isAppCode() || isCppIde();
|
||||
return isAppCode() || isCLion();
|
||||
}
|
||||
|
||||
public static boolean isPyCharm() {
|
||||
|
||||
@@ -132,7 +132,7 @@ public class CustomizeIDEWizardDialog extends DialogWrapper implements ActionLis
|
||||
gbc.fill = GridBagConstraints.BOTH;
|
||||
gbc.gridx = 0;
|
||||
gbc.gridy = 0;
|
||||
if (!PlatformUtils.isCppIde()) {
|
||||
if (!PlatformUtils.isCLion()) {
|
||||
buttonPanel.add(mySkipButton, gbc);
|
||||
gbc.gridx++;
|
||||
}
|
||||
|
||||
@@ -163,10 +163,10 @@ public class PluginRunConfiguration extends RunConfigurationBase implements Modu
|
||||
prefix = PlatformUtils.WEB_PREFIX;
|
||||
}
|
||||
else if (buildNumber.startsWith("OC")) {
|
||||
prefix = buildNumber.contains("121") ? "CIDR" : PlatformUtils.APPCODE_PREFIX;
|
||||
prefix = PlatformUtils.APPCODE_PREFIX;
|
||||
}
|
||||
else if (buildNumber.startsWith("CP")) {
|
||||
prefix = PlatformUtils.CPP_PREFIX;
|
||||
else if (buildNumber.startsWith("CL")) {
|
||||
prefix = PlatformUtils.CLION_PREFIX;
|
||||
}
|
||||
else if (buildNumber.startsWith("DB")) {
|
||||
prefix = PlatformUtils.DBE_PREFIX;
|
||||
|
||||
Reference in New Issue
Block a user