/** * Returns a database-specific query plan service class. * */ public static IPlanService getPlanService(DatabaseIdentifier databaseIdentifier) { SQLDevToolsConfiguration f = getConfiguration(null, databaseIdentifier); return f.getPlanService(); }
/** * Return all the available plan options * * @return */ public static Collection getPlanOptions() { Collection c = getRegistry().getConfigurations(); int size = c.size(); SQLDevToolsConfiguration[] fs = (SQLDevToolsConfiguration[]) c.toArray(new SQLDevToolsConfiguration[size]); Collection planOps = new ArrayList(); for (int i = 0; i < size; i++) { planOps.add(fs[i].getPlanService().getPlanOption()); } return planOps; }
IPlanOption planOption = config.getPlanService().getPlanOption(); if (planOption != null && (actionServie.supportsAction(ISQLEditorActionConstants.EXPLAIN_SQL_ACTION_ID)))