Exemplo n.º 1
0
  protected void cfgChanged(ICConfigurationDescription _cfgd) {

    CConfigurationStatus st = _cfgd.getConfigurationStatus();
    if (errPane != null && errMessage != null) {
      if (st.isOK()) {
        errPane.setVisible(false);
      } else {
        errMessage.setText(st.getMessage());
        errPane.setVisible(true);
      }
    }

    resd = getResDesc(_cfgd);

    if (excludeFromBuildCheck != null) {
      excludeFromBuildCheck.setEnabled(resd.canExclude(!resd.isExcluded()));
      excludeFromBuildCheck.setSelection(resd.isExcluded());
    }
    int x = CDTPropertyManager.getPagesCount();
    for (int i = 0; i < x; i++) {
      Object p = CDTPropertyManager.getPage(i);
      if (p == null || !(p instanceof AbstractPage)) continue;
      AbstractPage ap = (AbstractPage) p;
      if (ap.displayedConfig) ap.forEach(ICPropertyTab.UPDATE, getResDesc());
    }
  }
Exemplo n.º 2
0
 @Override
 public void informPages(int code, Object data) {
   for (int i = 0; i < CDTPropertyManager.getPagesCount(); i++) {
     Object p = CDTPropertyManager.getPage(i);
     if (p == null || !(p instanceof AbstractPage)) continue;
     AbstractPage ap = (AbstractPage) p;
     ap.handleMessage(code, data);
   }
 }
Exemplo n.º 3
0
  private void handleOptionSelection() {
    // Get the selection from the tree list
    if (fTree == null) return;
    IStructuredSelection selection = (IStructuredSelection) fTree.getSelection();
    ToolListElement element = (ToolListElement) selection.getFirstElement();
    if (element != null) {
      displayPageForElement(element);
    }

    ScrollBar sb = containerSC.getHorizontalBar();
    if (sb != null && sb.isVisible()) {
      settingsPageContainer.pack(true);
      containerSC.setMinSize(settingsPageContainer.getSize());
      ((AbstractPage) page).resize();
    }
  }
 /**
  * Method isCandidate returns true for: - non-CDT projects - old style Make CDT projects So new
  * model projects and old style managed projects are refused.
  */
 @Override
 public boolean isCandidate(IProject project) {
   boolean a = !AbstractPage.isCDTPrj(project);
   boolean b = ManagedBuilderCorePlugin.getDefault().isOldStyleMakeProject(project);
   return a || b;
 }
  @Override
  public void createControl(Composite parent) {
    super.createControl(parent);

    this.forEach(222, this);
  }