Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Ian Mitchell on September 18, 2013, 12:14:41 am

Title: How to close a tab?
Post by: Ian Mitchell on September 18, 2013, 12:14:41 am
I'm using the repository.addTab() method to create new tabs, but now I'd like to close them again, under program control.

The other "addXX" methods have equivalent "removeXX" methods, like removeOutputTab and RemoveWindow, but where's the 'removeTab' method?
Or does anyone know a way to close such a tab in some other way ?
Title: Re: How to close a tab?
Post by: EXploringEA on September 18, 2013, 10:25:11 am
Hi Ian

There is a Repository.RemoveTab(tabname) method - just not listed in the help file.

I've found it useful to do a code import of the EA Object model DLL (as suggested by Sparx tech support some time ago) to get a complete picture of the available operations.  Useful for keeping notes on usage and you can then use eaDocX to get produce the additional documentation you may need :)



Title: Re: How to close a tab?
Post by: qwerty on September 18, 2013, 11:22:05 am
Which leaves the question why Sparx is not documenting this way and providing it tu us.

q.
Title: Re: How to close a tab?
Post by: EXploringEA on September 19, 2013, 02:10:17 am
I agree - especially as the focus for "documenting" our systems is to use EA in which we have all the knowledge rather than in snapshot word documents.

I find having the Object Model (derived from the InterOp DLL) and AddIn model (hand coded :-?) in EA to be really useful.

When developing a new AddIn I clone a copy of AddIn interface, edit as needed and do my initial code generation - it forces me to do the "right thing" and document what I'm expecting at this interface :)
Title: Re: How to close a tab?
Post by: Ian Mitchell on September 20, 2013, 12:31:40 am
Thanks chaps - that works splendidly!