1 11 package org.eclipse.core.commands.operations; 12 13 27 public final class OperationHistoryFactory { 28 29 private static IOperationHistory operationHistory; 30 31 37 public static IOperationHistory getOperationHistory() { 38 if (operationHistory == null) { 39 operationHistory = new DefaultOperationHistory(); 40 } 41 return operationHistory; 42 } 43 44 55 public static void setOperationHistory(IOperationHistory history) { 56 if (operationHistory == null) { 58 operationHistory = history; 59 } 60 } 61 62 private OperationHistoryFactory() { 63 } 65 66 } 67 | Popular Tags |