product codes

This commit is contained in:
Anton Makeev
2014-08-29 11:10:26 +02:00
parent 10d85c2332
commit c3fee35d83
4 changed files with 11 additions and 11 deletions
@@ -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;