1 package com.quantum.actions;
3 import java.sql.Connection;
5 import com.quantum.model.Bookmark;
6 import com.quantum.util.connection.ConnectionUtil;
8 import org.eclipse.jface.action.Action;
9 import org.eclipse.swt.widgets.Shell;
14 public abstract class BaseSQLAction extends Action {
16 private ConnectionUtil connectionUtil = new ConnectionUtil();
18 protected abstract Shell getShell();
20 protected abstract Bookmark getBookmark();
22 protected Connection getConnection() {
23 return this.connectionUtil.getConnection(getBookmark(), getShell());