robotoworks / mechanoid

Eclipse plugin providing a set of DSL's for the rapid development of Android apps
58 stars 26 forks source link

[MECHOPS] Decouple operation state with OpeartionContext #175

Closed fluxtah closed 11 years ago

fluxtah commented 11 years ago

At the moment an operation has fields to track its state (wether its aborted, the intent that was used to start the operation, etc).

Ideally state should be decoupled so operations become lightweight execution containers (a bit like Runnable) where state can be tracked with an OperationContext.

Another benefit of doing this is for testing, you can provide an Operation with a mock context.