Examples of generate()


Examples of org.destecs.ide.debug.aca.AcaGenerator.generate()

    generator.addGenerator(new CTSettingsAcaPlugin());

    monitor.worked(10);
    Set<ILaunchConfiguration> configurations;
    try {
      configurations = generator.generate();
    } catch (Exception e1) {
      throw new CoreException(new Status(IStatus.ERROR, "DESTECS Debug", e1.getMessage()));
    }

    IDestecsProject dProject = (IDestecsProject) project.getAdapter(IDestecsProject.class);
View Full Code Here

Examples of org.directwebremoting.extend.IdGenerator.generate()

     */
    public String generateId()
    {
        WebContext webContext = WebContextFactory.get();
        IdGenerator idGenerator = webContext.getContainer().getBean(IdGenerator.class);
        return idGenerator.generate();
    }

    /**
     * A method designed to be called on page load so the client knows about
     * the http and script sessions. This method doesn't actually do anything
View Full Code Here

Examples of org.drools.compiler.integrationtests.eventgenerator.SimpleEventGenerator.generate()

            // add eventSenders to EventGenerator
            myGenerator.addEventSource("Conveyor"+i, new ProductionEvent(res.getId()), MIN_OCCUR_PRODUCTION_EVENT, AVG_OCCUR_PRODUCTION_EVENT, 0, 0);
        }

        // start generating events
        myGenerator.generate();
       
        BufferedReader waiter = new BufferedReader(new InputStreamReader(System.in));
        try {
            waiter.readLine();
        } catch (IOException e) {
View Full Code Here

Examples of org.drools.integrationtests.eventgenerator.SimpleEventGenerator.generate()

            // add eventSenders to EventGenerator
            myGenerator.addEventSource("Conveyor"+i, new ProductionEvent(res.getId()), MIN_OCCUR_PRODUCTION_EVENT, AVG_OCCUR_PRODUCTION_EVENT, 0, 0);
        }

        // start generating events
        myGenerator.generate();
       
        BufferedReader waiter = new BufferedReader(new InputStreamReader(System.in));
        try {
            waiter.readLine();
        } catch (IOException e) {
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.ISourceParser.generate()

          if (root != null) {
            WidgetAdapter rootAdapter = WidgetAdapter.getWidgetAdapter(root);
            JavaUtil.hideMenu();
            String lnfCN = getLnfClassname();
            rootAdapter.setPreferredLookAndFeel(lnfCN); //$NON-NLS-1$
            ICompilationUnit unit = sourceParser.generate(rootAdapter, monitor);
            rootAdapter.setPreferredLookAndFeel(null); //$NON-NLS-1$
            if (unit != null) {
              designer.initNamespaceWithUnit(unit);
              designer.setLnfChanged(false);
            }
View Full Code Here

Examples of org.eclipse.emf.codegen.ecore.generator.Generator.generate()

      generator.getAdapterFactoryDescriptorRegistry().addDescriptor
        (GenModelPackage.eNS_URI, SDOGenModelGeneratorAdapterFactory.DESCRIPTOR);
    }
   
    generator.setInput(genModel);
    generator.generate(genModel, GenBaseGeneratorAdapter.MODEL_PROJECT_TYPE, new BasicMonitor.Printing(System.out));


    for (Iterator j = resource.getContents().iterator(); j.hasNext();)
    {
      EObject eObject = (EObject)j.next();
View Full Code Here

Examples of org.eclipse.emf.codegen.jet.JETEmitter.generate()

          return entries;
        }
      };
      emitter.setProjectName(projectName);
      emitter.addVariable("Google Data Plugin", Activator.PLUGIN_ID);
      generatedTemplateContent = emitter.generate(monitor,
          new Object[]{templateConfig, errorMessage});
    } catch(JETException e) {
      e.printStackTrace();
      throw DiagnosticException.toCoreException(e);
    }
View Full Code Here

Examples of org.eclipse.persistence.sdo.helper.SDOClassGenerator.generate()

    public void generateCode(CodeWriter cw) {
        if (types == null) {
            return;
        }
        SDOClassGenerator generator = new SDOClassGenerator(context);
        generator.generate(cw, types);
    }

    /**
     * Receive a list of java classes modeled by this xsd2java model
     * @return
 
View Full Code Here

Examples of org.eclipse.xsd.ecore.XSDEcoreBuilder.generate()

                    URI location = urisToLocations.get(xsdQname.getNamespaceURI());
                    Map<Object, Object> options = new HashMap<Object, Object>();
                    options.put(theXsdOption, Boolean.TRUE);
                    XSDEcoreBuilder builder = theXSDEcoreBuilderConstructor.newInstance(
                            extendedMetaData, options);
                    builder.generate(location);
                } catch (Exception e) {
                }
            }

            return extendedMetaData.getElement(xsdQname.getNamespaceURI(), xsdQname.getLocalPart());
View Full Code Here

Examples of org.ejbca.util.keystore.KeyStoreContainer.generate()

            final String dn = CertTools.stringToBCDNString(StringTools.strip(args[6]));
            final int validity = Integer.parseInt(args[7]);
            HardCATokenInfo catokeninfo = new HardCATokenInfo();
            byte keyStoreID[];{
                KeyStoreContainer ksc = KeyStoreContainerFactory.getInstance(args[4],args[2], args[3], args.length>8 ? args[8] : null, null, null);
                ksc.generate("2048", DEFAULT_KEY);
                ksc.generate("2048", SIGN_KEY);
                keyStoreID = ksc.storeKeyStore();
                catokeninfo.setAuthenticationCode(new String(ksc.getPassPhraseGetSetEntry()));
            }
            getLogger().info("Initializing CA");           
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.