Package org.eclipse.wst.css.core.internal.provisional.document

Examples of org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleDeclaration


   * (non-Javadoc)
   *
   * @see org.eclipse.jface.viewers.DialogCellEditor#openDialogBox(org.eclipse.swt.widgets.Control)
   */
  protected Object openDialogBox(Control cellEditorWindow) {
    ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) _element)
        .getStyle();

    PreferenceManager manager = new PreferenceManager();
    Shell shell = cellEditorWindow.getShell();

View Full Code Here


    try {
      if (_styleProperties != null) {
        IDOMElement original = this.getOriginalElement();
        DOMStyleUtil.insertStyle(original, _styleProperties);
      } else if (_context != null) {
        ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) getOriginalElement())
            .getStyle();

        if (styleDeclaration == null) {
          getOriginalElement().setAttribute(IJSFConstants.ATTR_STYLE,
              ""); //$NON-NLS-1$
View Full Code Here

    this._element = element;
  }

  private void browseButtonPressed() {
    if (_element instanceof ElementCSSInlineStyle) {
      ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) _element)
          .getStyle();

      PreferenceManager manager = new PreferenceManager();
      Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
          .getShell();
View Full Code Here

    this._editPart = part;
    this._element = ele;
  }

  public void run() {
    ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) this._element)
        .getStyle();
    PreferenceManager manager = new PreferenceManager();
    EditPartViewer viewer = this._editPart.getViewer();
    Shell shell = viewer.getControl().getShell();
View Full Code Here

  /**
   */
  public ICSSStyleDeclaration getDeclaration() {
    try {
      ICSSStyleDeclaration inlineStyle = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) element).getStyle();
      if (inlineStyle != null) {
        if (context == null) {
          context = new CSSQueryContext();
        }
        context.overrideWithExpand(inlineStyle, 10000);
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.jface.viewers.DialogCellEditor#openDialogBox(org.eclipse.swt.widgets.Control)
   */
  protected Object openDialogBox(Control cellEditorWindow) {
    final ICSSStyleDeclaration styleDeclaration = CSSStyleDeclarationFactory.getInstance().
                getStyleDeclaration(_element, _attr.getAttributeName());
   
    final PreferenceManager manager = new PreferenceManager();
    final Shell shell = cellEditorWindow.getShell();

View Full Code Here

    this._element = ele;
    this._attribute = styleAttributeName;
  }

  public void run() {
    ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) this._element)
        .getStyle();
    PreferenceManager manager = new PreferenceManager();
    EditPartViewer viewer = this._editPart.getViewer();
    Shell shell = viewer.getControl().getShell();
View Full Code Here

    try {
      if (_styleProperties != null) {
        IDOMElement original = this.getOriginalElement();
        DOMStyleUtil.insertStyle(original, _styleAttrName, _styleProperties);
      } else if (_context != null) {
        ICSSStyleDeclaration styleDeclaration = CSSStyleDeclarationFactory.getInstance().getStyleDeclaration(getOriginalElement(), _styleAttrName);

        if (styleDeclaration == null) {
          getOriginalElement().setAttribute(_styleAttrName,
              ""); //$NON-NLS-1$
          styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) getOriginalElement())
View Full Code Here

    this._element = element;
  }

  private void browseButtonPressed() {
    if (_element instanceof ElementCSSInlineStyle) {
      ICSSStyleDeclaration styleDeclaration = (ICSSStyleDeclaration) ((ElementCSSInlineStyle) _element)
          .getStyle();

      PreferenceManager manager = new PreferenceManager();
      Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
          .getShell();
View Full Code Here

TOP

Related Classes of org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleDeclaration

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.