Java 类com.intellij.lang.ant.resources.AntActionsBundle 实例源码

项目:intellij-ce-playground    文件:RunTargetAction.java   
@Override
public void update(AnActionEvent e) {
  super.update(e);

  final Presentation presentation = e.getPresentation();

  Pair<AntBuildFileBase, AntDomTarget> antTarget = findAntTarget(e);
  if (antTarget == null) {
    presentation.setEnabled(false);
    presentation.setText(AntActionsBundle.message("action.RunTargetAction.text", ""));
  } else {
    presentation.setEnabled(true);
    presentation.setText(AntActionsBundle.message("action.RunTargetAction.text", "'" + antTarget.second.getName().getValue() + "'"));
  }
}
项目:tools-idea    文件:RunTargetAction.java   
@Override
public void update(AnActionEvent e) {
  super.update(e);

  final Presentation presentation = e.getPresentation();

  Pair<AntBuildFileBase, AntDomTarget> antTarget = findAntTarget(e);
  if (antTarget == null) {
    presentation.setEnabled(false);
    presentation.setText(AntActionsBundle.message("action.RunTargetAction.text", ""));
  } else {
    presentation.setEnabled(true);
    presentation.setText(AntActionsBundle.message("action.RunTargetAction.text", "'" + antTarget.second.getName().getValue() + "'"));
  }
}
项目:consulo-apache-ant    文件:RunTargetAction.java   
@Override
public void update(AnActionEvent e) {
  super.update(e);

  final Presentation presentation = e.getPresentation();

  Pair<AntBuildFileBase, AntDomTarget> antTarget = findAntTarget(e);
  if (antTarget == null) {
    presentation.setEnabled(false);
    presentation.setText(AntActionsBundle.message("action.RunTargetAction.text", ""));
  } else {
    presentation.setEnabled(true);
    presentation.setText(AntActionsBundle.message("action.RunTargetAction.text", "'" + antTarget.second.getName().getValue() + "'"));
  }
}