components/visual-panels/core/src/java/vpanels/panel/com/oracle/solaris/vp/panel/common/smf/InstanceManagedObject.java
equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. |
23 * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. |
24 */ |
24 */ |
25 |
25 |
26 package com.oracle.solaris.vp.panel.common.smf; |
26 package com.oracle.solaris.vp.panel.common.smf; |
27 |
27 |
28 import java.beans.PropertyChangeEvent; |
28 import java.beans.PropertyChangeEvent; |
131 /* More or less true */ |
131 /* More or less true */ |
132 return state != state.DISABLED; |
132 return state != state.DISABLED; |
133 } |
133 } |
134 |
134 |
135 public void setEnabled(boolean enable) throws ScfException { |
135 public void setEnabled(boolean enable) throws ScfException { |
136 ServiceMXBean bean = getService(); |
136 ServiceBean bean = getService(); |
137 if (bean != null) { |
137 if (bean != null) { |
138 bean.setPersistentlyEnabled(enable); |
138 bean.setPersistentlyEnabled(enable); |
139 } |
139 } |
140 } |
140 } |
141 } |
141 } |