hpi-swa/vivide

Adding an artifact from "empty" editor does not update the input

Opened this issue · 0 comments

There an be artifact editors for new objects such as protocols and methods. Such editors have nil as their current object:

addArtifact

	| editor |
	editor := ViMethodEditor new
		context: self theClass;
		object: nil.
		
	self artifactCreated: editor.
addProtocol

	| editor |
	editor := ViProtocolEditor new
		context: self theClass theNonMetaClass;
		object: nil.
		
	self artifactCreated: editor.

In those editors, saving means creating. However, that creation is not propagated to the surrounding artifact list, which can make editors disappear after a list update.