private void removeSelectedFieldPairs() {
   for (Iterator stream =
           CollectionTools.iterator(this.fieldPairsSelectionModel.getSelectedValues());
       stream.hasNext(); ) {
     ((MWXmlReferenceMapping) this.subject()).removeXmlFieldPair((MWXmlFieldPair) stream.next());
   }
 }
Exemplo n.º 2
0
 protected void execute() {
   Iterator nodesIterator = CollectionTools.iterator(this.selectedNodes());
   Iterator schemasIterator =
       new TransformationIterator(nodesIterator) {
         protected Object transform(Object next) {
           return ((XmlSchemaNode) next).getSchema();
         }
       };
   SchemaDialogUtilities.reloadSchemas(getWorkbenchContext(), schemasIterator);
 }
 public static Iterator j2CAdapterNames() {
   return CollectionTools.iterator(j2cAdapterNames);
 }