+ protected void setMock(String workingQuery, String jsonResponse)
+ {
+ mockQuery=workingQuery;
+ mockResponse = jsonResponse;
+ }
+
+ protected boolean isMocked()
+ {
+ return mockQuery != null && mockResponse!=null;
+ }
+
+ @Override
+ public String[] getPreferencesColumnsFor(PreferenceSource source)
+ {
+ String[] columnNames = null;
+ switch (source)
+ {
+ case SEARCH_SUMMARY:
+ columnNames = new String[] { "", "Display", "Group" };
+ break;
+ default:
+ // non structure sources don't return any other kind of preferences columns
+ break;
+ }
+ return columnNames;
+ }