本文整理匯總了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");
}
}
示例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;
}
示例3: getType
@Override
public UpdateManager.TYPE getType () {
if (getUpdateUnit () == null) {
return UpdateManager.TYPE.KIT_MODULE;
}
return getUpdateUnit ().getType ();
}
示例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;
}
示例5: getType
@Override
public UpdateManager.TYPE getType () {
return UpdateManager.TYPE.CUSTOM_HANDLED_COMPONENT;
}
示例6: getType
@Override
public UpdateManager.TYPE getType () {
return type;
}
示例7: Agent
public Agent (FeatureItem item, String providerName, UpdateManager.TYPE type) {
super (item, providerName, null, null, type);
this.featureItem = item;
}
示例8: FeatureUpdateUnitImpl
public FeatureUpdateUnitImpl (String codename, UpdateManager.TYPE type) {
super (codename);
this.type = type;
}
示例9: getType
@Override
public UpdateManager.TYPE getType () {
return UpdateManager.TYPE.LOCALIZATION;
}
示例10: getUpdateUnits
public static List<UpdateUnit> getUpdateUnits (UpdateProvider provider, UpdateManager.TYPE... types) {
return filterUnitsByAskedTypes (UpdateUnitFactory.getDefault().getUpdateUnits (provider).values (), type2checkedList (types));
}
示例11: getType
public abstract UpdateManager.TYPE getType ();