Author Topic: How to close a tab?  (Read 6597 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
How to close a tab?
« 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 ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: How to close a tab?
« Reply #1 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 :)



EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to close a tab?
« Reply #2 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.

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: How to close a tab?
« Reply #3 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 :)
EXploringEA - information, utilities and addins

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: How to close a tab?
« Reply #4 on: September 20, 2013, 12:31:40 am »
Thanks chaps - that works splendidly!
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com