/** * Invokes the emitter method on the compiled template and returns the result. * @return the template result. */ public String generate(IProgressMonitor progressMonitor, Object [] arguments) throws JETException { return generate(BasicMonitor.toMonitor(progressMonitor), arguments); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generateTests(IProgressMonitor progressMonitor) { generateTests(BasicMonitor.toMonitor(progressMonitor)); }
/** * Compiles the template to {@link #setMethod set} the method will be invoked to generate template results. * @param progressMonitor the progress monitor for tracking progress. */ public void initialize(IProgressMonitor progressMonitor) throws JETException { initialize(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. */ @Deprecated public final void generateSchema(IProgressMonitor progressMonitor) { generateSchema(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generateTests(IProgressMonitor progressMonitor) { generateTests(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generateEditor(IProgressMonitor progressMonitor) { generateEditor(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generateEditor(IProgressMonitor progressMonitor) { generateEditor(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. */ @Deprecated public final void generateSchema(IProgressMonitor progressMonitor) { generateSchema(BasicMonitor.toMonitor(progressMonitor)); }
/** * Compiles the template to {@link #setMethod set} the method will be invoked to generate template results. * @param progressMonitor the progress monitor for tracking progress. */ public void initialize(IProgressMonitor progressMonitor) throws JETException { initialize(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generate(IProgressMonitor progressMonitor) { generate(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generateEdit(IProgressMonitor progressMonitor) { generateEdit(BasicMonitor.toMonitor(progressMonitor)); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generate(IProgressMonitor progressMonitor) { generate(BasicMonitor.toMonitor(progressMonitor)); }
/** * Invokes the emitter method on the compiled template and returns the result. * @return the template result. */ public String generate(IProgressMonitor progressMonitor, Object [] arguments) throws JETException { return generate(BasicMonitor.toMonitor(progressMonitor), arguments); }
/** * @deprecated In EMF 2.2, a {@link org.eclipse.emf.codegen.ecore.generator.Generator Generator} should be used to generate code. * This method will be removed after 2.2. */ @Deprecated public final void generateEdit(IProgressMonitor progressMonitor) { generateEdit(BasicMonitor.toMonitor(progressMonitor)); }
public static IProject createEMFProject (IPath javaSource, IPath projectLocationPath, List<IProject> referencedProjects, IProgressMonitor progressMonitor, int style, List<?> pluginVariables) { return EclipseHelper.createEMFProject (javaSource, projectLocationPath, referencedProjects, BasicMonitor.toMonitor(progressMonitor), style, pluginVariables); }
public static IProject createEMFProject (IPath javaSource, IPath projectLocationPath, List<IProject> referencedProjects, IProgressMonitor progressMonitor, int style, List<?> pluginVariables) { return EclipseHelper.createEMFProject (javaSource, projectLocationPath, referencedProjects, BasicMonitor.toMonitor(progressMonitor), style, pluginVariables); }
public void run(Monitor monitor, String[] arguments) throws Exception { try { monitor.beginTask("", 1); if (arguments.length == 0 || "-help".equalsIgnoreCase(arguments[0].toString())) { printUsage(); } else { processArguments(arguments, "-pdelaunch".equals(arguments[0]) ? 1 : 0); execute(CodeGenUtil.createMonitor(monitor, 1)); } } finally { monitor.done(); } }
@Override protected void execute(IProgressMonitor progressMonitor) throws CoreException { Monitor monitor = BasicMonitor.toMonitor(progressMonitor); try { doPerformFinishDiagnostic = null; doPerformFinishDiagnostic = doPerformFinish(monitor); } catch (Exception exception) { DiagnosticException diagnosticException = exception instanceof DiagnosticException ? (DiagnosticException)exception : new DiagnosticException(ConverterUtil.createErrorDiagnostic(exception, true)); throw DiagnosticException.toCoreException(diagnosticException); } finally { monitor.done(); } } };
projectTypes[i].getType(), projectTypes[i].getName(), BasicMonitor.toMonitor(new SubProgressMonitor(progressMonitor, 1))));
@Override protected void execute(IProgressMonitor progressMonitor) throws CoreException { Diagnostic errorDiagnostic = null; setErrorMessage(null); setMessage(null); Monitor monitor = BasicMonitor.toMonitor(progressMonitor); try { refreshModel(monitor); } catch (Exception exception) { ImporterPlugin.INSTANCE.log(exception); errorDiagnostic = ConverterUtil.createErrorDiagnostic(exception, true); } finally { monitor.done(); } if (errorDiagnostic != null) { handleDiagnostic(errorDiagnostic, errorDiagnostic.getMessage(), ImporterPlugin.INSTANCE.getString("_UI_LoadProblem_title"), ImporterPlugin.INSTANCE.getString("_UI_ProblemsEncounteredProcessing_message")); } } };