本文整理汇总了Java中com.intellij.util.PlatformUtils.isIdeaCommunity方法的典型用法代码示例。如果您正苦于以下问题:Java PlatformUtils.isIdeaCommunity方法的具体用法?Java PlatformUtils.isIdeaCommunity怎么用?Java PlatformUtils.isIdeaCommunity使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.PlatformUtils
的用法示例。
在下文中一共展示了PlatformUtils.isIdeaCommunity方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getProductPrefix
import com.intellij.util.PlatformUtils; //导入方法依赖的package包/类
private static String getProductPrefix() {
String prefix = null;
if (PlatformUtils.isIdeaCommunity()) {
prefix = "IC";
}
else if (PlatformUtils.isIdeaUltimate()) {
prefix = "IU";
}
return prefix;
}
示例2: getToolTagFlag
import com.intellij.util.PlatformUtils; //导入方法依赖的package包/类
@VisibleForTesting
public static String getToolTagFlag() {
String platformPrefix = PlatformUtils.getPlatformPrefix();
// IDEA Community Edition is "Idea", whereas IDEA Ultimate Edition is "idea".
// That's dumb. Let's make them more useful.
if (PlatformUtils.isIdeaCommunity()) {
platformPrefix = "IDEA:community";
} else if (PlatformUtils.isIdeaUltimate()) {
platformPrefix = "IDEA:ultimate";
}
return TOOL_TAG + platformPrefix;
}
示例3: isDiscountTargetGroup
import com.intellij.util.PlatformUtils; //导入方法依赖的package包/类
private boolean isDiscountTargetGroup() {
LicensingFacade licensingFacade = LicensingFacade.getInstance();
return licensingFacade == null || licensingFacade.isEvaluationLicense() || PlatformUtils.isIdeaCommunity();
}
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:5,代码来源:HybrisProjectManagerListener.java
示例4: isApplicable
import com.intellij.util.PlatformUtils; //导入方法依赖的package包/类
static boolean isApplicable() {
return SystemInfo.isMac && Registry.is("ide.mac.show.native.help") && !PlatformUtils.isCidr() && !PlatformUtils.isIdeaCommunity();
}
示例5: isGoPluginSupported
import com.intellij.util.PlatformUtils; //导入方法依赖的package包/类
/** Returns true if this is a paid IDE, or if we're in unit testing mode */
private static boolean isGoPluginSupported() {
return !PlatformUtils.isIdeaCommunity() || ApplicationManager.getApplication().isUnitTestMode();
}