Package org.eclipse.php.internal.ui.wizards

Examples of org.eclipse.php.internal.ui.wizards.CompositeFragment


    tabs = SWTUtil.createTabFolder(parent);
    ICompositeFragmentFactory[] factories = WizardFragmentsFactoryRegistry
        .getFragmentsFactories(FRAGMENT_GROUP_ID);
    for (ICompositeFragmentFactory element : factories) {
      CTabItem tabItem = new CTabItem(tabs, SWT.BORDER);
      CompositeFragment fragment = element.createComposite(tabs, this);
      fragment.setData(server);
      tabItem.setText(fragment.getDisplayName());
      tabItem.setControl(fragment);
      tabItem.setData(fragment.getId());
      runtimeComposites.add(fragment);
    }

    getShell().setText(
        PHPServerUIMessages.getString("ServerEditDialog.editServer")); //$NON-NLS-1$
View Full Code Here


      // Do nothing
    }

    public void widgetSelected(SelectionEvent e) {
      CTabItem item = (CTabItem) e.item;
      CompositeFragment fragment = (CompositeFragment) item.getControl();
      setTitle(fragment.getTitle());
      fragment.validate();
    }
View Full Code Here

    CTabFolder tabs = SWTUtil.createTabFolder(parent);
    ICompositeFragmentFactory[] factories = WizardFragmentsFactoryRegistry
        .getFragmentsFactories(FRAGMENT_GROUP_ID);
    for (ICompositeFragmentFactory element : factories) {
      CTabItem tabItem = new CTabItem(tabs, SWT.BORDER);
      CompositeFragment fragment = element.createComposite(tabs, this);
      fragment.setData(phpExeItem);
      if (fragment instanceof IPHPExeCompositeFragment) {
        ((IPHPExeCompositeFragment) fragment)
            .setExistingItems(existingItems);
      }
      tabItem.setText(fragment.getDisplayName());
      tabItem.setControl(fragment);
      runtimeComposites.add(fragment);
    }
    getShell().setText(Messages.PHPExeEditDialog_1);
    tabs.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        CTabItem item = (CTabItem) e.item;
        CompositeFragment fragment = (CompositeFragment) item
            .getControl();
        setTitle(fragment.getTitle());
        fragment.validate();
      }
    });
    return tabs;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.wizards.CompositeFragment

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.