Package org.locationtech.udig.validation

Examples of org.locationtech.udig.validation.ValidationProcessor


         */
        public Object[] getChildren(Object parentElement) {
            if (parentElement instanceof ValidationProcessor) {
                // this is the root of our tree; at this point we want to return
        // the list of all available plugins as children
                ValidationProcessor processor = (ValidationProcessor) parentElement;
                return processor.getPlugins().toArray();
            } else if (parentElement instanceof PlugInDTO) {
              // this is a plugin (validation test), so we'll grab instances of
        // each test for this type
            return validationProcessor.getTests(parentElement);
            }
View Full Code Here


        /* (non-Javadoc)
         * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
         */
        public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
          if( newInput == oldInput ) return;
          ValidationProcessor newProcessor = (ValidationProcessor) newInput;
          validationProcessor = newProcessor;         
        }
View Full Code Here

        treeLabel.setFont(font);
        treeLabel.setText(Messages.ValidationDialog_validations);
        GridData labelData = new GridData();
        treeLabel.setLayoutData(labelData);
       
        ValidationProcessor tempProcessor = loadDialogState(ApplicationGIS.getActiveMap());
        if (tempProcessor == null) {
            processor = createProcessor(null, null);
            defaultTestSuite = "testSuite1"; //$NON-NLS-1$
        } else {
            processor = tempProcessor;
View Full Code Here

            URL pluginURL = ValidationPlugin.getDefault().getBundle().getResource("plugins"); //$NON-NLS-1$
            String pluginsPath = Platform.asLocalURL(pluginURL).getFile();
//            String pluginsPath = FileLocator.toFileURL(pluginURL).getFile();
            pluginsDir = new File(pluginsPath);
        }
        return new ValidationProcessor(pluginsDir, testSuiteFile);
    }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.validation.ValidationProcessor

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.