//	 !!! -- same as in ExtractTempRefactoring
  private boolean isLiteralNodeSelected() throws JavaScriptModelException {
    IExpressionFragment fragment = getSelectedExpression();
    if (fragment == null) return false;
    Expression expression = fragment.getAssociatedExpression();
    if (expression == null) return false;
    switch (expression.getNodeType()) {
      case ASTNode.BOOLEAN_LITERAL:
      case ASTNode.CHARACTER_LITERAL:
      case ASTNode.NULL_LITERAL:
      case ASTNode.NUMBER_LITERAL:
      case ASTNode.UNDEFINED_LITERAL:
      case ASTNode.REGULAR_EXPRESSION_LITERAL:
        return true;

      default:
        return false;
    }
  }