Package org.eclipse.jst.pagedesigner.commands

Examples of org.eclipse.jst.pagedesigner.commands.CreateItemCommand


    private boolean customizeAndCheckExecute(final Command command)
    {
        if (command instanceof CreateItemCommand)
        {
            final ItemCreationRequest request = (ItemCreationRequest) getCreateRequest();
            final CreateItemCommand createCommand = (CreateItemCommand) command;
            final IStatus status  =
                new DropCustomizationController(createCommand, request.getTagCreationProvider(), createCommand.getDocument(), createCommand.getPosition())
                    .performCustomization();
           
            return status.getSeverity() == IStatus.OK;
        }
        // don't block a drop if the command is not customizable
View Full Code Here


      // to be updated in the position so that new node is
      // appended to the list of children.
      Node node = domposition.getContainerNode();
      domposition = new DOMPosition(node, node.getChildNodes().getLength());

      return new CreateItemCommand(
          PDPlugin
              .getResourceString("ItemCreationEditPolicy.CommandLabel.CreateItem"),//$NON-NLS-1$
          getViewer(getHost()).getModel(), domposition, r.getTagCreationProvider());
    }
    return null;
View Full Code Here

            IDOMPosition domposition = DOMPositionHelper.toDOMPosition(position);
      if (domposition == null) {
        return null;
      }
//      TagToolCreationAdapter tagToolCreationAdapter = new TagToolCreationAdapter(r.getTagToolPaletteEntry(), getViewer(getHost()).getModel());
      return new CreateItemCommand(
          PDPlugin
              .getResourceString("ItemCreationEditPolicy.CommandLabel.CreateItem"),//$NON-NLS-1$
          getViewer(getHost()).getModel(), domposition, r.getTagCreationProvider());
    }
    return null;
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.commands.CreateItemCommand

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.