public RepositoryImportProgressDialog( Shell parent, int style, Repository rep, String fileDirectory, String[] filenames, RepositoryDirectoryInterface baseDirectory, String versionComment ) { this( parent, style, rep, fileDirectory, filenames, baseDirectory, versionComment, new ImportRules() ); }
public RepositoryExportProgressDialog( Shell shell, Repository rep, RepositoryDirectoryInterface dir, String filename ) { this( shell, rep, dir, filename, new ImportRules() ); }
public RepositoryImporter( Repository repository, LogChannelInterface log ) { this( repository, new ImportRules(), Collections.<String>emptyList(), log ); }
public RepositoryImporter( Repository repository ) { this( repository, new ImportRules(), new ArrayList<String>() ); }
public PurRepositoryExporter( PurRepository repository ) { this.repository = repository; this.importRules = new ImportRules(); this.log = repository.getLog(); }
/** * @param repository */ public RepositoryExporter( Repository repository ) { this.log = repository.getLog(); this.repository = repository; this.importRules = new ImportRules(); }
/** * Perform a deep clone * * @return a deep copy of the all the import rules. */ @Override public ImportRules clone() { ImportRules importRules = new ImportRules(); for ( ImportRuleInterface rule : rules ) { importRules.getRules().add( rule.clone() ); } return importRules; }
protected void syncUIWithData() { ImportRules newRules = new ImportRules(); getInfo( newRules ); importRules = newRules; getCompositesData(); }
public static void main( String[] args ) throws Exception { Display display = new Display(); KettleEnvironment.init(); PropsUI.init( display, PropsUI.TYPE_PROPERTIES_SPOON ); Shell shell = new Shell( display ); ImportRules importRules = new ImportRules(); importRules.loadXML( XMLHandler.getSubNode( XMLHandler.loadXMLFile( "bin/import-rules.xml" ), ImportRules.XML_TAG ) ); ImportRulesDialog dialog = new ImportRulesDialog( shell, importRules ); if ( dialog.open() ) { for ( ImportRuleInterface rule : importRules.getRules() ) { System.out.println( " - " + rule.toString() ); } } }
rule.setId( plugin.getIds()[0] ); ImportRules newRules = new ImportRules(); getInfo( newRules );
private ImportRules getImportRules() { ImportRules imp = new ImportRules(); List<ImportRuleInterface> impRules = new ArrayList<ImportRuleInterface>( 1 ); JobHasDescriptionImportRule rule = new JobHasDescriptionImportRule(); rule.setEnabled( true ); rule.setMinLength( 19000 ); impRules.add( rule ); TransformationHasDescriptionImportRule trRule = new TransformationHasDescriptionImportRule() { public String toString() { return "stub to avoid call to Plugin registry"; } }; trRule.setEnabled( true ); trRule.setMinLength( 19001 ); impRules.add( trRule ); imp.setRules( impRules ); return imp; }
ImportRules importRules = new ImportRules(); String rulesFile = optionRules.toString();
String filename = dialog.getFilterPath() + System.getProperty( "file.separator" ) + dialog.getFileName(); ImportRules newRules = new ImportRules(); try { newRules.loadXML( XMLHandler.getSubNode( XMLHandler.loadXMLFile( filename ), ImportRules.XML_TAG ) );
ImportRules importRules = new ImportRules(); if ( answer == SWT.YES ) { ImportRulesDialog importRulesDialog = new ImportRulesDialog( shell, importRules );
ImportRules importRules = new ImportRules(); if ( answer == SWT.YES ) { ImportRulesDialog importRulesDialog = new ImportRulesDialog( shell, importRules );