@Override
protected IEditorPart createPage( final String pageDefinitionId )
{
if( PAGE_CALENDAR.equals( pageDefinitionId ) )
{
this.calendarDesignPage = new MasterDetailsEditorPage( this, getModelElement(), getDefinition( pageDefinitionId ) );
return this.calendarDesignPage;
}
else if ( PAGE_CONTACTS.equals( pageDefinitionId ) )
{
getModelElement(); // make sure createModel() has been called
this.contactsDesignPage = new MasterDetailsEditorPage( this, this.modelContacts, getDefinition( pageDefinitionId ) );
return this.contactsDesignPage;
}
return null;
}