protected void updateModel(IProgressMonitor monitor) throws CoreException {
Activator.getDefault().acquireService(IBundleProjectService.class);
IPluginBase plugin = model.getPluginBase();
IPluginExtension extension = createExtension("org.eclipse.ui.views", true); //$NON-NLS-1$
IPluginModelFactory factory = model.getPluginFactory();
String fullClassName = getStringOption(KEY_PACKAGE_NAME) + "." + getStringOption(KEY_VIEW_PART_CLASS); //$NON-NLS-1$ //$NON-NLS-2$
IPluginElement viewElement = factory.createElement(extension);
viewElement.setName("view"); //$NON-NLS-1$
viewElement.setAttribute("id", fullClassName); //$NON-NLS-1$
viewElement.setAttribute("name", getStringOption(KEY_VIEW_NAME)); //$NON-NLS-1$ //$NON-NLS-2$
viewElement.setAttribute("icon", "icons/sample.gif"); //$NON-NLS-1$ //$NON-NLS-2$
viewElement.setAttribute("class", fullClassName); //$NON-NLS-1$