Package org.locationtech.udig.ui

Examples of org.locationtech.udig.ui.AbstractStrategizedTransfer


    @Override
    protected void createFieldEditors() {
        Set<Transfer> transfers = UDIGDNDProcessor.getTransfers();
        for( Transfer transfer : transfers ) {
            if ( transfer instanceof AbstractStrategizedTransfer ){
                AbstractStrategizedTransfer ast=(AbstractStrategizedTransfer) transfer;
                String[] names=ast.getStrategyNames();
                if( names.length<2 )
                    continue;
               
                String[][] labelsAndValues=new String[names.length][];
                for( int i = 0; i < labelsAndValues.length; i++ ) {
                    labelsAndValues[i]=new String[]{names[i], ""+i}; //$NON-NLS-1$
                    getPreferenceStore().setDefault(ast.getClass().getName(), ""); //$NON-NLS-1$
                }
                addField(new RadioGroupFieldEditor(transfer.getClass().getName(), ast.getTransferName(), 2, labelsAndValues, getFieldEditorParent(),true));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.ui.AbstractStrategizedTransfer

Copyright © 2018 www.massapicom. 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.