本文整理汇总了Java中org.netbeans.modules.maven.api.customizer.ModelHandle2.addPOMModification方法的典型用法代码示例。如果您正苦于以下问题:Java ModelHandle2.addPOMModification方法的具体用法?Java ModelHandle2.addPOMModification怎么用?Java ModelHandle2.addPOMModification使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.modules.maven.api.customizer.ModelHandle2
的用法示例。
在下文中一共展示了ModelHandle2.addPOMModification方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addModification
import org.netbeans.modules.maven.api.customizer.ModelHandle2; //导入方法依赖的package包/类
private void addModification( ModelHandle2 handle,
AdvancedOptionsModification newOperation )
{
List<ModelOperation<POMModel>> pomOperations = handle
.getPOMOperations();
for (ModelOperation<POMModel> operation : pomOperations) {
if (operation instanceof AdvancedOptionsModification) {
handle.removePOMModification(operation);
}
}
handle.addPOMModification(newOperation);
}
示例2: addModification
import org.netbeans.modules.maven.api.customizer.ModelHandle2; //导入方法依赖的package包/类
private void addModification( ModelHandle2 handle,
GwtOptionsModification newOperation )
{
List<ModelOperation<POMModel>> pomOperations = handle
.getPOMOperations();
for (ModelOperation<POMModel> operation : pomOperations) {
if (operation instanceof GwtOptionsModification) {
handle.removePOMModification(operation);
}
}
handle.addPOMModification(newOperation);
}
示例3: addModification
import org.netbeans.modules.maven.api.customizer.ModelHandle2; //导入方法依赖的package包/类
private void addModification( ModelHandle2 handle,
AddonModification newOperation )
{
List<ModelOperation<POMModel>> pomOperations =
handle.getPOMOperations();
for (ModelOperation<POMModel> operation : pomOperations) {
if (operation instanceof AddonModification) {
handle.removePOMModification(operation);
}
}
handle.addPOMModification(newOperation);
}
示例4: addModification
import org.netbeans.modules.maven.api.customizer.ModelHandle2; //导入方法依赖的package包/类
private void addModification( ModelHandle2 handle,
DevModeModification newOperation )
{
List<ModelOperation<POMModel>> pomOperations = handle
.getPOMOperations();
for (ModelOperation<POMModel> operation : pomOperations) {
if (operation instanceof DevModeModification) {
handle.removePOMModification(operation);
}
}
handle.addPOMModification(newOperation);
}