org.eclipse.swt.SWT.getVersion()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(67)

本文整理了Java中org.eclipse.swt.SWT.getVersion()方法的一些代码示例,展示了SWT.getVersion()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SWT.getVersion()方法的具体详情如下:
包路径:org.eclipse.swt.SWT
类名称:SWT
方法名:getVersion

SWT.getVersion介绍

[英]Returns the SWT version number as an integer. Example: "SWT051" == 51
[中]以整数形式返回SWT版本号。示例:“SWT051”==51

代码示例

代码示例来源:origin: BiglySoftware/BiglyBT

public
SWTVersionGetter(
    UpdateChecker    _checker )
{
   this.platform = SWT.getPlatform();
 this.currentVersion = SWT.getVersion();
 this.latestVersion = 0;
 checker    = _checker;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

int get_toolkitVersion(int /*long*/ pbstrVersion) {
  String toolkitVersion = "" + SWT.getVersion(); //$NON-NLS-1$
  if (DEBUG) print(this + ".IAccessibleApplication::get_toolkitVersion() returning" + toolkitVersion + hresult(COM.S_OK));
  setString(pbstrVersion, toolkitVersion);
  return COM.S_OK;
}

代码示例来源:origin: openaudible/openaudible

logger.info("Starting " + getAppName() + " build " + Version.appVersion + " for " + SWT.getPlatform() + " swt " + SWT.getVersion() + " jvm " + java);

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void generate(IndentWriter writer) {
    writer.println("SWT");

    try {
      writer.indent();

      writer.println("SWT Version:" + SWT.getVersion() + "/"
          + SWT.getPlatform());

      writer.println("org.eclipse.swt.browser.XULRunnerPath: "
          + System.getProperty("org.eclipse.swt.browser.XULRunnerPath", ""));
      writer.println("MOZILLA_FIVE_HOME: "
          + SystemProperties.getEnvironmentalVariable("MOZILLA_FIVE_HOME"));

    } finally {

      writer.exdent();
    }
  }
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

private void registerJavascriptFiles()
 throws IOException
{
 ContentBuffer contentBuffer = new ContentBuffer();
 String appearanceCode = createAppearanceCode();
 if( RWTProperties.isDevelopmentMode() ) {
  append( contentBuffer, "debug-settings.js" );
  for( String javascriptFile : JAVASCRIPT_FILES ) {
   append( contentBuffer, javascriptFile );
  }
 } else {
  append( contentBuffer, CLIENT_JS );
 }
 contentBuffer.append( appearanceCode.getBytes( HTTP.CHARSET_UTF_8 ) );
 registerJavascriptResource( contentBuffer, SWT.getVersion() + "/rap-client.js" );
}

代码示例来源:origin: BiglySoftware/BiglyBT

protected void performAutoCheck(final boolean start_of_day) {
  boolean check_at_start = false;
  boolean check_periodic = false;
  boolean bOldSWT = SWT.getVersion() < 3139;
  // no update checks for java web start
  if (!SystemProperties.isJavaWebStartInstance()) {
    // force check when SWT is really old
    check_at_start = COConfigurationManager.getBooleanParameter("update.start")
        || bOldSWT;
    check_periodic = COConfigurationManager.getBooleanParameter("update.periodic");
  }
  // periodic -> check at start as well
  check_at_start = check_at_start || check_periodic;
  if ((check_at_start && start_of_day) || (check_periodic && !start_of_day)) {
    performCheck(bOldSWT, true, false, null ); // this will implicitly do usage stats
  } else {
    new DelayedEvent("UpdateMon:wait2", 5000, new AERunnable() {
      @Override
      public void runSupport() {
        if (start_of_day) {
          UIFunctions uiFunctions = UIFunctionsManager.getUIFunctions();
          if (uiFunctions != null) {
            uiFunctions.setStatusText("");
          }
        }
        CoreUpdateChecker.doUsageStats();
      }
    });
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

String sMin = "3.4";
  try {
    sMin = "" +  (((int)(SWT.getVersion() / 100)) / 10.0);
  } catch (Throwable t) {
         if (SWT.getVersion() < 3119)
           e.printStackTrace();
         if (Constants.isCVSVersion()) {

代码示例来源:origin: BiglySoftware/BiglyBT

Label lblTitle = new Label(cShell, SWT.getVersion() < 3100 ? SWT.NONE
    : SWT.WRAP);
gridData = new GridData(GridData.FILL_HORIZONTAL);
if (SWT.getVersion() < 3100)
  gridData.widthHint = 140;
lblTitle.setLayoutData(gridData);

代码示例来源:origin: BiglySoftware/BiglyBT

+ System.getProperty("java.vendor") + "\n"
+ System.getProperty("java.home") + "\n\n"
+ "SWT v" + SWT.getVersion() + ", " + SWT.getPlatform() + swt + "\n"
+ System.getProperty("os.name") + " v"
+ System.getProperty("os.version") + ", "

代码示例来源:origin: BiglySoftware/BiglyBT

if(SWT.getVersion() >= 3138 && antiAliasingAvailable) {
  try {

代码示例来源:origin: org.xworker/xworker_swt

if(webKit && SWT.getVersion() > 3700){// && UtilBrowser.isWebKit()){

代码示例来源:origin: BiglySoftware/BiglyBT

if (SWT.getVersion() < 3600) {
  parent.layout(new Control[] { previous });
} else {

代码示例来源:origin: BiglySoftware/BiglyBT

if (SWT.getVersion() > 3600) {
  TabbedMDI_Ren.setupTabFolderRenderer(this, tabFolder);

相关文章