1 package com.quantum.actions;
3 import com.quantum.ImageStore;
4 import com.quantum.Messages;
5 import com.quantum.adapters.DatabaseAdapter;
6 import com.quantum.view.bookmark.EntityNode;
8 import org.eclipse.ui.IViewPart;
10 public class NextSequenceAction extends BaseSequenceAction {
16 public NextSequenceAction(IViewPart view) {
17 super(Messages.getString(NextSequenceAction.class, "text"), view);
18 setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.APPEND));
27 protected String getQuery(EntityNode sequence, String name, DatabaseAdapter adapter) {
28 return adapter.getNextValue(name, sequence.getEntity().getSchema());