Examples of createElement()


Examples of org.eclipse.pde.core.plugin.IPluginModelFactory.createElement()

    IPluginBase plugin = model.getPluginBase();
    IPluginExtension extension = createExtension("org.eclipse.ui.views", true); //$NON-NLS-1$
    IPluginModelFactory factory = model.getPluginFactory();
   
    String fullClassName = getStringOption(KEY_PACKAGE_NAME) + "." + getStringOption(KEY_VIEW_PART_CLASS); //$NON-NLS-1$ //$NON-NLS-2$
    IPluginElement viewElement = factory.createElement(extension);
    viewElement.setName("view"); //$NON-NLS-1$
    viewElement.setAttribute("id", fullClassName); //$NON-NLS-1$
    viewElement.setAttribute("name", getStringOption(KEY_VIEW_NAME)); //$NON-NLS-1$ //$NON-NLS-2$
    viewElement.setAttribute("icon", "icons/sample.gif"); //$NON-NLS-1$ //$NON-NLS-2$
    viewElement.setAttribute("class", fullClassName); //$NON-NLS-1$

Examples of org.eclipse.ui.IElementFactory.createElement()

        IElementFactory factory = PlatformUI.getWorkbench().getElementFactory(
                factoryId);

        if (factory != null) {
            IAdaptable adaptable = factory.createElement(memento);
            if (adaptable != null && (adaptable instanceof IEditorInput)) {
                return new EditorInputData(editorId, (IEditorInput) adaptable);
            }
        }

Examples of org.eclipse.wst.xml.core.internal.commentelement.impl.CommentElementConfiguration.createElement()

        continue;
      }
      String[] prefixes = config.getPrefix();
      for (int iPrefix = 0; iPrefix < prefixes.length; iPrefix++) {
        if (trimmedData.startsWith(prefixes[iPrefix])) {
          return config.createElement(this.model.getDocument(), data, isJSPTag);
        }
      }
    }
    ModelParserAdapter adapter = getParserAdapter();
    if (adapter != null) {

Examples of org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument.createElement()

        Element root  = doc.getDocumentElement();
        Element pages = null;
        NodeList list = doc.getElementsByTagName(ClickPlugin.TAG_PAGES);
       
        if(list.getLength()==0){
          pages = doc.createElement(ClickPlugin.TAG_PAGES);
          boolean inserted = false;
          NodeList children = root.getChildNodes();
          for(int i=0;i<children.getLength();i++){
            Node node = children.item(i);
            if(node instanceof Element){

Examples of org.exist.memtree.DocumentImpl.createElement()

      if (outputURL == null || outputURL.equals("")) {
        Assert.fail("expected error: " + expectedError);
      } else {
        //workaround
            Document doc = new DocumentImpl(context, false);
            Element outputFile = doc.createElement("outputFile");
            outputFile.setAttribute("compare", "Fragment");
            outputFile.setTextContent(outputURL);
 
        if (compareResult("", XSLTS_folder+"/ExpectedTestResults/", outputFile, result)) {
          ok = true;

Examples of org.fao.geonet.kernel.EditLib.createElement()

        parent.removeContent(me);
       
        //--- existing geonet child element not present so create it and insert it
        //--- where the last element was deleted
        if (result == null) {
          result = editLib.createElement(schema,el,parent);
          parent.addContent(me,result);
        }

        result.setAttribute(Edit.ChildElem.Attr.PARENT,parentRef);
        result.addContent(info);

Examples of org.infoset.xml.ItemConstructor.createElement()

   {
      String baseURIValue = baseURI.toString();
      URI baseDir = URI.create(baseURIValue.substring(0,baseURIValue.lastIndexOf('/')+1));
      ItemConstructor constructor = InfosetFactory.getDefaultInfoset().createItemConstructor();
      dest.send(constructor.createDocument(baseURI));
      dest.send(constructor.createElement(SERVER));
      dest.send(constructor.createCharacters("\n"));
     
      Element keystoreE = constructor.createElement(KEYSTORE);
      keystoreE.setAttributeValue("href",baseDir.relativize(keyStorePath.toURI()).toString());
      keystoreE.setAttributeValue("password",keyStorePassword);

Examples of org.jboss.ws.core.soap.SOAPFactoryImpl.createElement()

               Result result = ser.serialize(xmlName, xmlType, faultCause, serContext, null);
               XMLFragment xmlFragment = new XMLFragment(result);

               Element domElement = xmlFragment.toElement();
               SOAPFactoryImpl soapFactory = new SOAPFactoryImpl();
               SOAPElement soapElement = soapFactory.createElement(domElement);

               detail = soapFault.addDetail();
               detail.addChildElement(soapElement);
            }
            catch (BindingException e)

Examples of org.openiaml.model.inference.EcoreCreateElementsHelper.createElement()

              /*
              Button button = (Button) handler.createElement(page, VisualPackage.eINSTANCE.getButton(), ModelPackage.eINSTANCE.getInternetApplication_Children());
              button.setName("test button " + j);
              */
             
              InputTextField text = (InputTextField) handler.createElement(page, VisualPackage.eINSTANCE.getInputTextField(), VisualPackage.eINSTANCE.getFrame_Children());
              text.setName("test field " + j);
             
            }
           
            return root;

Examples of org.openiaml.model.inference.EcoreInferenceHandler.createElement()

      throws ExecutionException {
   
    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(container.eResource());
    try {
      created = eih.createElement(container, elementType, containerFeature);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult(created);
   
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.