Examples of Scheme


Examples of org.apache.http.nio.conn.scheme.Scheme

        SSLContext clientSSLContext = SSLContext.getInstance("TLS");
        clientSSLContext.init(null, tm, null);

        SchemeRegistry schemeRegistry = new SchemeRegistry();
        schemeRegistry.register(new Scheme("http", 80, null));
        schemeRegistry.register(new Scheme("https", 443, new SSLLayeringStrategy(clientSSLContext)));
        return new PoolingClientConnectionManager(ioreactor, schemeRegistry);
    }
View Full Code Here

Examples of org.apache.tuscany.sca.topology.Scheme

        URL url = getClass().getResource("runtime.topology");
        Runtime runtime = (Runtime)documentProcessor.read(null, null, url);
        assertNotNull(runtime);
       
        Node node0 = runtime.getNodes().get(0);
        Scheme scheme0 = node0.getSchemes("nodomain").get(0);
        assertEquals(scheme0.getName(), "http");
       
        Node node1 = runtime.getNodes().get(1);
        Component component0 = node1.getComponents("domainA").get(0);
        assertEquals(component0.getName(), "AddServiceComponent");
    }
View Full Code Here

Examples of org.eclipse.jface.bindings.Scheme

      final int naturalKey = acceleratorInt & ~modifierMask;
      final KeyStroke keyStroke = KeyStroke.getInstance(modifierKeys,
          naturalKey);
      final KeySequence keySequence = KeySequence.getInstance(keyStroke);

      final Scheme activeScheme = bindingService.getActiveScheme();

      try {
        final Binding binding = new KeyBinding(keySequence, command,
            activeScheme.getId(), IContextIds.CONTEXT_ID_WINDOW,
            null, null, null, Binding.SYSTEM);
        commandIdToBinding.put(command.getCommand().getId(), binding);

        if (command.getCommand().isEnabled()) {
          bindingService.addBinding(binding);
View Full Code Here

Examples of org.mizartools.dli.Scheme

    Premisses premisses = new Premisses(formulaList);
    LinkedList<Formula> formula2List = new LinkedList<Formula>();
    formula2List.add(Adapter.getFormula(abstractSignature, scheme.getFormula1(), new VariableId()));
    Thesis thesis = new Thesis(formula2List);
   
    ItemDefinition itemDefinition = new Scheme(itemId.toString(), parameters, premisses, thesis);
    DecodedLibraryItem decodedLibraryItem = new DecodedLibraryItem(itemId, itemDefinition);
    return decodedLibraryItem;
  }
View Full Code Here

Examples of printplugin.settings.Scheme

    newSchemeBtn.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        String newSchemeName = JOptionPane.showInputDialog(parent, mLocalizer.msg("enterNewSchemeName","Enter new name for scheme:"), mLocalizer.msg("newScheme","New scheme"), JOptionPane.PLAIN_MESSAGE);
        if (newSchemeName != null) {
          if (newSchemeName.trim().length() > 0) {
            Scheme newScheme = mDialogContent.createNewScheme(newSchemeName);
            newScheme.setSettings(mDialogContent.getSettings());
            mSchemeCBModel.addElement(newScheme);
            mSchemeCB.setSelectedItem(newScheme);
            mDialogContent.setSettings(newScheme.getSettings());
          }
          else {
            JOptionPane.showMessageDialog(parent, mLocalizer.msg("invalidSchemeMsg","Invalid scheme name"), mLocalizer.msg("invalidInput","Invalid input"), JOptionPane.INFORMATION_MESSAGE);
          }
        }
      }
    });

    mSaveSchemeBtn.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        Scheme scheme = (Scheme)mSchemeCB.getSelectedItem();
        scheme.setSettings(mDialogContent.getSettings());

      }
    });

    mEditSchemeBtn.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        Scheme scheme = (Scheme)mSchemeCB.getSelectedItem();
        Object newSchemeName = JOptionPane.showInputDialog(parent, mLocalizer.msg("enterNewSchemeName","Enter new name for scheme:"), mLocalizer.msg("editScheme","Edit scheme"), JOptionPane.PLAIN_MESSAGE, null, null, scheme.getName());
        if (newSchemeName != null) {
          if (newSchemeName.toString().trim().length()>0) {
            scheme.setName(newSchemeName.toString());
            mSchemeCB.repaint();
          }
          else {
            JOptionPane.showMessageDialog(parent, mLocalizer.msg("invalidSchemeMsg","Invalid scheme name"), mLocalizer.msg("invalidInput","Invalid input"), JOptionPane.INFORMATION_MESSAGE);
          }
        }
      }
    });

    mDeleteSchemeBtn.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent event) {
        Scheme scheme = (Scheme)mSchemeCB.getSelectedItem();
        if (scheme != null) {
          if (JOptionPane.showConfirmDialog(parent, mLocalizer.msg("deleteSchemeMsg","Do you want to delete the selected scheme?"), mLocalizer.msg("deleteScheme","Delete Scheme"), JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
            mSchemeCBModel.removeElement(scheme);
            mSchemeCB.setSelectedIndex(0);
          }
        }
      }
    });

    mSchemeCBModel = new DefaultComboBoxModel(schemes);
    mSchemeCB = new JComboBox(mSchemeCBModel);
    JPanel schemePanel = new JPanel();
    schemePanel.add(mSchemeCB);
    schemePanel.add(newSchemeBtn);
    schemePanel.add(mEditSchemeBtn);
    schemePanel.add(mSaveSchemeBtn);
    schemePanel.add(mDeleteSchemeBtn);
    southPanel.add(schemePanel, BorderLayout.WEST);
    mSchemeCB.addItemListener(new ItemListener(){
      public void itemStateChanged(ItemEvent e) {
        mDeleteSchemeBtn.setEnabled(mSchemeCB.getSelectedIndex()!=0);
        mEditSchemeBtn.setEnabled(mSchemeCB.getSelectedIndex()!=0);
        Scheme scheme = (Scheme)mSchemeCB.getSelectedItem();
        mDialogContent.setSettings(scheme.getSettings());
      }
    });


    contentPane.add(eastPanel, BorderLayout.EAST);
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.