Examples of IElementEdit


Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

        {
            tagName = ((ITagDropSourceData)_dropSourceData).getTagName();
        }
        final TagIdentifier tagId = TagIdentifierFactory.createJSPTagWrapper(
                _dropSourceData.getNamespace(), tagName);
        final IElementEdit elementEdit = ElementEditFactoryRegistry.getInstance()
                .createElementEdit(tagId);

        IStatus status = Status.OK_STATUS;
        if (elementEdit != null)
        {
            final IDropCustomizer customizer = elementEdit.getDropCustomizer(_dropSourceData);

            if (customizer != null)
            {
                final IFile file = getFile(_domDocument);
                if (file != null)
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

    // start from the parent of part
    while (part.getParent() instanceof ElementEditPart) {
      ElementEditPart elementEditPart = (ElementEditPart) part
          .getParent();

      IElementEdit elementEdit = elementEditPart.getElementEdit();
      if (elementEdit != null) {
        boolean filled = elementEdit.fillContainerContextMenu(menu,
            elementEditPart, original, selection);
        if (filled) {
          break;
        }
      }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

    IDOMElement ele = (IDOMElement) part.getIDOMNode();
        addPositionRelativeMenu(menu, part, ele);
    addStylelMenu(menu, part, ele);

    // next add element special actions
    IElementEdit elementEdit = part.getElementEdit();
    if (elementEdit != null) {
      elementEdit.fillContextMenu(menu, ele);
    }
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

   *
   * @see org.eclipse.jst.pagedesigner.parts.NodeEditPart#createEditPolicies()
   */
  protected void createEditPolicies() {
    super.createEditPolicies();
    IElementEdit support = getElementEdit();
    if (support != null) {
      support.createEditPolicies(this);
    }

    // if ElementEdit didn't install special SELECTION_FEEDBACK_ROLE policy,
    // then default
    if (this.getEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE) == null) {
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

   * called by the
   * @param recursive
   *
   */
  public void refreshModelChange(boolean recursive) {
    IElementEdit support = getElementEdit();
    if (support == null
        || !support.handleModelChange(_elementNode, this, recursive)) {
      this.refresh(recursive);
    }
  }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

   */
  public boolean isResizable() {
    if (!_tagConverter.isVisualByHTML()) {
      return false;
    }
    IElementEdit edit = this.getElementEdit();
    if (edit != null) {
      return edit.isResizable(this._elementNode);
    }
        CMElementDeclaration decl = CMUtil
            .getElementDeclaration(this._elementNode);
        if (decl != null) {
          // XXX: default implementation, if this element support "style"
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

        {
            // TODO: only supporting single item drop currently
            TagIdentifier tagIdentifier =
                (TagIdentifier) dropData.getTagIdentifiers().get(0);

            IElementEdit elementEdit =
                ElementEditFactoryRegistry.getInstance()
                    .createElementEdit(tagIdentifier);

            // element edit not guaranteed to exist
            if (elementEdit != null)
            {
                IDropLocationStrategy strategy =
                    elementEdit.getDropRequestorLocationStrategy(tagIdentifier, getHost().getViewer());
               
                if (strategy != null)
                {
                    return strategy;
                }
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.elementedit.IElementEdit

     * @return ITagCreator
     */
    public ITagCreator createTagCreator(final TagIdentifier tagId)
    {

        IElementEdit elementEdit = ElementEditFactoryRegistry.getInstance()
                .createElementEdit(tagId);

        if (elementEdit != null)
        {
            // for (ITagCreatorFactory factory : factories)
            // {
            ITagCreator tagCreator = null;
            try
            {
                tagCreator = elementEdit.getTagCreator(tagId);
            }
            catch (Exception e)
            {
                PDPlugin.getLogger(getClass()).error(
                        "Error.ProblemLoadingTagCreatorFactory", //$NON-NLS-1$
                        elementEdit.getClass().toString(), e);
            }

            if (tagCreator != null)
            {
                if (tagCreator instanceof AbstractTagCreator)
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.