Package org.eclipse.ui.internal.cheatsheets.registry.CheatSheetRegistryReader

Examples of org.eclipse.ui.internal.cheatsheets.registry.CheatSheetRegistryReader.TaskExplorerNode


        Menu subMenu = new Menu(menu);
        menuItem.setMenu(subMenu);
       
        for (int i = 0; i < explorerIds.length; i++) {
          final String id = explorerIds[i];
          TaskExplorerNode node = CheatSheetRegistryReader.getInstance().findTaskExplorer(id);
          boolean isCurrentExplorer = id.equals(currentExplorer.getId());
          int style = isCurrentExplorer ? SWT.RADIO: SWT.PUSH;
          MenuItem item = new MenuItem(subMenu, style);
        item.setText(node.getName());
        item.setSelection(isCurrentExplorer);
        item.setImage(TaskExplorerManager.getInstance().getImage(id));
        item.addSelectionListener(new SelectionAdapter() {
          public void widgetSelected(SelectionEvent e) {
            setCurrentExplorerFromId(id);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.cheatsheets.registry.CheatSheetRegistryReader.TaskExplorerNode

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.