Examples of XMappingSetRegistry


Examples of org.sylfra.idea.plugins.xstructure.registry.XMappingSetRegistry

  @NotNull
  protected DefaultActionGroup createPopupActionGroup(JComponent button)
  {
    DefaultActionGroup actionGroup = new DefaultActionGroup();

    XMappingSetRegistry mappingSetRegistry =
      XStructurePlugin.getInstance().getXMappingSetRegistry();

    XmlFile xmlFile = retrieveXmlFile();
    if (xmlFile == null)
    {
      return actionGroup;
    }

    Set<IXMappingSet> xMappingSets = mappingSetRegistry.getAvailableXMappingSets(xmlFile);
    IXMappingSet selectedXMappingSet = mappingSetRegistry.getSelectedXMappingSet(xmlFile);

    // An item to select no mapping set
    actionGroup.add(new XMappingSetChoiceAction(xmlFile, null,
      (selectedXMappingSet == null)));
View Full Code Here

Examples of org.sylfra.idea.plugins.xstructure.registry.XMappingSetRegistry

     */
    public void setSelected(AnActionEvent e, boolean state)
    {
      final Project project = DataKeys.PROJECT.getData(e.getDataContext());

      XMappingSetRegistry mappingSetRegistry =
        XStructurePlugin.getInstance().getXMappingSetRegistry();

      // Compares references
      if (mappingSetRegistry.getSelectedXMappingSet(xmlFile) == xMappingSet)
      {
        return;
      }

      mappingSetRegistry.setSelectedXMappingSet(xmlFile, xMappingSet);

      XSUtils.reloadStructureView(project);
    }
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.