Package org.eclipse.pde.core.plugin

Examples of org.eclipse.pde.core.plugin.IPluginModelFactory


  }

  private void createViewExtension() throws CoreException {
    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$
View Full Code Here


  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$
View Full Code Here

TOP

Related Classes of org.eclipse.pde.core.plugin.IPluginModelFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.