Skip to main content
Jump to: navigation, search

Difference between revisions of "QVTo/New and Noteworthy/Helios"

Line 67: Line 67:
 
[https://bugs.eclipse.org/bugs/show_bug.cgi?id=308049 308049] Accessing Eclipse console from QVTo black-box library
 
[https://bugs.eclipse.org/bugs/show_bug.cgi?id=308049 308049] Accessing Eclipse console from QVTo black-box library
  
Java blackbox implementation now has an access to QVTo execution context so transformation configuration properties and standard logging capability are available.
+
Java black-box implementation now has a mean to access QVTo execution context so transformation configuration properties and standard logging capability are available.
  
 +
Java black-box library methods that are declared to have an access to QVTo execution context:
 
<source lang="java">
 
<source lang="java">
@Operation (kind=Kind.HELPER, withExecutionContext=true)
+
@Operation (kind=Kind.HELPER, withExecutionContext=true)
public void logToConsole(IContext context, String param) {
+
public void logToConsole(org.eclipse.m2m.qvt.oml.util.IContext context, String param) {
context.getLog().log(param);
+
context.getLog().log(param);
}
+
}
  
@Operation (withExecutionContext=true)
+
@Operation (withExecutionContext=true)
public void cancelExecution(IContext context) {
+
public void cancelExecution(org.eclipse.m2m.qvt.oml.util.IContext context) {
context.getMonitor().cancel();
+
context.getMonitor().cancel();
}
+
}
 
 
@Operation (contextual=true, withExecutionContext=true)
+
@Operation (contextual=true, withExecutionContext=true)
public String getConfigProperty(IContext context, String strContext) {
+
public String getConfigProperty(org.eclipse.m2m.qvt.oml.util.IContext context, String strContext) {
return context.getConfigProperty(strContext).toString();
+
return context.getConfigProperty(strContext).toString();
}
+
}
 +
</source>
 +
 
 +
Sample invocation of the methods above from QVTo script:
 +
<source lang="java">
 +
import org.bar.Foo;
 +
main() {
 +
logToConsole('console output from blackbox lib');
 +
 
 +
log('strTest'.getConfigProperty());
 +
 
 +
cancelExecution();
 +
}
 
</source>
 
</source>

Revision as of 16:23, 26 May 2010

Milestone 2

The milestone was completed on Wednesday, 30 September 2009

Enhancements

204085 XMI serialization of AST models created by the QVTo parser

256149 Contextual operation in Java black-box library as non-static Java method

267493 UI creation wizard for QVTo Ant tasks

284989 QVTo Invocation API now handles dynamic models

285007 Semantic highlighting to QVTo editor

287589 Performance improvement of trace generation and look up

287594 Direct support for 'nullable' enumerations

Bugs

287711 Input EObjects having eContainer != null can't be accessed as model extent root objects

Milestone 3

The milestone was completed on Tuesday, 10 November 2009

291458 Content viewer for QVTo concrete syntax files

Milestone 4

The milestone was completed on Wednesday, 16 December 2009

290002 Adopt QVT CST to latest OCL 3.0.0 CST

295060 Transformation executor must accept a generic transformation URI

295844 Implement concept of debuggable QVT Virtual Machine

295845 Provide QVT debug core implementation

296633 Provide debug.ui implementation

Milestone 5

The milestone was completed on Tuesday, 2 February 2010

287685 Provide support for standalone QVTO execution

287714 Revise excessive checking for [inout] and [out] parameter types

297966 QVTo should align their grammars to LPGv2

300560 Sync with OCL grammar on reintroducing official LPG 2 templates

Milestone 6

The milestone was completed on Tuesday, 16 March 2010

302592 Sync with changes in OCL on implementing new _ prefix policies

Milestone 7

The milestone was completed on Tuesday, 4 May 2010

308049 Accessing Eclipse console from QVTo black-box library

Java black-box implementation now has a mean to access QVTo execution context so transformation configuration properties and standard logging capability are available.

Java black-box library methods that are declared to have an access to QVTo execution context:

@Operation (kind=Kind.HELPER, withExecutionContext=true)
public void logToConsole(org.eclipse.m2m.qvt.oml.util.IContext context, String param) {
	context.getLog().log(param);
}
 
@Operation (withExecutionContext=true)
public void cancelExecution(org.eclipse.m2m.qvt.oml.util.IContext context) {
	context.getMonitor().cancel();
}
 
@Operation (contextual=true, withExecutionContext=true)
public String getConfigProperty(org.eclipse.m2m.qvt.oml.util.IContext context, String strContext) {
	return context.getConfigProperty(strContext).toString();
}

Sample invocation of the methods above from QVTo script:

import org.bar.Foo;
main() {
	logToConsole('console output from blackbox lib');
 
	log('strTest'.getConfigProperty());
 
	cancelExecution();
}

Back to the top