1 11 package org.eclipse.jdt.internal.corext.refactoring.reorg; 12 13 import org.eclipse.core.runtime.OperationCanceledException; 14 15 20 public final class NullReorgQueries implements IReorgQueries { 21 22 23 private static final class NullConfirmQuery implements IConfirmQuery { 24 25 28 public boolean confirm(String question) throws OperationCanceledException { 29 return true; 30 } 31 32 35 public boolean confirm(String question, Object [] elements) throws OperationCanceledException { 36 return true; 37 } 38 } 39 40 41 private static final IConfirmQuery NULL_QUERY= new NullConfirmQuery(); 42 43 46 public IConfirmQuery createSkipQuery(String queryTitle, int queryID) { 47 return NULL_QUERY; 48 } 49 50 53 public IConfirmQuery createYesNoQuery(String queryTitle, boolean allowCancel, int queryID) { 54 return NULL_QUERY; 55 } 56 57 60 public IConfirmQuery createYesYesToAllNoNoToAllQuery(String queryTitle, boolean allowCancel, int queryID) { 61 return NULL_QUERY; 62 } 63 } 64 | Popular Tags |