Examples of Application


Examples of com.vtence.molecule.Application

    MockRequest request = new MockRequest();
    MockResponse response = new MockResponse();

    @Test public void
    deflatesResponseWhenClientAcceptsDeflate() throws Exception {
        compressor.connectTo(new Application() {
            public void handle(Request request, Response response) throws Exception {
                response.body("uncompressed body");
            }
        });
View Full Code Here

Examples of com.ytec.jdap.model.Application

  }

  public Application getAppliaction() {
    try {
      if (appId == null) {
        appliaction = new Application();
      } else {
        appliaction = ConfigMamager.getReader().getAppById(appId);
      }
    } catch (Exception e) {
      BaseFrame.alert(e.getMessage());
View Full Code Here

Examples of de.danet.an.workflow.api.Application

     * @param id the given id of the application to be found.
     * @throws InvalidIdException If no such application be found
     * @return the dedicated application.
     */
    public Application applicationById (String id) throws InvalidIdException {
  Application a = (Application)applications.get (id);
  if (a == null) {
      throw new InvalidIdException ("No application with Id = " + id);
  }
  return a;
    }
View Full Code Here

Examples of de.filiadata.lucene.spider.generated.msoffice2000.word.Application

      // COM-Thread initialisieren
      ComThread.InitSTA();

      // Neue Word-Applikation erstellen
      mLog.info("Starting MS Word");
      mWordApplication = new Application();

      // Word unsichtbar machen
      // mWordApplication.setVisible(false);
      Dispatch.put(mWordApplication, "Visible", new Variant(false));
    }
View Full Code Here

Examples of de.sciss.app.Application

  public MainFrame()
  {
    super( REGULAR );
   
    final Application  app  = AbstractApplication.getApplication();
//    final WindowHandler wh  = app.getWindowHandler();
//   
//    win  = wh.createWindow( 0 );

    superCollider  = SuperColliderClient.getInstance();
   
    if( app.getWindowHandler().usesInternalFrames() ) {
      setTitle( app.getResourceString( "frameMain" ));
      ((JInternalFrame) getWindow()).setClosable( false );
    } else {
      setTitle( app.getName() + " : " + app.getResourceString( "frameMain" ));
    }
   
    final Container          cp        = getContentPane();
    final Box            boxStatus1    = Box.createHorizontalBox();
    final JPanel          bottomPane    = new JPanel( new BorderLayout( 4, 2 ));
    final JScrollPane        ggScroll;
//    final JButton          ggBoot;
    final AbstractWindow.Listener  winListener;
    final TreeExpanderButton    ggStatusExp;
//    String[]            cfgNames    = null;
    final String[]          fntNames;
 
    lta        = new LogTextArea( 16, 40, false, null );
    ggScroll    = lta.placeMeInAPane();
    lta.makeSystemOutput();
   
    actionBoot    = new ActionBoot();
//    ggBoot      = new JButton( actionBoot );
    ggBoot      = new MultiStateButton();
    ggBoot.setFocusable( false )// prevent user from accidentally starting/stopping server
    ggBoot.setAutoStep( false );
    ggBoot.addActionListener( actionBoot );
   
//    ggDumpOSC    = new JCheckBox( getResourceString( "labelDumpOSC" ));
//    ggDumpOSC.addItemListener( new ItemListener() {
//      public void itemStateChanged( ItemEvent e ) {
//        root.superCollider.dumpOSC( ggDumpOSC.isSelected() ? kDumpText : kDumpOff );
//      }
//    });
    ggDumpOSC    = new MultiStateButton();
    ggDumpOSC.setFocusable( false );
    ggDumpOSC.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e ) {
        superCollider.dumpOSC( ggDumpOSC.getSelectedIndex() );
      }
    });
//    ggDumpOSC.addItem( getResourceString( "labelDumpOff" ), null, null );
//    ggDumpOSC.addItem( getResourceString( "labelDumpText" ), null, new Color( 0xFF, 0xFA, 0x9D ), new Color( 0xFA, 0xE7, 0x9D ));
//    ggDumpOSC.addItem( getResourceString( "labelDumpHex" ), null, new Color( 0xFA, 0x9D, 0xFF ), new Color( 0xE7, 0x9D, 0xFA ));

        JLabel ggImport = new JLabel("<html><body><i>Drop</i></body>", null, SwingConstants.CENTER);
        ggImport.setForeground(Color.darkGray);
        ggImport.setTransferHandler(new TransferHandler() {
            @Override
            public boolean canImport(TransferSupport support) {
                return support.isDataFlavorSupported(DataFlavor.javaFileListFlavor);
            }

            @Override
            public boolean importData(TransferSupport support) {
                if (support.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
                    try {
                        java.util.List fs = (java.util.List)
                                support.getTransferable().getTransferData(DataFlavor.javaFileListFlavor);
                        for (int i = 0; i < fs.size(); i++) {
                            File f = (File) fs.get(i);
                            // System.out.println(f);
                            ((BasicApplication) app).getMenuFactory().openDocument(f);
                        }
                        return true;
                    } catch (IOException e) {
                        return false;
                    } catch (UnsupportedFlavorException e) {
                        return false;
                    }
                } else {
                    return false;
                }
            }
        });
        ggImport.setToolTipText("Drop audio files here to open them");
        ggImport.setBorder(new AbstractBorder() {
            @Override public Insets getBorderInsets(Component c, Insets insets) {
                insets.top  = insets.bottom = 5;
                insets.left = insets.right  = 8;
                return insets;
            }

            private final Stroke strk = new BasicStroke(1.5f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER,
                    10.0f, new float[] { 3f, 3f }, 0.0f);

            @Override
            public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
                Graphics2D g2 = (Graphics2D) g;
                g2.setColor(Color.darkGray);
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                // g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);
                g2.setStroke(strk);
                g2.drawRoundRect(x + 1, y + 1, width - 3, height - 3, 8, 8);
            }
        });
        Dimension importPref = ggImport.getPreferredSize();
        // importPref.width = 100;
        ggImport.setPreferredSize(importPref);
        ggImport.setMaximumSize  (importPref);

    boxStatus2    = Box.createHorizontalBox();
    msgStatus1    = new MessageFormat( getResourceString( "ptrnServerStatus1" ), Locale.US );
    msgStatus2    = new MessageFormat( getResourceString( "ptrnServerStatus2" ), Locale.US );
    unknownStatus  = getResourceString( "labelServerNotRunning" );
    lbStatus1    = new JLabel( unknownStatus );
    lbStatus2    = new JLabel();

    ggStatusExp  = new TreeExpanderButton();
    ggStatusExp.setExpandedToolTip( getResourceString( "buttonExpStatsTT" ));
    ggStatusExp.setCollapsedToolTip( getResourceString( "buttonCollStatsTT" ));
    ggStatusExp.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e )
      {
        final Dimension  d  = getSize();

        if( ggStatusExp.isExpanded() ) {
          boxStatus2.setVisible( true );
          setSize( new Dimension( d.width, d.height + boxStatus2.getPreferredSize().height + 2 ));
        } else {
          boxStatus2.setVisible( false );
          setSize( new Dimension( d.width, d.height - (boxStatus2.getPreferredSize().height + 2) ));
        }
      }
    });
   
    lbStatus1.setPreferredSize( new Dimension( 192, lbStatus1.getPreferredSize().height ));
    lbStatus2.setPreferredSize( new Dimension( 226, lbStatus1.getPreferredSize().height ));
   
    boxStatus1.add( new JLabel( new ImageIcon( getClass().getResource( "sc-icon.png" ))));
    boxStatus1.add( Box.createHorizontalStrut( 2 ));
    boxStatus1.add( ggStatusExp );
    boxStatus1.add( lbStatus1 );
    boxStatus1.add( ggBoot );
        boxStatus1.add( Box.createHorizontalStrut(4));
        boxStatus1.add(ggImport);
    boxStatus1.add( Box.createHorizontalGlue() );

//    boxStatus2.add( Box.createHorizontalStrut( 32 ));
    boxStatus2.add( lbStatus2 );
    boxStatus2.add( ggDumpOSC );
    boxStatus2.add( Box.createHorizontalGlue() );
    boxStatus2.setVisible( false );

    boxStatus1.add( CoverGrowBox.create() );
    boxStatus2.add( CoverGrowBox.create() );
//        if( AbstractApplication.getApplication().getUserPrefs().getBoolean( PrefsUtil.KEY_INTRUDINGSIZE, false )) {
//        boxStatus1.add( Box.createHorizontalStrut( 16 ));
//        boxStatus2.add( Box.createHorizontalStrut( 16 ));
//        }
   
    bottomPane.add( boxStatus1, BorderLayout.NORTH );
    bottomPane.add( boxStatus2, BorderLayout.SOUTH );
//    bottomPane.add( ggBoot, BorderLayout.EAST );
    bottomPane.setBorder( BorderFactory.createEmptyBorder( 0, 4, 0, 4 ));
    cp.add( ggScroll, BorderLayout.CENTER );
    cp.add( bottomPane, BorderLayout.SOUTH );

    fntNames = GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
    if( contains( fntNames, "Monaco" )) {              // Mac OS
      fntMonoSpaced = new Font( "Monaco", Font.PLAIN, 9 );    // looks bigger than it is
    } else if( contains( fntNames, "Lucida Sans Unicode" )) {    // Windows XP
      fntMonoSpaced = new Font( "Lucida Sans Unicode", Font.PLAIN, 9 );
    } else {
      fntMonoSpaced = new Font( "Monospaced", Font.PLAIN, 10 );
    }
   
    AbstractWindowHandler.setDeepFont( cp );
   
    ggBoot.setNumColumns( 9 );
    ggBoot.addItem( getResourceString( "buttonBoot" ), null, null );
// NOTE: BUG WITH CUSTOM COMPOSITE ON WIN-XP!!!
//    ggBoot.addItem( getResourceString( "buttonTerminate" ), null, new Color( 0xFF, 0xFA, 0x9D ), new Color( 0xFA, 0xE7, 0x9D ));
ggBoot.addItem( getResourceString( "buttonTerminate" ), null, new Color( 0xFF, 0xFA, 0x9D ));
    ggDumpOSC.setNumColumns( 9 );
    ggDumpOSC.addItem( getResourceString( "labelDumpOff" ), null, null );
//    ggDumpOSC.addItem( getResourceString( "labelDumpText" ), null, new Color( 0xFF, 0xFA, 0x9D ), new Color( 0xFA, 0xE7, 0x9D ));
ggDumpOSC.addItem( getResourceString( "labelDumpText" ), null, new Color( 0xFF, 0xFA, 0x9D ));
//    ggDumpOSC.addItem( getResourceString( "labelDumpHex" ), null, new Color( 0xFF, 0x9D, 0x9D ), new Color( 0xFA, 0x8D, 0x9D ));
ggDumpOSC.addItem( getResourceString( "labelDumpHex" ), null, new Color( 0xFF, 0x9D, 0x9D ));
    final Dimension d = new Dimension( ggDumpOSC.getPreferredSize().width, ggDumpOSC.getMaximumSize().height );
    ggBoot.setMaximumSize( d );
    ggDumpOSC.setMaximumSize( d );
   
    lbStatus1.setFont( fntMonoSpaced );
    lbStatus2.setFont( fntMonoSpaced );
    lta.setFont( fntMonoSpaced );

    // ---- menus and actions ----
   
    ((BasicApplication) app).getMenuBarRoot().putMimic( "edit.clear", this, lta.getClearAction() );

    // ---- listeners -----
   
//    root.getDocumentHandler().addDocumentListener( this );

    winListener = new AbstractWindow.Adapter() {
      public void windowClosing( AbstractWindow.Event e ) {
        app.quit();
      }
    };
    addListener( winListener );
   
    superCollider.addServerListener( this );
   
//        HelpGlassPane.setHelp( getRootPane(), "MainFrame" );

    setDefaultCloseOperation( WindowConstants.DO_NOTHING_ON_CLOSE );
   
    init();
    app.addComponent( Main.COMP_MAIN, this );
    setVisible( true );
//    toFront();
  }
View Full Code Here

Examples of dk.brics.string.intermediate.Application

        //
        //  Create intermediate code
        //
        jt = new Jimple2Intermediate(new Jimple2IntermediateFactoryImpl(externallyVisible, taintAnalysisStrategy, staticStringTypes, resolvers));
        Application app = jt.translateApplicationClasses(hotspots);
        Map<ValueBox, Statement> m1 = jt.getTranslationMap();
        num_exps = m1.size() + jt.getNumberOfExpsSkipped();
       
        // release memory
        if (releaseSoot) {
          G.reset();
        }
       
        //
        //  Analyze the intermediate code
        //
        log.info("Performing field usage analysis...");
        FieldUsageAnalysis fieldUsage = new FieldUsageAnalysis(app.getMethods());
        log.info("Performing liveness analysis...");
        LivenessAnalysis liveness = new LivenessAnalysis(app);
        log.info("Performing alias assertion analysis...");
        AliasAssertionAnalysis aliasAssertions = new AliasAssertionAnalysis(app);
        log.info("Performing alias analysis...");
        AliasAnalysis alias = new AliasAnalysis(app, liveness, fieldUsage, aliasAssertions);
        log.info("Performing reaching definitions analysis...");
        ReachingDefinitions reachingDefinitions = new ReachingDefinitions(app, liveness, alias);
       
        // if no hotspots were specified, make every expression a hotspot by default
        if (hotspots == null) {
            hotspots = m1.keySet(); // take everything by default
        }

        // get the intermediate statements corresponding to each hotspot
        Set<Statement> hotspot_statements = new HashSet<Statement>();
        for (ValueBox b : hotspots) {
            Statement stm = m1.get(b);
            if (stm == null) {
                log.info("Invalid hotspot");
                continue;
            }
            hotspot_statements.add(stm);
        }
       
        // find invalid assertion statements
        OperationAssertionAnalysis assertions = new OperationAssertionAnalysis(app, reachingDefinitions);
       
        if (log.isDebugEnabled()) {
            log.debug(app.toDot(reachingDefinitions, alias, assertions, hotspot_statements));
        }
       
        // End of intermediate creation. Notify diagnostics.
        diagnostics.intermediateCompleted(new IntermediateCompletedEvent(app, liveness, alias, reachingDefinitions, assertions,
        hotspot_statements));
View Full Code Here

Examples of edu.unc.cs.sportsync.main.ui.application.Application

      Image[] images = { logo512, logo256, logo48, logo32, logo16 };

      shell.setSize(400, 250);
      shell.setMinimumSize(400, 250);
      shell.setImages(images);
      Application appComposite = new Application(shell, SWT.None);

      shell.open();
      while (!shell.isDisposed()) {
        if (!shell.getDisplay().readAndDispatch()) {
          shell.getDisplay().sleep();
        }
      }
      appComposite.dispose();
      shell.dispose();
    } catch (Exception e) {
      e.printStackTrace();
      ErrorUtil.openStackTraceDialog("A Fatal Error has occured and the application will need to shut down", e);
      System.exit(1);
View Full Code Here

Examples of evolaris.framework.sys.datamodel.Application

  public ActionForward select(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    req.getSession().setAttribute("formActionPath", req.getParameter("formActionPath"));
   
    // get destination application (and thus group) or at least the group from session
    Group destinationGroup;
    Application destinationApplication = null;
    Object destinationApplicationIdFromSession = req.getSession().getAttribute("destinationApplicationId");
    if (destinationApplicationIdFromSession != null){
      if (!(destinationApplicationIdFromSession instanceof Long)){
        throw new BugException("invalid destinationApplicationId parameter: " + destinationApplicationIdFromSession);
      }
      ApplicationManager applicationManager = new ApplicationManager(locale,session);
      destinationApplication = applicationManager.getApplication((Long)destinationApplicationIdFromSession);
      if (destinationApplication == null){
        throw new BugException("invalid destination application id: " + destinationApplicationIdFromSession);
      }
      destinationGroup = destinationApplication.getGroup();
    } else {
      Object destinationGroupIdFromSession = req.getSession().getAttribute("destinationGroupId");
      if (!(destinationGroupIdFromSession instanceof Long)){
        throw new BugException("invalid destinationGroupId parameter: " + destinationGroupIdFromSession);
      }
View Full Code Here

Examples of flex2.tools.oem.Application

          }
          else
          {
              if (verbose)
                System.out.println("new application");
              job = new AppJob(new Application(mainAppFile));
              apps.put(key, job);
          }
            job.app.setProgressMeter(progress);
             
            //compilations one at the time on the same project
View Full Code Here

Examples of fr.norsys.mapper.console.model.Application

    if (log.isDebugEnabled()) {
      log.debug("init method called");
    }
    DynaActionForm applicationForm = (DynaActionForm) form;
    applicationForm.set(ConsoleCst.APPLICATION_REQUEST_BEAN,
        new Application());
    request.getSession().setAttribute(ConsoleCst.IS_APPLICATION_MODIFIED,
        ConsoleCst.APPLICATION_NOT_MODIFIED);
    refreshMenu(request);
    return mapping.findForward(ConsoleCst.APPLICATIONS_PAGE_FORWARD);
  }
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.