예제 #1
0
  private void createContentSection(
      IManagedForm managedForm, Composite parent, FormToolkit toolkit) {
    String sectionTitle;
    //		if (isFragment()) {
    //			sectionTitle = PDEUIMessages.ManifestEditor_ContentSection_ftitle;
    //		} else {
    //			sectionTitle = PDEUIMessages.ManifestEditor_ContentSection_title;
    //		}
    sectionTitle = PDEUIMessages.MonitorEditor_ContentSection_title;

    Section section = createStaticSection(toolkit, parent, sectionTitle);

    Composite container = createStaticSectionClient(toolkit, section);

    FormText text =
        createClient(
            container,
            isFragment() ? PDEUIMessages.OverviewPage_fContent : PDEUIMessages.OverviewPage_content,
            toolkit);
    PDELabelProvider lp = PDEPlugin.getDefault().getLabelProvider();
    text.setImage(
        "page", lp.get(PDEPluginImages.DESC_PAGE_OBJ, SharedLabelProvider.F_EDIT)); // $NON-NLS-1$

    if (!isBundle() && isEditable()) {
      String content;
      if (isFragment()) {
        content = PDEUIMessages.OverviewPage_fOsgi;
      } else {
        content = PDEUIMessages.OverviewPage_osgi;
      }
      text = createClient(container, content, toolkit);
    }
    section.setClient(container);
  }
예제 #2
0
  private void createTestingSection(
      IManagedForm managedForm, Composite parent, FormToolkit toolkit) {
    Section section =
        createStaticSection(toolkit, parent, PDEUIMessages.ManifestEditor_TestingSection_title);
    PDELabelProvider lp = PDEPlugin.getDefault().getLabelProvider();

    Composite container = createStaticSectionClient(toolkit, section);

    String prefixText =
        (!((MonitorEditor) getEditor()).showExtensionTabs())
            ? PDEUIMessages.OverviewPage_OSGiTesting
            : isFragment()
                ? PDEUIMessages.OverviewPage_fTesting
                : PDEUIMessages.OverviewPage_testing;
    FormText text =
        createClient(container, getLauncherText(getLauncherHelper().isOSGi(), prefixText), toolkit);
    text.setImage("run", lp.get(PDEPluginImages.DESC_RUN_EXC)); // $NON-NLS-1$
    text.setImage("debug", lp.get(PDEPluginImages.DESC_DEBUG_EXC)); // $NON-NLS-1$
    text.setImage("profile", lp.get(PDEPluginImages.DESC_PROFILE_EXC)); // $NON-NLS-1$
    section.setClient(container);
  }
예제 #3
0
 protected void createFormContent(final IManagedForm managedForm) {
   super.createFormContent(managedForm);
   ScrolledForm form = managedForm.getForm();
   FormToolkit toolkit = managedForm.getToolkit();
   form.setText(PDEUIMessages.OverviewPage_title);
   PDELabelProvider labelProvider = PDEPlugin.getDefault().getLabelProvider();
   ImageDescriptor description = PDEPluginImages.DESC_PRODUCT_DEFINITION;
   form.setImage(labelProvider.get(description));
   fillBody(managedForm, toolkit);
   IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
   String contextId = WARProductConstants.HELP_CONTEXT_OVERVIEW_PAGE;
   helpSystem.setHelp(form.getBody(), contextId);
 }
예제 #4
0
  private void createExtensionSection(
      IManagedForm managedForm, Composite parent, FormToolkit toolkit) {
    String sectionTitle = PDEUIMessages.ManifestEditor_ExtensionSection_title;
    Section section = createStaticSection(toolkit, parent, sectionTitle);

    Composite container = createStaticSectionClient(toolkit, section);

    FormText text =
        createClient(
            container,
            isFragment()
                ? PDEUIMessages.OverviewPage_fExtensionContent
                : PDEUIMessages.OverviewPage_extensionContent,
            toolkit);
    PDELabelProvider lp = PDEPlugin.getDefault().getLabelProvider();
    text.setImage(
        "page", lp.get(PDEPluginImages.DESC_PAGE_OBJ, SharedLabelProvider.F_EDIT)); // $NON-NLS-1$

    section.setClient(container);
  }