]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling/src/org/simantics/modeling/subscription/SubscriptionCollectionResult.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / subscription / SubscriptionCollectionResult.java
1 /*******************************************************************************
2  * Copyright (c) 2011 Association for Decentralized Information Management in
3  * Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.modeling.subscription;
13
14 import java.util.List;
15
16 import org.eclipse.core.runtime.MultiStatus;
17 import org.simantics.history.util.subscription.SubscriptionItem;
18 import org.simantics.utils.datastructures.map.Tuple;
19
20 /**
21  * @author Tuukka Lehtonen
22  * 
23  * @see ModelHistoryCollector
24  * @see Subscription
25  */
26 public class SubscriptionCollectionResult extends Tuple {
27
28     private MultiStatus status;
29
30     public SubscriptionCollectionResult(List<SubscriptionItem> items, MultiStatus status) {
31         super(items);
32         this.status = status;
33     }
34
35     @SuppressWarnings("unchecked")
36     public List<SubscriptionItem> getSubscriptions() {
37         return (List<SubscriptionItem>) getField(0);
38     }
39
40     public MultiStatus getStatus() {
41         return status;
42     }
43
44 }