01: /*
02: * To change this template, choose Tools | Templates
03: * and open the template in the editor.
04: */
05: package org.netbeans.modules.bpel.design.actions;
06:
07: import org.netbeans.modules.bpel.design.DesignView;
08:
09: /**
10: *
11: * @author Alexey
12: */
13: public abstract class DesignModeAction extends DesignViewAction {
14:
15: private static final long serialVersionUID = 1L;
16:
17: public DesignModeAction(DesignView view) {
18: super (view);
19: }
20:
21: @Override
22: public boolean isEnabled() {
23: return super.isEnabled()
24: && !getDesignView().getModel().isReadOnly()
25: && getDesignView().isDesignMode();
26: }
27: }
|