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()

xiaobin0520 at gmail.com xiaobin0520 at gmail.com
Mon Oct 2 09:00:26 PDT 2006


Hi,I do not know who you are, but i want to join your project,
and i want to know somthing more about your project.

After all, I am a Java Programer.

best wishes!

----- Original Message ----- 
From: "Hao Li" <haoli at u.washington.edu>
To: <protege-discussion at lists.Stanford.EDU>
Sent: Monday, October 02, 2006 3:22 PM
Subject: [protege-discussion] bug in project plugin afterCreate()


> 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