org.eclipse.wst.common.frameworks.internal.WTPPlugin.start()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(103)

本文整理了Java中org.eclipse.wst.common.frameworks.internal.WTPPlugin.start()方法的一些代码示例,展示了WTPPlugin.start()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WTPPlugin.start()方法的具体详情如下:
包路径:org.eclipse.wst.common.frameworks.internal.WTPPlugin
类名称:WTPPlugin
方法名:start

WTPPlugin.start介绍

暂无

代码示例

代码示例来源:origin: org.eclipse/org.eclipse.jst.jsf.core

  1. /**
  2. * This method is called upon plug-in activation
  3. * @param context
  4. * @throws Exception
  5. */
  6. public void start(BundleContext context) throws Exception {
  7. super.start(context);
  8. }

代码示例来源:origin: org.eclipse/org.eclipse.jst.jee

  1. public void start(BundleContext context) throws Exception {
  2. super.start(context);
  3. plugin = this;
  4. }

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.webservice

  1. /**
  2. * Called once by the platform when this plugin is first loaded.
  3. *
  4. * @throws CoreException
  5. * If this plugin fails to start.
  6. */
  7. public void start(BundleContext context) throws Exception {
  8. super.start(context);
  9. }

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ejb

  1. public void start(BundleContext context) throws Exception {
  2. super.start(context);
  3. }

代码示例来源:origin: org.eclipse/org.eclipse.wst.validation

  1. /**
  2. * @see Plugin#startup()
  3. */
  4. public void start(BundleContext context) throws Exception {
  5. super.start(context);
  6. ResourcesPlugin.getWorkspace().addResourceChangeListener(EventManager.getManager(), IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE | IResourceChangeEvent.POST_BUILD | IResourceChangeEvent.PRE_BUILD | IResourceChangeEvent.POST_CHANGE);
  7. }

代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee

  1. public void start(BundleContext context) throws Exception {
  2. super.start(context);
  3. J2EEXmlDtDEntityResolver.INSTANCE = new CatalogJ2EEXmlDtDEntityResolver();
  4. DOMUtilities.setDefaultEntityResolver(J2EEXmlDtDEntityResolver.INSTANCE);
  5. //Have to do the next line immediately to fix timing problems with factory registration
  6. ArchiveInit.init(false);
  7. //ModuleMaps are the maps from modules in an ear project to the j2ee projects for the
  8. // modules
  9. org.eclipse.jst.j2ee.internal.earcreation.modulemap.ModulemapInit.init(false);
  10. ensureFactoryRegistration();
  11. ValidatorManager.setResourceUtilClass(ResourceUtil.class);
  12. IAdapterManager manager = Platform.getAdapterManager();
  13. manager.registerAdapters(new EarEditAdapterFactory(), ArtifactEditModel.class);
  14. manager.registerAdapters(new AppClientEditAdapterFactory(), ArtifactEditModel.class);
  15. manager.registerAdapters(new VirtualArchiveComponentAdapterFactory(), VirtualArchiveComponent.class );
  16. final ProjectRefactoringListener listener = new ProjectRefactoringListener();//ProjectDependencyCache.getCache());
  17. // register the project rename/delete refactoring listener
  18. ResourcesPlugin.getWorkspace().addResourceChangeListener(listener,
  19. IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_DELETE);
  20. // register the IElementChangedLister that updates the .component file in
  21. // response to .classpath changes
  22. JavaCore.addElementChangedListener(new J2EEElementChangedListener(), ElementChangedEvent.POST_CHANGE);
  23. ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEComponentClasspathUpdater.getInstance(), IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE);
  24. }

相关文章