Examples of ISemanticHighlighting


Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

   * Load the semantic highlightings defined for this content type.
   */
  private void loadSemanticHighlightings() {
    List semantics = new ArrayList(0);
   
    ISemanticHighlighting highlighting = null;
    String styleKey = null;
    IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(SSEUIPlugin.ID, SEMANTIC_HIGHLIGHTING_EXTENSION_POINT);
   
    IContentType contentType = Platform.getContentTypeManager().getContentType(fContentTypeId);
   
View Full Code Here

Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

      return;
   
    boolean refreshRequired = false;
   
    for (int i = 0; i < fHighlightings.length; i++) {
      ISemanticHighlighting highlighting = fHighlightings[i];

      if (fHighlightingStyleStringKeys[i] != null) {
        if (property.equals(fHighlightingStyleStringKeys[i])) {
          adaptToStyleChange(fHighlightingStyles[i], event);
          fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
          refreshRequired = true;
          continue;
        }
      }

      if (property.equals(highlighting.getBoldPreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, SWT.BOLD);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getColorPreferenceKey())) {
        adaptToTextForegroundChange(fHighlightingStyles[i], event);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getEnabledPreferenceKey())) {
        adaptToEnablementChange(fHighlightingStyles[i], event);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getItalicPreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, SWT.ITALIC);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getStrikethroughPreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, TextAttribute.STRIKETHROUGH);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getUnderlinePreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, TextAttribute.UNDERLINE);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

   * Load the semantic highlightings defined for this content type.
   */
  private void loadSemanticHighlightings() {
    List semantics = new ArrayList(0);
   
    ISemanticHighlighting highlighting = null;
    String styleKey = null;
    IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(SSEUIPlugin.ID, SEMANTIC_HIGHLIGHTING_EXTENSION_POINT);
   
    IContentType contentType = Platform.getContentTypeManager().getContentType(fContentTypeId);
   
View Full Code Here

Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

      return;
   
    boolean refreshRequired = false;
   
    for (int i = 0; i < fHighlightings.length; i++) {
      ISemanticHighlighting highlighting = fHighlightings[i];

      if (fHighlightingStyleStringKeys[i] != null) {
        if (property.equals(fHighlightingStyleStringKeys[i])) {
          adaptToStyleChange(fHighlightingStyles[i], event);
          fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
          refreshRequired = true;
          continue;
        }
      }

      if (property.equals(highlighting.getBoldPreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, SWT.BOLD);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getColorPreferenceKey())) {
        adaptToTextForegroundChange(fHighlightingStyles[i], event);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getEnabledPreferenceKey())) {
        adaptToEnablementChange(fHighlightingStyles[i], event);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getItalicPreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, SWT.ITALIC);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getStrikethroughPreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, TextAttribute.STRIKETHROUGH);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
     
      if (property.equals(highlighting.getUnderlinePreferenceKey())) {
        adaptToTextStyleChange(fHighlightingStyles[i], event, TextAttribute.UNDERLINE);
        fPresenter.highlightingStyleChanged(fHighlightingStyles[i]);
        refreshRequired = true;
        continue;
      }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

      for (Iterator iterator = SemanticHighlightingManager.getInstance()
          .getSemanticHighlightings().keySet().iterator(); iterator
          .hasNext();) {
        String type = (String) iterator.next();
        ISemanticHighlighting highlighting = SemanticHighlightingManager
            .getInstance().getSemanticHighlightings().get(type);
        HighlightingStyle highlightingStyle = highlightingStyleMap
            .get(type);
        if (highlightingStyle.isEnabled()) {
          Position[] positions = highlightingPositionMap.get(type);
View Full Code Here

Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

    highlightingStyleMap = new HashMap<String, PHPSyntaxColoringPage.HighlightingStyle>();
    for (Iterator iterator = SemanticHighlightingManager.getInstance()
        .getSemanticHighlightings().keySet().iterator(); iterator
        .hasNext();) {
      String type = (String) iterator.next();
      ISemanticHighlighting highlighting = SemanticHighlightingManager
          .getInstance().getSemanticHighlightings().get(type);
      highlightingStyleMap.put(type,
          createHighlightingStyle(highlighting));
    }
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

      return;
    for (Iterator iterator = SemanticHighlightingManager.getInstance()
        .getSemanticHighlightings().keySet().iterator(); iterator
        .hasNext();) {
      String type = (String) iterator.next();
      ISemanticHighlighting highlighting = SemanticHighlightingManager
          .getInstance().getSemanticHighlightings().get(type);
      HighlightingStyle style = highlightingStyleMap.get(type);
      if (property.equals(highlighting.getBoldPreferenceKey())) {
        adaptToTextStyleChange(style, event, SWT.BOLD);
      } else if (property.equals(highlighting.getColorPreferenceKey())) {
        adaptToTextForegroundChange(style, event);
      } else if ((highlighting instanceof ISemanticHighlightingExtension2)
          && property
              .equals(((ISemanticHighlightingExtension2) highlighting)
                  .getBackgroundColorPreferenceKey())) {
        adaptToTextBackgroundChange(style, event);
      } else if (property.equals(highlighting.getEnabledPreferenceKey())) {
        adaptToEnablementChange(style, event);
      } else if (property.equals(highlighting.getItalicPreferenceKey())) {
        adaptToTextStyleChange(style, event, SWT.ITALIC);
      } else if (property.equals(highlighting
          .getStrikethroughPreferenceKey())) {
        adaptToTextStyleChange(style, event,
            TextAttribute.STRIKETHROUGH);
      } else if (property
          .equals(highlighting.getUnderlinePreferenceKey())) {
        adaptToTextStyleChange(style, event, TextAttribute.UNDERLINE);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.ISemanticHighlighting

        for (Iterator iterator = SemanticHighlightingManager.getInstance()
                .getSemanticHighlightings().keySet().iterator(); iterator
                .hasNext();) {
            String type = (String) iterator.next();
            ISemanticHighlighting highlighting = SemanticHighlightingManager
                    .getInstance().getSemanticHighlightings().get(type);
            HighlightingStyle style = highlightingStyleMap.get(type);
            if (property.equals(highlighting.getBoldPreferenceKey())) {
                adaptToTextStyleChange(style, event, SWT.BOLD);
            } else if (property.equals(highlighting.getColorPreferenceKey())) {
                adaptToTextForegroundChange(style, event);
            } else if ((highlighting instanceof ISemanticHighlightingExtension2)
                    && property
                            .equals(((ISemanticHighlightingExtension2) highlighting)
                                    .getBackgroundColorPreferenceKey())) {
                adaptToTextBackgroundChange(style, event);
            } else if (property.equals(highlighting.getEnabledPreferenceKey())) {
                adaptToEnablementChange(style, event);
            } else if (property.equals(highlighting.getItalicPreferenceKey())) {
                adaptToTextStyleChange(style, event, SWT.ITALIC);
            } else if (property.equals(highlighting
                    .getStrikethroughPreferenceKey())) {
                adaptToTextStyleChange(style, event,
                        TextAttribute.STRIKETHROUGH);
            } else if (property
                    .equals(highlighting.getUnderlinePreferenceKey())) {
                adaptToTextStyleChange(style, event, TextAttribute.UNDERLINE);
            }
        }
    }
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.