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

Hao Li haoli at
Mon Oct 2 00:22:00 PDT 2006

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 
            int result = wizard.execute();
            if (result == Wizard.RESULT_FINISH) {
                System.err.println ("createNewProjectRequest: 
CreateProjectWizard finished!");
                _currentProject = wizard.getProject();
                _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.

More information about the protege-discussion mailing list