本文整理匯總了Java中lombok.installer.IdeFinder.OS類的典型用法代碼示例。如果您正苦於以下問題:Java OS類的具體用法?Java OS怎麽用?Java OS使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
OS類屬於lombok.installer.IdeFinder包,在下文中一共展示了OS類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getLocationSelectors
import lombok.installer.IdeFinder.OS; //導入依賴的package包/類
@Override public Pattern getLocationSelectors(OS os) {
switch (os) {
case MAC_OS_X:
return Pattern.compile("^(sts|sts\\.ini|sts\\.app)$", Pattern.CASE_INSENSITIVE);
case WINDOWS:
return Pattern.compile("^(stsc?\\.exe|sts\\.ini)$", Pattern.CASE_INSENSITIVE);
default:
case UNIX:
return Pattern.compile("^(sts|sts\\.ini)$", Pattern.CASE_INSENSITIVE);
}
}
示例2: getLocationSelectors
import lombok.installer.IdeFinder.OS; //導入依賴的package包/類
@Override public Pattern getLocationSelectors(OS os) {
switch (os) {
case MAC_OS_X:
return Pattern.compile("^(eclipse|eclipse\\.ini|eclipse\\.app)$", Pattern.CASE_INSENSITIVE);
case WINDOWS:
return Pattern.compile("^(eclipse\\.exe|eclipse\\.ini)$", Pattern.CASE_INSENSITIVE);
default:
case UNIX:
return Pattern.compile("^(eclipse|eclipse\\.ini)$", Pattern.CASE_INSENSITIVE);
}
}
示例3: getLocationSelectors
import lombok.installer.IdeFinder.OS; //導入依賴的package包/類
@Override public Pattern getLocationSelectors(OS os) {
switch (os) {
case MAC_OS_X:
return Pattern.compile("^(jbdevstudio|jbdevstudio\\.ini|jbdevstudio\\.app)$", Pattern.CASE_INSENSITIVE);
case WINDOWS:
return Pattern.compile("^(jbdevstudioc?\\.exe|jbdevstudio\\.ini)$", Pattern.CASE_INSENSITIVE);
default:
case UNIX:
return Pattern.compile("^(jbdevstudio|jbdevstudio\\.ini)$", Pattern.CASE_INSENSITIVE);
}
}
示例4: show
import lombok.installer.IdeFinder.OS; //導入依賴的package包/類
/**
* Makes the installer window visible.
*/
public void show() {
appWindow.setVisible(true);
if (IdeFinder.getOS() == OS.MAC_OS_X) {
try {
AppleNativeLook.go();
} catch (Throwable ignore) {
//We're just prettying up the app. If it fails, meh.
}
}
}
示例5: getIdeExecutableNames
import lombok.installer.IdeFinder.OS; //導入依賴的package包/類
static List<Pattern> getIdeExecutableNames() {
OS os = IdeFinder.getOS();
List<Pattern> list = new ArrayList<Pattern>();
for (IdeLocationProvider provider : locationProviders) {
Pattern p = provider.getLocationSelectors(os);
if (p != null) list.add(p);
}
return list;
}
示例6: getLocationSelectors
import lombok.installer.IdeFinder.OS; //導入依賴的package包/類
/**
* Return the usual name of the IDE executable or other obvious marker of an IDE installation on the provided platform.
*/
public abstract Pattern getLocationSelectors(OS os);