Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: stao on August 31, 2011, 05:11:00 am

Title: EA_OnOutputItemDoubleClicked what has been clicke?
Post by: stao on August 31, 2011, 05:11:00 am
Hi @all
i stepped over a stupid problem.
iam currently writing a model validation addin.
i check some rules on some elements and publish the results via
ea.project.publishResult(..);
here my problem starts.
i want to allow the users to doubleclick on the errors in the output window and provide e.g. possibilities to fix the errors (doubleclick the error -> be asked if the error should be fixed somehow -> yes, no....)

with the parameters the method provides me iam not able to find the connection between the error in the output and the rule which caused the error output.


public void EA_OnOutputItemDoubleClicked(EA.Repository repository, String tabname, String linetext,long id)

tabname is surely "model validation"
id seems to be a random #
the linetext doesnt help either because at the time of publishing the error i cant know which text will appear in the line.

any ideas?

Thanks

stao
Title: Re: EA_OnOutputItemDoubleClicked what has been cli
Post by: qwerty on September 01, 2011, 06:50:24 am
I know that from System Output where you write a log line you must provide a number. This is used for the double clicked method to let you know which line was clicked. But I have no idea how they handle it with the output in a different tab.

q.