Package org.eclipse.ui.intro.config

Examples of org.eclipse.ui.intro.config.IntroConfigurer


        return null;
      String pageId = path.substring(0, path.length()-2);
      IntroModelRoot modelRoot = getModelRoot();
      if (modelRoot==null)
        return null;
      IntroConfigurer configurer = modelRoot.getConfigurer();
      if (configurer==null)
        return null;
      String extensionId = extensionContent.getId();
      // if this is a replace, take the mixin style as what is being replaced
      if (extensionContent.getExtensionType() == IntroExtensionContent.TYPE_REPLACEMENT) {
        IPath ipath = new Path(extensionContent.getPath());
        String s2 = ipath.segment(1);
        if (s2 != null && s2.startsWith("@") && s2.length() > 1) { //$NON-NLS-1$
          extensionId = s2.substring(1);
        }
      }
       return configurer.getMixinStyle(pageId, extensionId);
    }
View Full Code Here


     *
     */
    private void createShortcuts() {
        shortcuts = new ArrayList();
        IntroModelRoot model = getModelRoot();
        IntroConfigurer configurer = model!=null?model.getConfigurer():null;
       
        String cvalue = getCfgElement().getAttribute("computed"); //$NON-NLS-1$
        boolean computed = cvalue!=null && cvalue.equalsIgnoreCase("true"); //$NON-NLS-1$
       
        if (computed && configurer!=null) {
          IntroElement [] children = configurer.getLaunchBarShortcuts();
          for (int i=0; i<children.length; i++) {
            IntroLaunchBarShortcut shortcut = new IntroLaunchBarShortcut(getCfgElement(), children[i]);
            shortcuts.add(shortcut);
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.intro.config.IntroConfigurer

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.