return true;
}
public void dropObject(final DBSchemaObject object) {
final ConnectionHandler connectionHandler = object.getConnectionHandler();
final DatabaseDDLInterface ddlInterface = connectionHandler.getInterfaceProvider().getDDLInterface();
int response = Messages.showYesNoDialog(
"Are you sure you want to drop the " + object.getQualifiedNameWithType() + "?",
Constants.DBN_TITLE_PREFIX + "Drop object",
Messages.getQuestionIcon());
if (response == 0) {
new BackgroundTask(object.getProject(), "Dropping " + object.getQualifiedNameWithType(), false) {
public void execute(@NotNull ProgressIndicator progressIndicator) throws InterruptedException {
try {
initProgressIndicator(progressIndicator, true);
ddlInterface.dropObject(object.getTypeName(), object.getQualifiedName(), connectionHandler.getStandaloneConnection());
/*Messages.showInfoMessage(
NamingUtil.capitalize(object.getTypeName()) + " " + object.getQualifiedName() + " was dropped successfully.",
"Database Navigator - Object dropped");*/