Package org.eclipse.jst.pagedesigner.itemcreation.command

Examples of org.eclipse.jst.pagedesigner.itemcreation.command.ContainerCreationCommand


        position = BodyHelper.adjustInsertPosition
            (_creationData.getUri(), _creationData.getTagName(), position);
       
        //position = getContainerCreationCommands(position);
        ContainerCreationCommand command = getContainerCreationCommand(position);
       
        if (command != null)
        {
            command.execute();
            Collection<IDOMPosition>  collection = command.getResult();
           
            if (collection.size()==1)
            {
                position = collection.iterator().next();
            }
View Full Code Here


     * @param position
     * @return the default container creation command for a JSF tag
     */
    protected ContainerCreationCommand getJSFContainerCommand(final IDOMPosition position)
    {
        ContainerCreationCommand command = null;
         
        if (_creationData.isJSFViewTagRequired())
            command = new SingletonContainerCreationCommand(position, IJSFConstants.TAG_IDENTIFIER_VIEW, _creationData.getTagId());
       
        if (_creationData.isHTMLFormRequired())
        {
          final ContainerCreationCommand htmlFormCommand = new TagContainerCreationCommand(position, IJSFConstants.TAG_IDENTIFIER_FORM, _creationData.getTagId());
          if (command != null)
            command.chain(htmlFormCommand);
          else
            command = htmlFormCommand;
        }
View Full Code Here

    {
        final IAdaptable adaptable = _creationData.getDropCustomizationData();
        if (adaptable != null)
        {
            final ICustomizationData data = (ICustomizationData) adaptable.getAdapter(ICustomizationData.class);
            ContainerCreationCommand command = null;
            ParentData parentData = data.getParentData();
           
            boolean isFirstParent = true;
            for (final ICustomizationData parentCustomizationData : parentData.getParentCustomizationData())
            {
                TagIdentifier parentTagIdentifier = parentCustomizationData.getTagIdentifier();
               
                if (isFirstParent)
                {
                    command = new UserCustomizedContainerCreationCommand(position, parentTagIdentifier, _creationData.getTagId(), parentCustomizationData);
                    isFirstParent = false;
                }
                else
                {
                    command.chain(new UserCustomizedContainerCreationCommand(position, parentTagIdentifier, _creationData.getTagId(), parentCustomizationData));
                }
            }
            return command;
        }
        return null;
View Full Code Here

TOP

Related Classes of org.eclipse.jst.pagedesigner.itemcreation.command.ContainerCreationCommand

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.