Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 248584
Collapse All | Expand All

(-)src/org/eclipse/uml2/uml/internal/operations/StateOperations.java (-3 / +3 lines)
Lines 249-262 Link Here
249
	 * <!-- begin-user-doc -->
249
	 * <!-- begin-user-doc -->
250
	 * <!-- end-user-doc -->
250
	 * <!-- end-user-doc -->
251
	 * <!-- begin-model-doc -->
251
	 * <!-- begin-model-doc -->
252
	 * A simple state is a state without any regions.
252
	 * A simple state does not have any regions and it does not refer to any sub-machine state machine.
253
	 * result = region.isEmpty()
253
	 * result = region.isEmpty() && !isSubmachineState()
254
	 * @param state The receiving '<em><b>State</b></em>' model object.
254
	 * @param state The receiving '<em><b>State</b></em>' model object.
255
	 * <!-- end-model-doc -->
255
	 * <!-- end-model-doc -->
256
	 * @generated NOT
256
	 * @generated NOT
257
	 */
257
	 */
258
	public static boolean isSimple(State state) {
258
	public static boolean isSimple(State state) {
259
		return state.getRegions().isEmpty();
259
		return state.getRegions().isEmpty() && !isSubmachineState(state);
260
	}
260
	}
261
261
262
	/**
262
	/**

Return to bug 248584