Book a Demo

Author Topic: Prevent Project Browswer from updating.  (Read 3663 times)

Brian Wilkinson

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Prevent Project Browswer from updating.
« on: October 11, 2008, 01:05:55 am »
I'm currently working on an addin the creates many new elements and packages, is there away to prevent the project explorer from updating whilst doing this, i've tried

repositry.EnableUIUpdates = false

with no effect.

Brian
« Last Edit: October 11, 2008, 01:06:14 am by koimad »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Prevent Project Browswer from updating.
« Reply #1 on: October 11, 2008, 08:38:16 am »
There's a batch mode setting somewhere - I'll leave you to check the documentation for this - but I don't know if it will help. Still, worth a try...
No, you can't have it!

Brian Wilkinson

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Prevent Project Browswer from updating.
« Reply #2 on: October 13, 2008, 07:44:52 pm »
Many thanks for that, using batch update I can create diagrams and elements, with no project browser refreshing, but I still have to update packages as I create otherwise I get an exception. Its not the perfect solution but it certainly speeds thing up a lot, and it is tiedier looking.

Thanks
           Brian

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Prevent Project Browswer from updating.
« Reply #3 on: October 14, 2008, 03:13:23 am »
Hi Brian,

Can you create all the appropriate 'children' for each collection, then update (refresh) the collection at the end? If so this might save some time.

As to the rest, see if you can do a refresh. There are various options for this, each with a specific method call. Perhaps that will help the UI.

You would still be vulnerable while you were doing the updates, so you might want to somehow limit what interactive users can do while this was going on. How you do that - even whether it is possible or practical - would probably depend on the specifics of your application.

David
No, you can't have it!