Examples of ILaunchConfigurationTab


Examples of org.eclipse.debug.ui.ILaunchConfigurationTab

import org.eclipse.debug.ui.ILaunchConfigurationTab;

public class CodeGeneratorLaunchConfigurationTabGroup extends AbstractLaunchConfigurationTabGroup {
 
  public void createTabs(ILaunchConfigurationDialog dialog, String mode) {
    ILaunchConfigurationTab commonTab = new CommonTab();
    ILaunchConfigurationTab settingsTab = new CodeGeneratorLaunchConfigurationTab(dialog);
   
    setTabs(new ILaunchConfigurationTab[] { settingsTab, commonTab });
  }
View Full Code Here

Examples of org.eclipse.debug.ui.ILaunchConfigurationTab

  }

  public boolean performOk() {
    try {
      for(int i = 0; i < tabs.length; i++){
        ILaunchConfigurationTab tab = tabs[i];
        tab.performApply(fWorkingCopy);
      }
      fWorkingCopy.doSave();
    } catch (CoreException e) {
      getPlugin().logSystemError(e, this);
    }
View Full Code Here

Examples of org.eclipse.debug.ui.ILaunchConfigurationTab

    ILaunchConfigurationTab[] tabs = getTabs();
    if (fCurrentTabIndex == fTabFolder.getSelectionIndex() || tabs == null || tabs.length == 0 || fCurrentTabIndex > (tabs.length - 1)) {
      return;
    }
    if (fCurrentTabIndex != -1) {
      ILaunchConfigurationTab tab = tabs[fCurrentTabIndex];
      ILaunchConfigurationWorkingCopy wc = getWorkingCopy();
      if (wc != null) {
        tab.deactivated(wc);
        getActiveTab().activated(wc);
      }
    }
    fCurrentTabIndex = fTabFolder.getSelectionIndex();
  }
View Full Code Here

Examples of org.eclipse.debug.ui.ILaunchConfigurationTab

      CTabItem item = null;
      boolean error = false;
      Image image = null;
      for (int i = 0; i < tabs.length; i++) {
        item = fTabFolder.getItem(i);
        ILaunchConfigurationTab tab = tabs[i];
        image = tab.getImage();
        item.setImage(image);
        if(!tab.isValid(getWorkingCopy())) {
          error = tab.getErrorMessage() != null;
          if(error) {
            ImageRegistry reg = getPlugin().getImageRegistry();
            String errorImageName = "error_" + tab.getName();
            Image errorImage = reg.get(errorImageName);
            if(errorImage == null){
              ImageDescriptor desc = reg.getDescriptor("over_error");
              DecorationOverlayIcon icon = new DecorationOverlayIcon(image, desc, IDecoration.TOP_LEFT);
              reg.put(errorImageName , icon);
View Full Code Here

Examples of org.eclipse.debug.ui.ILaunchConfigurationTab

//    } catch (CoreException ce) {
//      return ce.getStatus().getMessage();
//    }
// 
    String message = null;
    ILaunchConfigurationTab activeTab = getActiveTab();
    if (activeTab == null) {
      return null;
    }
    message = activeTab.getErrorMessage();
    if (message != null) {
      return message;
    }
   
    ILaunchConfigurationTab[] allTabs = getTabs();
    for (int i = 0; i < allTabs.length; i++) {
      ILaunchConfigurationTab tab = allTabs[i];
      if (tab == activeTab) {
        continue;
      }
      message = tab.getErrorMessage();
      if (message != null) {
        StringBuffer temp= new StringBuffer();
        temp.append('[');
        temp.append(removeAccelerators(tab.getName()));
        temp.append("]: "); //$NON-NLS-1$
        temp.append(message);
        return temp.toString();
      }
    }
View Full Code Here

Examples of org.eclipse.debug.ui.ILaunchConfigurationTab

      return null;
    }
   
    String message = "";
   
    ILaunchConfigurationTab tab = getActiveTab();
    if (tab != null) {
      String tabMessage = tab.getMessage();
      if (tabMessage != null) {
        message = tabMessage;
      }
    }
   
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.