/** * Checks if the neccessary classes are obtainable * * @return <code>true</code> if the neccessary classes are obtainable */ protected boolean canBeEnabled() { DatabaseIdentifier databaseIdentifier = getDatabaseIdentifier(); if (databaseIdentifier == null) { return false; } IPlanService planService = SQLToolsFacade.getPlanService(databaseIdentifier); if (planService != null && planService.getPlanOption() != null) { return true; } return false; }
DatabaseIdentifier databaseIdentifier = getDatabaseIdentifier(); if (databaseIdentifier == null || sql == null)