Package org.sylfra.idea.plugins.xstructure.actions

Examples of org.sylfra.idea.plugins.xstructure.actions.EditMappingSetAction


  protected ActionGroup createActionGroup()
  {
    SelectMappingSetAction selectMappingSetAction =
      (SelectMappingSetAction) ActionManager.getInstance()
        .getAction("XStructure.Actions.SelectMappingSet");
    EditMappingSetAction editMappingSetAction =
      (EditMappingSetAction) ActionManager.getInstance().getAction("XStructure.Actions.EditMappingSet");
    ReloadAllMappingSetsAction reloadAllMappingSetsAction =
      (ReloadAllMappingSetsAction) ActionManager.getInstance()
        .getAction("XStructure.Actions.ReloadAllMappingSets");

    StructureViewModel structureViewModel = getTreeModel();

    if (structureViewModel instanceof XSViewTreeModel)
    {
      XSViewTreeModel xsViewTreeModel = (XSViewTreeModel) structureViewModel;

      editMappingSetAction.getTemplatePresentation().setEnabled(
        (xsViewTreeModel.getXMappingSet() != null));
    }
    else
    {
      editMappingSetAction.getTemplatePresentation().setEnabled(false);
    }

    DefaultActionGroup actionGroup = (DefaultActionGroup) super.createActionGroup();

    actionGroup.addSeparator();
View Full Code Here

TOP

Related Classes of org.sylfra.idea.plugins.xstructure.actions.EditMappingSetAction

Copyright © 2018 www.massapicom. 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.