@ SuppressWarnings ( "static-method" ) protected Job createJobForJavaProject ( IProject project ) { return new Job ( Messages . EnableSarlMavenNatureAction_0 ) { @ Override protected IStatus run ( IProgressMonitor monitor ) { final SubMonitor mon = SubMonitor . convert ( monitor , 3 ) ; // Force the project configuration to SARL. SARLProjectConfigurator . configureSARLProject ( // Project to configure project , // Add SARL natures true , // Force java configuration true , // Create folders true , // Monitor mon . newChild ( 3 ) ) ; return Status . OK_STATUS ; } } ; }
Create the configuration job for a Java project .