Book a Demo

Author Topic: Refresh Object Browser [ solved ]  (Read 4185 times)

fr3sh

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • drop it like it's hot baby
    • View Profile
Refresh Object Browser [ solved ]
« on: March 19, 2007, 04:56:31 am »
Hi there!

Is there a function or something else for refreshing the Object Browser?

My problem is, that my changes (done by Addin) are not visible immediately. I first have to reload the Project new which is very ugly :(.
« Last Edit: March 23, 2007, 01:24:12 am by fr3sh »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Refresh Object Browser
« Reply #1 on: March 19, 2007, 12:53:59 pm »
Try calling Repository.RefreshModelView().

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Refresh Object Browser
« Reply #2 on: March 20, 2007, 12:31:54 am »
... which potentially reloads the project (model) !

fr3sh

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
  • drop it like it's hot baby
    • View Profile
Re: Refresh Object Browser
« Reply #3 on: March 20, 2007, 01:20:01 am »
Ah... OK

Big THX... it works like a charm. ;D


fr3sh

hellish

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Refresh Object Browser [ solved ]
« Reply #4 on: January 24, 2008, 06:50:13 am »
I have tried your solution, but it did not help, don't know exactly why, but I have the feeling it has something to do with some kind of internal cashing done by EA. Or am I doing something wrong?

Code: [Select]
public void ChangeLanguage(EA.Package SelectedPackage)
       {
           try
           {

               //
here somes code displaying a dialog and doing other stuff
               //
               Repository.RefreshModelView(SelectedPackage.PackageID);

               // Re-select the updated package
               Repository.ShowInProjectView(SelectedPackage);
...