Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] bug in project plugin afterCreate()

Tania Tudorache tudorache at stanford.edu
Mon Oct 2 12:09:17 PDT 2006


Hao,

Thank you for the bug report and the fix. I have committed it to the svn 
code repository. The fix will be available in the next beta release.

Tania


Hao Li wrote:
> There is a bug in the ProjectPlugin. The function afterCreate() is not 
> called. The problem turns out to be in 
> edu.stanford.smi.protege.ui.ProjectManager.createNewProjectRequest() . 
> It needs to call the projectPlugin's afterCreate() after creating a new 
> project.  see code below:
>
> public boolean createNewProjectRequest() {
>         boolean succeeded = false;
>         if (closeProjectRequest()) {
>             CreateProjectWizard wizard = new 
> CreateProjectWizard(getMainPanel());
>             int result = wizard.execute();
>             if (result == Wizard.RESULT_FINISH) {
>                 System.err.println ("createNewProjectRequest: 
> CreateProjectWizard finished!");
>                 
>                 _currentProject = wizard.getProject();
>                 getProjectManager().displayCurrentProject();
>                 _projectPluginManager.afterCreate(_currentProject); // 
> <<---- this is the line you want to add
>                 succeeded = true;
>             }
>         }
>         return succeeded;
>     }
>
> Can someone please put this bug fix in the new build of Protege? Thanks.
> Hao
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 
>
>   




More information about the protege-discussion mailing list