import java.sql.SQLException;
import java.util.Iterator;
+import com.quantum.Messages;
import com.quantum.QuantumPlugin;
import com.quantum.model.Column;
import com.quantum.model.EntityHolder;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.ui.IViewPart;
import org.eclipse.ui.actions.SelectionListenerAction;
public class CustomCopyAction extends SelectionListenerAction {
private final int ind;
- /**
- * @param BookmarkView
- */
- public CustomCopyAction(IViewPart view, int ind) {
- super(null);
+ public CustomCopyAction( int ind ) {
+ super(Messages.getString(CustomCopyAction.class.getName() + ".text"));
this.ind = ind;
}
public void run() {
String copyText = "";
- Iterator iter = getSelectedNonResources().iterator();
+ Iterator iter = getSelectedNonResources().iterator();
NthLevelConverter converter = new NthLevelConverter();
// Fill up the converter. We iterate the selection items
while (iter.hasNext()) {
new Object[] { copyText },
new Transfer[] { TextTransfer.getInstance()});
}
+
}