1) Added handling of conditional breakpoint to addBreakoint method.
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / actions / NextSequenceAction.java
1 package com.quantum.actions;
2
3 import com.quantum.ImageStore;
4 import com.quantum.Messages;
5 import com.quantum.adapters.DatabaseAdapter;
6 import com.quantum.view.bookmark.EntityNode;
7
8 import org.eclipse.ui.IViewPart;
9
10 public class NextSequenceAction extends BaseSequenceAction {
11     
12     /**
13      * @param text
14      * @param view
15      */
16     public NextSequenceAction(IViewPart view) {
17         super(Messages.getString(NextSequenceAction.class, "text"), view);
18         setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.APPEND));    
19     }
20     
21         /**
22          * @param sequence
23          * @param name
24          * @param adapter
25          * @return
26          */
27         protected String getQuery(EntityNode sequence, String name, DatabaseAdapter adapter) {
28                 return adapter.getNextValue(name, sequence.getEntity().getSchema());
29         }
30 }