本文整理汇总了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 ();