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


Java UpdateManager.TYPE属性代码示例

本文整理汇总了Java中org.netbeans.api.autoupdate.UpdateManager.TYPE属性的典型用法代码示例。如果您正苦于以下问题:Java UpdateManager.TYPE属性的具体用法?Java UpdateManager.TYPE怎么用?Java UpdateManager.TYPE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.netbeans.api.autoupdate.UpdateManager的用法示例。


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

示例1: FeatureUpdateElementImpl

public FeatureUpdateElementImpl (FeatureItem item, String providerName,
        Set<ModuleUpdateElementImpl> moduleElementsImpl,
        Set<FeatureUpdateElementImpl> featureElementsImpl,
        UpdateManager.TYPE type) {
    super (item, providerName);
    this.type = type;
    this.moduleElementsImpl = moduleElementsImpl;
    this.featureElementsImpl = featureElementsImpl;
    codeName = item.getCodeName ();
    String itemSpec = item.getSpecificationVersion ();
    if (itemSpec == null) {
        LOG.log (Level.INFO, codeName + " has no specificationVersion.");
    } else {
        specVersion = new SpecificationVersion (itemSpec);
    }
    installInfo = new InstallInfo (item);
    displayName = item.getDisplayName ();
    description = item.getDescription ();
    category = item.getCategory ();
    if (category == null) {
        category = NbBundle.getMessage (UpdateElementImpl.class, "UpdateElementImpl_Feature_CategoryName");
    }
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:23,代码来源:FeatureUpdateElementImpl.java

示例2: filterUnitsByAskedTypes

private static List<UpdateUnit> filterUnitsByAskedTypes (Collection<UpdateUnit> units, List<UpdateManager.TYPE> types) {
    List<UpdateUnit> askedUnits = new ArrayList<UpdateUnit> ();

    //hotfix for #113193 - reevaluate and probably fix better
    List<UpdateManager.TYPE> tmpTypes =  new ArrayList<UpdateManager.TYPE>(types);
    if (tmpTypes.contains (UpdateManager.TYPE.MODULE) && !tmpTypes.contains (UpdateManager.TYPE.KIT_MODULE)) {
        tmpTypes.add (UpdateManager.TYPE.KIT_MODULE);
    }
    
    for (UpdateUnit unit : units) {
        UpdateUnitImpl impl = Trampoline.API.impl (unit);
        if (tmpTypes.contains (impl.getType ())) {
            askedUnits.add (unit);
        }
    }

    return askedUnits;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:18,代码来源:UpdateManagerImpl.java

示例3: getType

@Override
public UpdateManager.TYPE getType () {
    if (getUpdateUnit () == null) {
        return UpdateManager.TYPE.KIT_MODULE;
    }
    return getUpdateUnit ().getType ();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:7,代码来源:KitModuleUpdateElementImpl.java

示例4: type2checkedList

private static List<UpdateManager.TYPE> type2checkedList (UpdateManager.TYPE... types) {
    List<UpdateManager.TYPE> l = Arrays.asList (types);
    if (types != null && types.length > 1) {
        if (l.contains (UpdateManager.TYPE.MODULE) && l.contains (UpdateManager.TYPE.KIT_MODULE)) {
            throw new IllegalArgumentException ("Cannot mix types MODULE and KIT_MODULE into once list.");
        }
    } else if (types == null || types.length == 0) {
        l = Arrays.asList (DEFAULT_TYPES);
    }
    return l;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:11,代码来源:UpdateManagerImpl.java

示例5: getType

@Override
public UpdateManager.TYPE getType () {
    return UpdateManager.TYPE.CUSTOM_HANDLED_COMPONENT;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:NativeComponentUpdateElementImpl.java

示例6: getType

@Override
public UpdateManager.TYPE getType () {
    return type;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:FeatureUpdateElementImpl.java

示例7: Agent

public Agent (FeatureItem item, String providerName, UpdateManager.TYPE type) {
    super (item, providerName, null, null, type);
    this.featureItem = item;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:FeatureUpdateElementImpl.java

示例8: FeatureUpdateUnitImpl

public FeatureUpdateUnitImpl (String codename, UpdateManager.TYPE type) {
    super (codename);
    this.type = type;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:FeatureUpdateUnitImpl.java

示例9: getType

@Override
public UpdateManager.TYPE getType () {
    return UpdateManager.TYPE.LOCALIZATION;
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:LocalizationUpdateElementImpl.java

示例10: getUpdateUnits

public static List<UpdateUnit> getUpdateUnits (UpdateProvider provider, UpdateManager.TYPE... types) {
    return filterUnitsByAskedTypes (UpdateUnitFactory.getDefault().getUpdateUnits (provider).values (), type2checkedList (types));
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:UpdateManagerImpl.java

示例11: getType

public abstract UpdateManager.TYPE getType (); 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:1,代码来源:UpdateUnitImpl.java


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