< prev index next >
application/org.openjdk.jmc.flightrecorder.ui/src/main/java/org/openjdk/jmc/flightrecorder/ui/common/LaneEditor.java
Print this page
@@ -1,7 +1,8 @@
/*
- * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, Red Hat Inc. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
@@ -432,10 +433,14 @@
public boolean isRestLane() {
return isRestLane;
}
+ public boolean isEnabledAndNotRestLane() {
+ return enabled && !isRestLane;
+ }
+
@Override
public void saveTo(IWritableState writableState) {
writableState.putString(NAME, name);
StateToolkit.writeBoolean(writableState, ENABLED, enabled);
StateToolkit.writeBoolean(writableState, IS_REST_LANE, isRestLane);
< prev index next >