Examples of ConditionalSubItem


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

       
        // 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);

          status = new Status(IStatus.ERROR, ICheatSheetResource.CHEAT_SHEET_PLUGIN_ID, IStatus.OK, Messages.ERROR_DATA_MISSING, null);
          CheatSheetPlugin.getPlugin().getLog().log(status);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.