Examples of Application


Examples of Entities.Application

        setCostCentre(quoteRef.getCostcenter());
    }

    public String createApplication() {
        modifiedDate = new Date();
        newApplication = new Application();
        profileRef = travelProfileHandler.findTravelProf(accountID);

        newApplication.setDatemodified(modifiedDate);

        newApplication.setDescription(description);
View Full Code Here

Examples of application.Application

import application.Application;

public class Main {

  public static void main(String[] args) {
    (new Application()).run();
  }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.parameters.Application

 
  public CharSequence createDoDeployTarget(final AntTask task) {
    CharSequence _xblockexpression = null;
    {
      Deploy _deploy = task.getDeploy();
      Application _application = _deploy.getApplication();
      final String projectName = _application.getName();
      Deploy _deploy_1 = task.getDeploy();
      Application _application_1 = _deploy_1.getApplication();
      final String mainClass = _application_1.getMainclass();
      Deploy _deploy_2 = task.getDeploy();
      final String appletWidth = _deploy_2.getWidth();
      Deploy _deploy_3 = task.getDeploy();
      final String appletHeight = _deploy_3.getHeight();
      Deploy _deploy_4 = task.getDeploy();
      Info _info = _deploy_4.getInfo();
      final String appTitle = _info.getTitle();
      Deploy _deploy_5 = task.getDeploy();
      Application _application_2 = _deploy_5.getApplication();
      final String appVersion = _application_2.getVersion();
      Deploy _deploy_6 = task.getDeploy();
      Application _application_3 = _deploy_6.getApplication();
      final String preloaderClass = _application_3.getPreloaderclass();
      String preloaderPath = "";
      boolean _equals = Objects.equal(preloaderClass, null);
      if (_equals) {
        preloaderPath = null;
      } else {
        String _replace = preloaderClass.replace(".", "/");
        preloaderPath = _replace;
      }
      Deploy _deploy_7 = task.getDeploy();
      Application _application_4 = _deploy_7.getApplication();
      final String fallBackClass = _application_4.getFallbackclass();
      StringConcatenation _builder = new StringConcatenation();
      _builder.append("<target name=\"do-deploy\" depends=\"setup-staging-area, do-compile, init-fx-tasks\">");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("<delete file=\"dist\"/>");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("<delete file=\"deploy\" />");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("<mkdir dir=\"dist\" />");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("<mkdir dir=\"dist/libs\" />");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("<copy todir=\"dist/libs\">");
      _builder.newLine();
      _builder.append("\t\t");
      _builder.append("<fileset dir=\"externalLibs\">");
      _builder.newLine();
      _builder.append("\t\t\t");
      _builder.append("<include name=\"*\" />");
      _builder.newLine();
      _builder.append("\t\t");
      _builder.append("</fileset>");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("</copy>");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      {
        boolean _notEquals = (!Objects.equal(preloaderClass, null));
        if (_notEquals) {
          _builder.append("\t");
          _builder.append("<jar destfile=\"dist/libs/");
          _builder.append(projectName, "  ");
          _builder.append("-preloader.jar\">");
          _builder.newLineIfNotEmpty();
          _builder.append("\t");
          _builder.append("\t");
          _builder.append("<fileset dir=\"build/classes\">");
          _builder.newLine();
          _builder.append("\t");
          _builder.append("\t\t");
          _builder.append("<include name=\"");
          _builder.append(preloaderPath, "      ");
          _builder.append(".class\"/>");
          _builder.newLineIfNotEmpty();
          _builder.append("\t");
          _builder.append("\t");
          _builder.append("</fileset>");
          _builder.newLine();
          _builder.append("\t");
          _builder.append("</jar>");
          _builder.newLine();
        }
      }
      _builder.append("\t");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("<fx:resources id=\"appRes\">");
      _builder.newLine();
      {
        boolean _notEquals_1 = (!Objects.equal(preloaderClass, null));
        if (_notEquals_1) {
          _builder.append("\t\t");
          _builder.append("<fx:fileset dir=\"dist\" requiredFor=\"preloader\"");
          _builder.newLine();
          _builder.append("\t\t");
          _builder.append("\t");
          _builder.append("includes=\"");
          _builder.append(projectName, "      ");
          _builder.append("-preloader.jar\"/>");
          _builder.newLineIfNotEmpty();
        }
      }
      _builder.append("\t\t");
      _builder.append("<fx:fileset dir=\"dist\" includes=\"");
      _builder.append(projectName, "    ");
      _builder.append(".jar\"/>");
      _builder.newLineIfNotEmpty();
      _builder.append("\t\t");
      _builder.append("<fx:fileset dir=\"dist\" includes=\"libs/*\"/>");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("</fx:resources> ");
      _builder.newLine();
      _builder.append("\t");
      _builder.newLine();
      _builder.append("\t");
      _builder.append("<fx:application id=\"fxApplication\"");
      _builder.newLine();
      _builder.append("\t\t");
      _builder.append("name=\"");
      _builder.append(projectName, "    ");
      _builder.append("\"");
      _builder.newLineIfNotEmpty();
      _builder.append("\t\t");
      _builder.append("mainClass=\"");
      _builder.append(mainClass, "    ");
      _builder.append("\"");
      _builder.newLineIfNotEmpty();
      {
        boolean _notEquals_2 = (!Objects.equal(preloaderClass, null));
        if (_notEquals_2) {
          _builder.append("\t\t");
          _builder.append("preloaderClass=\"");
          _builder.append(preloaderClass, "    ");
          _builder.append("\"");
          _builder.newLineIfNotEmpty();
        }
      }
      {
        boolean _notEquals_3 = (!Objects.equal(fallBackClass, null));
        if (_notEquals_3) {
          _builder.append("\t\t");
          _builder.append("fallbackClass=\"");
          _builder.append(fallBackClass, "    ");
          _builder.append("\"");
          _builder.newLineIfNotEmpty();
        }
      }
      {
        Deploy _deploy_8 = task.getDeploy();
        Application _application_5 = _deploy_8.getApplication();
        String _toolkit = _application_5.getToolkit();
        boolean _notEquals_4 = (!Objects.equal(_toolkit, null));
        if (_notEquals_4) {
          _builder.append("\t\t");
          _builder.append("toolkit=\"");
          Deploy _deploy_9 = task.getDeploy();
          Application _application_6 = _deploy_9.getApplication();
          String _toolkit_1 = _application_6.getToolkit();
          _builder.append(_toolkit_1, "    ");
          _builder.append("\"");
          _builder.newLineIfNotEmpty();
        }
      }
View Full Code Here

Examples of ca.uhn.hl7v2.app.Application

    public void start() {
        /*
        * The server may have any number of "application" objects registered to handle messages. We
        * are going to create an application to listen to ADT^A01 messages.
        */
        Application handler = new SampleApp();
        server.registerApplication("*", "*", handler);

        /*
        * Another option would be to specify a single application to handle all messages, like
        * this:
 
View Full Code Here

Examples of certmngrscraper.sourceforge.net.ui.Application

            final PropertyChangeListener listener = instantiateListener(config.getListenerClassName());
            log.info("Registering listener");
            service.addPropertyChangeListener(Service.NEW_RESULTS_PROPERTY, listener);
        }
        log.info("Creating GUI");
        new Application(service);
    }
View Full Code Here

Examples of ch.qos.logback.audit.Application

    try {
      InetAddress address = InetAddress.getLocalHost();
      String fqdn = address.getCanonicalHostName();
      // logger("Client application host is ["+fqdn+"].");
      Application aplication = new Application(name, fqdn);
      // all is nice and dandy
      clientApplication = aplication;
    } catch (UnknownHostException e) {
      throw new IllegalStateException(
          "Failed to determine the hostname for this host", e);
View Full Code Here

Examples of co.cask.cdap.api.app.Application

    // Load the JAR using the JAR class load and load the manifest file.
    File unpackedJarDir = Files.createTempDir();

    try {
      Application app;
      try {
        if ("LOCAL".equals(locationFactory)) {
          lf = new LocalLocationFactory();
        } else if ("DISTRIBUTED".equals(locationFactory)) {
          lf = new HDFSLocationFactory(new Configuration());
        } else {
          LOG.error("Unknown location factory specified");
          return -1;
        }

        Program archive = Programs.createWithUnpack(lf.create(jarFilename), unpackedJarDir);
        Object appMain = archive.getMainClass().newInstance();
        if (!(appMain instanceof Application)) {
          LOG.error(String.format("Application main class is of invalid type: %s",
                                  appMain.getClass().getName()));
          return -1;
        }

        app = (Application) appMain;

      } catch (Exception e) {
        LOG.error(e.getMessage());
        return -1;
      }

      // Now, we are ready to call configure on application.
      // Setup security manager, this setting allows only output file to be written.
      // Nothing else can be done from here on other than creating that file.
      ApplicationSecurity.builder()
        .add(new FilePermission(outputFile.getAbsolutePath(), "write"))
        .apply();
 
      // Now, we call configure, which returns application specification.
      DefaultAppConfigurer configurer = new DefaultAppConfigurer(app);
      app.configure(configurer, new ApplicationContext());
      ApplicationSpecification specification = configurer.createApplicationSpec();

      // Convert the specification to JSON.
      // We write the Application specification to output file in JSON format.
      try {
View Full Code Here

Examples of co.cubicode.rbacframework.models.catalogs.Application

public class PermissionTest extends ApiTest {

  @Test
  public void findByPrimaryKeyTest() {
    Application application = Catalog.getElement(Application.class, ApplicationConstants.ADMIN);
    ObjectType objectType = Catalog.getElement(ObjectType.class, ObjectTypeConstants.USER);
    OperationType operationType = Catalog.getElement(OperationType.class, OperationType.CREATE);
    Permission permission = null;
    try {
      permission = PermissionBiz.findByPrimaryKey(application, objectType, operationType);
View Full Code Here

Examples of com.apple.eawt.Application

  private static class MacOSXConfiguration {
    /**
     * Binds <code>controller</code> to Mac OS X application menu.
     */
    public static void bindToApplicationMenu(final EditorController controller) {
      Application macosxApplication = Application.getApplication();
      // Add a listener to Mac OS X application that will call controller methods
      macosxApplication.addApplicationListener(new ApplicationAdapter() {     
        @Override
        public void handleQuit(ApplicationEvent ev) {
          controller.exit();
        }
       
        @Override
        public void handleAbout(ApplicationEvent ev) {
          controller.about();
          ev.setHandled(true);
        }

        @Override
        public void handlePreferences(ApplicationEvent ev) {
          controller.editPreferences();
          ev.setHandled(true);
        }
       
        @Override
        public void handleOpenFile(ApplicationEvent ev) {
          controller.open(ev.getFilename());
        }
       
        @Override
        public void handleReOpenApplication(ApplicationEvent ev) {
          SwingUtilities.getWindowAncestor((JComponent)controller.getView()).toFront();
        }
      });
      macosxApplication.setEnabledAboutMenu(true);
      macosxApplication.setEnabledPreferencesMenu(true);
     
      // Set application icon if program wasn't launch from bundle
      if (!"true".equalsIgnoreCase(System.getProperty("furniturelibraryeditor.bundle", "false"))) {
        try {
          Image icon = ImageIO.read(MacOSXConfiguration.class.getResource("swing/resources/aboutIcon.png"));
          macosxApplication.setDockIconImage(icon);
        } catch (NoSuchMethodError ex) {
          // Ignore icon change if setDockIconImage isn't available
        } catch (IOException ex) {
        }
      }
View Full Code Here

Examples of com.apress.progwt.client.domain.Application

        List<Application> rankings = currentUser.getSchoolRankings();

        // Utilities.reOrder(rankings, currentUser, rank)

        Application sap = null;

        School school = commandService.get(School.class, schoolID);

        for (Iterator iterator = rankings.iterator(); iterator.hasNext();) {
            Application scAndApp = (Application) iterator.next();

            if (scAndApp.getSchool().equals(school)) {
                sap = scAndApp;
            }
        }

        if (null == sap) {
            // Log.debug("\n----B-CREATE-NEW-SAP----\n");
            sap = new Application(school);
            commandService.save(sap);
            currentUser.addRanked(rank, sap);
        }

        // use this to set the orderProperty, since the list
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.