Examples of addAdapter()


Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement.addAdapter()

    }
    else {
      if (metaData != null)
        adapter.setEndData(metaData);
    }
    element.addAdapter(adapter);
    adapter.setElement(element);
    element.setJSPTag(isJSPTag);

    return element;
  }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement.addAdapter()

      element.setEmptyTag(true);
    }
    element.setJSPTag(fJSPTag);

    CommentElementAdapter adapter = new CommentElementAdapter((nodeType == IS_END), fHandler);
    element.addAdapter(adapter);

    return element;
  }
}
View Full Code Here

Examples of org.locationtech.udig.core.feature.AdaptableFeatureCollection.addAdapter()

                    queryAtts.add(CQL);
                    attributeCombo.setItems(queryAtts.toArray(new String[0]));                   
                    attributeCombo.select(0);
                   
                    AdaptableFeatureCollection adaptableCollection = new AdaptableFeatureCollection(features);
                    adaptableCollection.addAdapter(featureSource); // used to listen for changes

                    if( featureSource instanceof FeatureStore )
                        enableEditing(featureTypeCellModifier, query, adaptableCollection);

                    table.setFeatures(adaptableCollection);
View Full Code Here

Examples of org.locationtech.udig.core.feature.AdaptableFeatureCollection.addAdapter()

                    table.setFeatures(adaptableCollection);
            }

            private void enableEditing( final FeatureTypeCellModifier featureTypeCellModifier, final Query query, AdaptableFeatureCollection adaptableCollection ) {
                adaptableCollection.addAdapter(featureTypeCellModifier);
                ICellEditorListener[] keyBindingActivators=new ICellEditorListener[query.getPropertyNames().length];
                for( int i = 0; i < keyBindingActivators.length; i++ ) {
                    keyBindingActivators[i]=new ICellEditorListener(){
                        public void applyEditorValue() {
                            ApplicationGIS.getToolManager().registerActionsWithPart(TableView.this);
View Full Code Here

Examples of org.locationtech.udig.core.feature.AdaptableFeatureCollection.addAdapter()

                        }
                       
                    };
                }
                adaptableCollection.addAdapter(keyBindingActivators);
            }
        }
          );
        } catch (final IOException e) {
            Display.getDefault().asyncExec(new Runnable(){
View Full Code Here

Examples of org.locationtech.udig.core.filter.AdaptingFilter.addAdapter()

                        table.setSelection(new StructuredSelection());
                        return;
                    }
                    AdaptingFilter adaptingFilter = AdaptingFilterFactory
                            .createAdaptingFilter(filter);
                    adaptingFilter.addAdapter(featureSource);

                    StructuredSelection selection = new StructuredSelection(adaptingFilter);
                    table.setSelection(selection);
                }
            });
View Full Code Here

Examples of org.locationtech.udig.core.filter.AdaptingFilter.addAdapter()

        AdaptingFilter filter = AdaptingFilterFactory.createAdaptingFilter(firstElement, layer);
        if (layer.getGeoResource().canResolve(FeatureSource.class)) {
            try {
                FeatureSource<?,?> resolve = layer.getGeoResource().resolve(FeatureSource.class, null);
                FeatureCollection<?,?> features = resolve.getFeatures(filter);
                filter.addAdapter(features);
            } catch (IOException e) {
                // TODO Handle IOException
                throw (RuntimeException) new RuntimeException( ).initCause( e );
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.