Package org.eclipse.wst.sse.ui.internal.contentoutline

Examples of org.eclipse.wst.sse.ui.internal.contentoutline.PropertyChangeUpdateActionContributionItem


   * @param viewer
   *            the TreeViewer associated with this configuration
   * @return menu contributions
   */
  protected IContributionItem[] createMenuContributions(TreeViewer viewer) {
    IContributionItem toggleLinkItem = new PropertyChangeUpdateActionContributionItem(new ToggleLinkAction(getPreferenceStore(), OUTLINE_LINK_PREF));
    IContributionItem[] items = new IContributionItem[]{toggleLinkItem};
    return items;
  }
View Full Code Here


    super();
  }

  protected IContributionItem[] createMenuContributions(TreeViewer viewer) {
    IContributionItem[] items;
    IContributionItem showValueItem = new PropertyChangeUpdateActionContributionItem(new ToggleShowValueAction(getPreferenceStore(), OUTLINE_SHOW_VALUE_PREF, viewer));

    items = super.createMenuContributions(viewer);
    if (items == null) {
      items = new IContributionItem[]{showValueItem};
    }
View Full Code Here

   * @param viewer
   *            the TreeViewer associated with this configuration
   * @return menu contributions
   */
  protected IContributionItem[] createMenuContributions(TreeViewer viewer) {
    IContributionItem toggleLinkItem = new PropertyChangeUpdateActionContributionItem(new ToggleLinkAction(getPreferenceStore(), OUTLINE_LINK_PREF));
    IContributionItem[] items = new IContributionItem[]{toggleLinkItem};
    return items;
  }
View Full Code Here

   * @see org.eclipse.wst.sse.ui.views.contentoutline.ContentOutlineConfiguration#createMenuContributions(org.eclipse.jface.viewers.TreeViewer)
   */
  protected IContributionItem[] createMenuContributions(TreeViewer viewer) {
    IContributionItem[] items;
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=88444
    IContributionItem showAttributeItem = new PropertyChangeUpdateActionContributionItem(new ToggleShowAttributeAction(getPreferenceStore(), OUTLINE_SHOW_ATTRIBUTE_PREF, viewer));

    items = super.createMenuContributions(viewer);
    if (items == null) {
      items = new IContributionItem[]{showAttributeItem};
    }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.internal.contentoutline.PropertyChangeUpdateActionContributionItem

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.