Examples of addPart()


Examples of org.eclipse.help.ui.internal.views.ReusableHelpPart.addPart()

      ReusableHelpPart helpPart = tray.getHelpPart();
      IHelpPartPage page = helpPart.createPage(CheatSheetHelpPart.ID, null, null);
      page.setVerticalSpacing(0);
      page.setHorizontalMargin(0);
      CheatSheetElement contentElement = CheatSheetRegistryReader.getInstance().findCheatSheet(id);
      helpPart.addPart(CheatSheetHelpPart.ID, new CheatSheetHelpPart(helpPart.getForm().getForm().getBody(), helpPart.getForm().getToolkit(), page.getToolBarManager(), contentElement, new DefaultStateManager()));
      page.addPart(CheatSheetHelpPart.ID, true);
      helpPart.addPage(page);
      helpPart.showPage(CheatSheetHelpPart.ID);
    }
    else {
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation.addPart()

        StackPresentation presentation = factory.createViewPresentation(
                newClientComposite, site);

        site.setPresentation(presentation);
        site.setPresentationState(IStackPresentationSite.STATE_RESTORED);
        presentation.addPart(currentPane, null);
        presentation.selectPart(currentPane);
        presentation.setActive(StackPresentation.AS_ACTIVE_FOCUS);
        presentation.setVisible(true);

        boolean horizontalResize = Geometry.isHorizontal(side);
View Full Code Here

Examples of org.eclipse.wst.wsdl.Message.addPart()

                Message faultMessage = WSDLFactory.eINSTANCE.createMessage();
                //faultMessage.setQName(new QName(operation.getEnclosingDefinition().getTargetNamespace(), complexType.getName() + "Message"));
                faultMessage.setQName(new QName(operation.getEnclosingDefinition().getTargetNamespace(), complexType.getName()));
                //faultMessage.setQName(new QName(complexType.getName()));
                faultMessage.addPart(part);
                faultMessage.setUndefined(false);
                wsdlDef.addMessage(faultMessage);
               
                Fault fault = WSDLFactory.eINSTANCE.createFault();
                fault.setName(complexType.getName());
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.log.MimeParts.addPart()

        return null;
      }
      }
      int size = parts.size();
      for (int i = size-1; i>=0; i--)
         mimeParts.addPart((MimePart)parts.get(i));
    }
    return mimeParts;
  }

  public static String toXMLString(MimeParts mimeParts)
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.log.impl.MimePartsImpl.addPart()

        return null;
      }
      }
      int size = parts.size();
      for (int i = size-1; i>=0; i--)
         mimeParts.addPart((MimePart)parts.get(i));
    }
    return mimeParts;
  }

  public static String toXMLString(MimeParts mimeParts)
View Full Code Here

Examples of org.hibernate.validator.referenceguide.chapter02.typeargument.Car.addPart()

  }

  @Test
  public void validateListTypeArgumentConstraint() {
    Car car = new Car();
    car.addPart( "Wheel" );
    car.addPart( null );

    Set<ConstraintViolation<Car>> constraintViolations = validator.validate( car );

    assertEquals( 1, constraintViolations.size() );
View Full Code Here

Examples of org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataOutput.addPart()

    @GET
    @Produces("multipart/related")
    public MultipartFormDataOutput get() {
        MultipartFormDataOutput output = new MultipartFormDataOutput();
        output.addPart("Hello", MediaType.TEXT_PLAIN_TYPE);
        output.addPart("World", MediaType.TEXT_PLAIN_TYPE);
        return output;
    }
}
View Full Code Here

Examples of org.jboss.resteasy.plugins.providers.multipart.MultipartOutput.addPart()

   public void testMultipartOutput() throws Exception
   {
      MultipartClient client = ProxyFactory.create(MultipartClient.class,
              generateBaseUrl());
      MultipartOutput output = new MultipartOutput();
      output.addPart(new Customer("bill"), MediaType.APPLICATION_XML_TYPE);
      output.addPart(new Customer("monica"), MediaType.APPLICATION_XML_TYPE);
      client.putMixed(output);
   }

   @Test
View Full Code Here

Examples of org.jboss.resteasy.plugins.providers.multipart.MultipartOutput.addPart()

   {
      MultipartClient client = ProxyFactory.create(MultipartClient.class,
              generateBaseUrl());
      MultipartOutput output = new MultipartOutput();
      output.addPart(new Customer("bill"), MediaType.APPLICATION_XML_TYPE);
      output.addPart(new Customer("monica"), MediaType.APPLICATION_XML_TYPE);
      client.putMixed(output);
   }

   @Test
   public void testMultipartFormDataOutput() throws Exception
View Full Code Here

Examples of org.jboss.resteasy.plugins.providers.multipart.MultipartRelatedOutput.addPart()

      output.setStartInfo("text/xml");

      Map<String, String> mediaTypeParameters = new LinkedHashMap<String, String>();
      mediaTypeParameters.put("charset", "UTF-8");
      mediaTypeParameters.put("type", "text/xml");
      output
              .addPart(
                      "<m:data xmlns:m='http://example.org/stuff'>"
                              + "<m:photo><xop:Include xmlns:xop='http://www.w3.org/2004/08/xop/include' href='cid:http://example.org/me.png'/></m:photo>"
                              + "<m:sig><xop:Include xmlns:xop='http://www.w3.org/2004/08/xop/include' href='cid:http://example.org/my.hsh'/></m:sig>"
                              + "</m:data>", new MediaType("application",
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.