Package org.eclipse.ui.internal.cheatsheets.data

Examples of org.eclipse.ui.internal.cheatsheets.data.SubItem


  private AbstractExecutable getExecutable(int index) {
    if (item.getSubItems() != null && item.getSubItems().size()>0 && listOfSubItemCompositeHolders != null) {
      SubItemCompositeHolder s = (SubItemCompositeHolder) listOfSubItemCompositeHolders.get(index);
      if(s != null) {
        SubItem subItem = s.getSubItem();
        AbstractExecutable executable = subItem.getExecutable();
        if(executable == null) {
          if(subItem.getPerformWhen() != null){
            executable = subItem.getPerformWhen().getSelectedExecutable();
          }
        }
        return executable;
      }
    }
View Full Code Here


          CheatSheetPlugin.getPlugin().getLog().log(status);
          org.eclipse.jface.dialogs.ErrorDialog.openError(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), null, null, status);
          break;
        }

        SubItem sub = (SubItem)repeatedSubItem.getSubItems().get(0);
       
        StringTokenizer tokenizer = new StringTokenizer(values, ","); //$NON-NLS-1$
        while(tokenizer.hasMoreTokens()) {
          String value = tokenizer.nextToken();
          createSubItemButtons(sub, value, i++);
        }
       
        // Decrement the counter by because the outer loop increments it prior to the next iteration
        i--;
      } else if( subItem instanceof ConditionalSubItem ) {
        //Get the sub item to add.
        ConditionalSubItem sub = (ConditionalSubItem)subItem;

        sub.setSelectedSubItem(viewer.getManager());
        SubItem selectedSubItem = sub.getSelectedSubItem();

        if(selectedSubItem == null) {
          String message = NLS.bind(Messages.ERROR_CONDITIONAL_DATA_MISSING_LOG, (new Object[] {sub.getCondition(), getItem().getTitle()}));
          IStatus status = new Status(IStatus.ERROR, ICheatSheetResource.CHEAT_SHEET_PLUGIN_ID, IStatus.OK, message, null);
          CheatSheetPlugin.getPlugin().getLog().log(status);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.cheatsheets.data.SubItem

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.