/** * @deprecated In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. */ @Deprecated public void generateSchema() { generateSchema(new BasicMonitor()); }
/** * @deprecated In EMF 2.2, schema generation is properly done via a model exporter. This method will be removed after 2.2. */ @Deprecated public void generateSchema() { generateSchema(new BasicMonitor()); }
/** * This is called with the command line arguments of a headless workbench invocation. */ public Object run(Object object) { try { // Three arguments are expected: the .xml getControlModel() URI, the source java URI, and the target java URI. // String contents = execute(new BasicMonitor(), (String[])object); System.out.println("**********************************************"); System.out.println(contents); return new Integer(0); } catch (Exception exception) { // exception.printStackTrace(); return new Integer(1); } }
/** * This is called with the command line arguments of a headless workbench invocation. */ public Object run(Object object) { try { // Three arguments are expected: the .xml getControlModel() URI, the source java URI, and the target java URI. // String contents = execute(new BasicMonitor(), (String[])object); System.out.println("**********************************************"); System.out.println(contents); return 0; } catch (Exception exception) { return 1; } }
genModel.setCanGenerate(true); generator.setInput(genModel); BasicMonitor _basicMonitor = new BasicMonitor(); final Diagnostic diagnostic = generator.generate(genModel, GenBaseGeneratorAdapter.MODEL_PROJECT_TYPE, _basicMonitor); int _severity = diagnostic.getSeverity(); BasicMonitor _basicMonitor_1 = new BasicMonitor(); final Diagnostic editDiag = generator.generate(genModel, GenBaseGeneratorAdapter.EDIT_PROJECT_TYPE, _basicMonitor_1); int _severity_1 = editDiag.getSeverity(); BasicMonitor _basicMonitor_2 = new BasicMonitor(); final Diagnostic editorDiag = generator.generate(genModel, GenBaseGeneratorAdapter.EDITOR_PROJECT_TYPE, _basicMonitor_2); int _severity_2 = editorDiag.getSeverity();