Examples of ConfigSource


Examples of com.opengamma.core.config.ConfigSource

      resultCurveName = callCurveName;
      resultCurveConfigName = callCurveCalculationConfigName;
    } else {
      return null;
    }
    final ConfigSource configSource = OpenGammaCompilationContext.getConfigSource(context);
    final ConfigDBCurveCalculationConfigSource curveCalculationConfigSource = new ConfigDBCurveCalculationConfigSource(configSource);
    final MultiCurveCalculationConfig resultCurveCalculationConfig = curveCalculationConfigSource.getConfig(resultCurveConfigName);
    if (resultCurveCalculationConfig == null) {
      s_logger.error("Could not find curve calculation configuration named " + resultCurveConfigName + " for currency " + resultCurrency);
      return null;
View Full Code Here

Examples of com.opengamma.core.config.ConfigSource

    _comboBox = new JComboBox<ViewEntry>();
    _comboBox.setModel(getViewComboBoxModel());
    _comboBox.setRenderer(getViewListCellRenderer());
    viewSelectionPanel.add(_comboBox);

    final ConfigSource configSource = getToolContext().getConfigSource();
    final PositionSource positionSource = getToolContext().getPositionSource();
    final SecuritySource securitySource = getToolContext().getSecuritySource();
   
    _failuresTreeTable = new JXTreeTable(new DefaultTreeTableModel());
    _failuresTreeTable.setShowsRootHandles(true);
    _failuresTreeTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
   
    JPanel panel = new JPanel();
    mainPanel.add(panel, BorderLayout.CENTER);
    panel.setLayout(new BorderLayout(0, 0));
   
    _splitPane = new JSplitPane();
    panel.add(_splitPane);
   
    JScrollPane failuresScrollPane = new JScrollPane(_failuresTreeTable);
    _splitPane.setRightComponent(failuresScrollPane);
   
    _portfolioTree = new JPortfolioTree(new DefaultTreeModel(null), getToolContext().getConfigSource());
    JScrollPane scrollPane = new JScrollPane(_portfolioTree);
    _splitPane.setLeftComponent(scrollPane);
   
    _portfolioTree.addTreeSelectionListener(new TreeSelectionListener() {
      @Override
      public void valueChanged(TreeSelectionEvent e) {
        JTree portfolioTree = (JTree) e.getSource();
        updateTreeTableModel(portfolioTree);
      }
    });
   
    _comboBox.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        JComboBox<ViewEntry> cb = (JComboBox<ViewEntry>) e.getSource();
        final ViewEntry viewEntry = (ViewEntry) cb.getSelectedItem();
        if (viewEntry != null) {
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
              ConfigItem<ViewDefinition> configItem = (ConfigItem<ViewDefinition>) configSource.get(viewEntry.getUniqueId());
              if (configItem.getValue() != null) {
                _portfolioTree.setModel(getPortfolioTreeModel(configItem.getValue().getPortfolioId(), getToolContext()));
              } else {
                JOptionPane.showMessageDialog(null, "There is no portfolio set in the selected view", "No portfolio", JOptionPane.ERROR_MESSAGE);
              }
View Full Code Here

Examples of com.opengamma.core.config.ConfigSource

    Set<ExternalId> curveNodesExternalIds;

    Set<ExternalId> initialRateExternalIds;

    final ConfigSource configSource = getToolContext().getConfigSource();
    final ConfigMaster configMaster = getToolContext().getConfigMaster();

    // Find all matching curves
    final List<YieldCurveDefinition> curves = getCurveDefinitionNames(configMaster, getCommandLine().getOptionValue(CURVE_NAME_OPT));
View Full Code Here

Examples of org.apache.deltaspike.core.spi.config.ConfigSource

    {
        active = true;

        ConfigResolver.addConfigSources(new ArrayList<ConfigSource>() {
            {
                add(new ConfigSource()
                {
                    @Override
                    public int getOrdinal()
                    {
                        return Integer.MAX_VALUE;
View Full Code Here

Examples of org.apache.deltaspike.core.spi.config.ConfigSource

    {
        active = true;

        ConfigResolver.addConfigSources(new ArrayList<ConfigSource>() {
            {
                add(new ConfigSource() {
                    @Override
                    public int getOrdinal() {
                        return Integer.MAX_VALUE;
                    }
View Full Code Here

Examples of org.apache.deltaspike.core.spi.config.ConfigSource

    }

    @Override
    public List<ConfigSource> getConfigSources() {
        return new ArrayList<ConfigSource>() {{
            add(new ConfigSource() {
                @Override
                public int getOrdinal() {
                    return 0;
                }
View Full Code Here

Examples of org.apache.deltaspike.core.spi.config.ConfigSource

    }

    @Override
    public List<ConfigSource> getConfigSources() {
        return new ArrayList<ConfigSource>() {{
            add(new ConfigSource() {
                @Override
                public int getOrdinal() {
                    return 0;
                }
View Full Code Here

Examples of org.apache.deltaspike.core.spi.config.ConfigSource

    }

    @Override
    public List<ConfigSource> getConfigSources() {
        return new ArrayList<ConfigSource>() {{
            add(new ConfigSource() {
                @Override
                public int getOrdinal() {
                    return 0;
                }
View Full Code Here

Examples of org.apache.deltaspike.core.spi.config.ConfigSource

    }

    @Override
    public List<ConfigSource> getConfigSources() {
        return new ArrayList<ConfigSource>() {{
            add(new ConfigSource() {
                @Override
                public int getOrdinal() {
                    return 0;
                }
View Full Code Here

Examples of org.eclipse.jetty.start.config.ConfigSource

    public void parse(ConfigSources sources)
    {
        ListIterator<ConfigSource> iter = sources.reverseListIterator();
        while (iter.hasPrevious())
        {
            ConfigSource source = iter.previous();
            for (RawArgs.Entry arg : source.getArgs())
            {
                parse(arg.getLine(),arg.getOrigin());
            }
        }
    }
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.