bruno-medeiros / MelnormeEclipse

A framework for building Eclipse IDEs
https://github.com/bruno-medeiros/MelnormeEclipse/wiki
7 stars 3 forks source link

Added copy constructor for ToolMessageData. #7

Closed PieterPenninckx closed 8 years ago

PieterPenninckx commented 8 years ago

Added a simple copy constructor to the ToolMessageData class (nested class in melnorme.lang.tooling.toolchain.ops.BuildOutputParser2).

Motivation

I'm working on RustDt/RustDt#130 . In RustDt, CompositeToolMessageData is a subclass of ToolMessageData. I want to extend CompositeToolMessageData with a constructor that takes a ToolMessageData object. The cleanest way (in my eyes) to implement such a constructor is to call the copy constructor of the super class (namely ToolMessageData). Hence the pull request.