當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。