当前位置: 首页>>代码示例>>Java>>正文


Java PluginVersionIdentifier类代码示例

本文整理汇总了Java中org.eclipse.core.runtime.PluginVersionIdentifier的典型用法代码示例。如果您正苦于以下问题:Java PluginVersionIdentifier类的具体用法?Java PluginVersionIdentifier怎么用?Java PluginVersionIdentifier使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


PluginVersionIdentifier类属于org.eclipse.core.runtime包,在下文中一共展示了PluginVersionIdentifier类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeFeatureUpdateManager

import org.eclipse.core.runtime.PluginVersionIdentifier; //导入依赖的package包/类
private void initializeFeatureUpdateManager() {
  FeatureUpdateChecker gwtSdkChecker = new FeatureUpdateChecker(new UpdateComputer() {
    @Override
    public UpdateInfo checkSiteXMLForUpdates(Element siteXMLRootElem) {
      GwtMaxSdkVersionComputer maxVersionComputer = new GwtMaxSdkVersionComputer();
      String maxGwtSdkVersion = maxVersionComputer.computeMaxSdkVersion(getJavaProjects());
      if (maxGwtSdkVersion == null) {
        /*
         * Doesn't look like the GWT SDK is being used in the workspace;
         * indicate that there is no update available
         */
        return new UpdateInfo(GWT_SDK_BUNDLE_FEATURE_ID);
      }

      return doCheckSiteXMLForUpdates(
          GWT_SDK_BUNDLE_FEATURE_ID,
          new PluginVersionIdentifier(maxGwtSdkVersion),
          GdtPreferences.getVersionForLastAcknowledgedUpdateNotification(GWT_SDK_BUNDLE_FEATURE_ID),
          siteXMLRootElem, false);
    }
  });

  FeatureUpdateCheckersMap updateCheckersMap = new FeatureUpdateCheckersMap(UpdateSiteToken.class);

  updateCheckersMap.put(UpdateSiteToken.GWT_SDK, gwtSdkChecker);

  UpdateSiteURLGenerator generator = new UpdateSiteURLGenerator();

  featureUpdateManager = new FeatureUpdateManager(generator, updateCheckersMap);
  analyticsPingManager = new AnalyticsPingManager(generator);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:32,代码来源:GdtExtPlugin.java

示例2: setUpdatedFeatureVersion

import org.eclipse.core.runtime.PluginVersionIdentifier; //导入依赖的package包/类
public void setUpdatedFeatureVersion(
    PluginVersionIdentifier updatedFeatureVersion) {
  if (updatedFeatureVersion == null) {
    this.updatedFeatureVersion = NO_VERSION;
  } else {
    this.updatedFeatureVersion = updatedFeatureVersion;
  }
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:9,代码来源:FeatureUpdateChecker.java

示例3: getVersionForLastAcknowledgedUpdateNotification

import org.eclipse.core.runtime.PluginVersionIdentifier; //导入依赖的package包/类
@SuppressWarnings("deprecation")
public static PluginVersionIdentifier getVersionForLastAcknowledgedUpdateNotification(String featureId) {
  return new PluginVersionIdentifier(
      getConfigurationPreferences().get(getLastAckFeatureUpdateVersionKey(featureId), "0.0.0.0"));
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:6,代码来源:GdtPreferences.java

示例4: setVersionForLastAcknowlegedUpdateNotification

import org.eclipse.core.runtime.PluginVersionIdentifier; //导入依赖的package包/类
@SuppressWarnings("deprecation")
public static void setVersionForLastAcknowlegedUpdateNotification(String featureId, PluginVersionIdentifier version) {
  IEclipsePreferences configurationPreferences = getConfigurationPreferences();
  configurationPreferences.put(getLastAckFeatureUpdateVersionKey(featureId), version.toString());
  flushPreferences(configurationPreferences);
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:7,代码来源:GdtPreferences.java

示例5: getUpdatedFeatureVersion

import org.eclipse.core.runtime.PluginVersionIdentifier; //导入依赖的package包/类
/**
 * If an update is available, returns the updated version that is available
 * for the feature. Otherwise, returns a version of <code>0.0.0.0</code>.
 */
public PluginVersionIdentifier getUpdatedFeatureVersion() {
  return updatedFeatureVersion;
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:8,代码来源:FeatureUpdateChecker.java


注:本文中的org.eclipse.core.runtime.PluginVersionIdentifier类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。