Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2008, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2008, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 11-16
Link Here
|
11 |
package org.eclipse.equinox.internal.p2.updatesite.metadata; |
11 |
package org.eclipse.equinox.internal.p2.updatesite.metadata; |
12 |
|
12 |
|
13 |
import java.net.URI; |
13 |
import java.net.URI; |
|
|
14 |
import java.util.Collection; |
14 |
import java.util.Map; |
15 |
import java.util.Map; |
15 |
import org.eclipse.core.runtime.IProgressMonitor; |
16 |
import org.eclipse.core.runtime.IProgressMonitor; |
16 |
import org.eclipse.equinox.p2.core.IProvisioningAgent; |
17 |
import org.eclipse.equinox.p2.core.IProvisioningAgent; |
Lines 32-101
Link Here
|
32 |
this.delegate = repository; |
33 |
this.delegate = repository; |
33 |
} |
34 |
} |
34 |
|
35 |
|
|
|
36 |
// TODO remove |
35 |
public void addInstallableUnits(IInstallableUnit[] installableUnits) { |
37 |
public void addInstallableUnits(IInstallableUnit[] installableUnits) { |
36 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
38 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
37 |
} |
39 |
} |
38 |
|
40 |
|
|
|
41 |
/* (non-Javadoc) |
42 |
* @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#addInstallableUnits(java.util.Collection) |
43 |
*/ |
44 |
public void addInstallableUnits(Collection<IInstallableUnit> installableUnits) { |
45 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
46 |
} |
47 |
|
48 |
/* (non-Javadoc) |
49 |
* @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#addReference(java.net.URI, java.lang.String, int, int) |
50 |
*/ |
39 |
public void addReference(URI location, String nickname, int type, int options) { |
51 |
public void addReference(URI location, String nickname, int type, int options) { |
40 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
52 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
41 |
} |
53 |
} |
42 |
|
54 |
|
|
|
55 |
/* (non-Javadoc) |
56 |
* @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#removeAll() |
57 |
*/ |
43 |
public void removeAll() { |
58 |
public void removeAll() { |
44 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
59 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
45 |
} |
60 |
} |
46 |
|
61 |
|
|
|
62 |
// TODO remove |
47 |
public boolean removeInstallableUnits(IInstallableUnit[] installableUnits, IProgressMonitor monitor) { |
63 |
public boolean removeInstallableUnits(IInstallableUnit[] installableUnits, IProgressMonitor monitor) { |
48 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
64 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
49 |
} |
65 |
} |
50 |
|
66 |
|
|
|
67 |
/* (non-Javadoc) |
68 |
* @see org.eclipse.equinox.p2.repository.metadata.IMetadataRepository#removeInstallableUnits(java.util.Collection) |
69 |
*/ |
70 |
public boolean removeInstallableUnits(Collection<IInstallableUnit> installableUnits) { |
71 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
72 |
} |
73 |
|
74 |
/* (non-Javadoc) |
75 |
* @see org.eclipse.equinox.p2.repository.IRepository#getDescription() |
76 |
*/ |
51 |
public String getDescription() { |
77 |
public String getDescription() { |
52 |
return delegate.getDescription(); |
78 |
return delegate.getDescription(); |
53 |
} |
79 |
} |
54 |
|
80 |
|
|
|
81 |
/* (non-Javadoc) |
82 |
* @see org.eclipse.equinox.p2.repository.IRepository#getLocation() |
83 |
*/ |
55 |
public URI getLocation() { |
84 |
public URI getLocation() { |
56 |
return location; |
85 |
return location; |
57 |
} |
86 |
} |
58 |
|
87 |
|
|
|
88 |
/* (non-Javadoc) |
89 |
* @see org.eclipse.equinox.p2.repository.IRepository#getName() |
90 |
*/ |
59 |
public String getName() { |
91 |
public String getName() { |
60 |
return delegate.getName(); |
92 |
return delegate.getName(); |
61 |
} |
93 |
} |
62 |
|
94 |
|
|
|
95 |
/* (non-Javadoc) |
96 |
* @see org.eclipse.equinox.p2.repository.IRepository#getProperties() |
97 |
*/ |
63 |
public Map<String, String> getProperties() { |
98 |
public Map<String, String> getProperties() { |
64 |
return delegate.getProperties(); |
99 |
return delegate.getProperties(); |
65 |
} |
100 |
} |
66 |
|
101 |
|
|
|
102 |
/* (non-Javadoc) |
103 |
* @see org.eclipse.equinox.p2.repository.IRepository#getProvider() |
104 |
*/ |
67 |
public String getProvider() { |
105 |
public String getProvider() { |
68 |
return delegate.getProvider(); |
106 |
return delegate.getProvider(); |
69 |
} |
107 |
} |
70 |
|
108 |
|
|
|
109 |
/* (non-Javadoc) |
110 |
* @see org.eclipse.equinox.p2.repository.IRepository#getProvisioningAgent() |
111 |
*/ |
71 |
public IProvisioningAgent getProvisioningAgent() { |
112 |
public IProvisioningAgent getProvisioningAgent() { |
72 |
return delegate.getProvisioningAgent(); |
113 |
return delegate.getProvisioningAgent(); |
73 |
} |
114 |
} |
74 |
|
115 |
|
|
|
116 |
/* (non-Javadoc) |
117 |
* @see org.eclipse.equinox.p2.repository.IRepository#getType() |
118 |
*/ |
75 |
public String getType() { |
119 |
public String getType() { |
76 |
return TYPE; |
120 |
return TYPE; |
77 |
} |
121 |
} |
78 |
|
122 |
|
|
|
123 |
/* (non-Javadoc) |
124 |
* @see org.eclipse.equinox.p2.repository.IRepository#getVersion() |
125 |
*/ |
79 |
public String getVersion() { |
126 |
public String getVersion() { |
80 |
return VERSION; |
127 |
return VERSION; |
81 |
} |
128 |
} |
82 |
|
129 |
|
|
|
130 |
/* (non-Javadoc) |
131 |
* @see org.eclipse.equinox.p2.repository.IRepository#isModifiable() |
132 |
*/ |
83 |
public boolean isModifiable() { |
133 |
public boolean isModifiable() { |
84 |
return false; |
134 |
return false; |
85 |
} |
135 |
} |
86 |
|
136 |
|
|
|
137 |
/* (non-Javadoc) |
138 |
* @see org.eclipse.equinox.p2.repository.IRepository#setDescription(java.lang.String) |
139 |
*/ |
87 |
public void setDescription(String description) { |
140 |
public void setDescription(String description) { |
88 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
141 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
89 |
} |
142 |
} |
90 |
|
143 |
|
|
|
144 |
/* (non-Javadoc) |
145 |
* @see org.eclipse.equinox.p2.repository.IRepository#setName(java.lang.String) |
146 |
*/ |
91 |
public void setName(String name) { |
147 |
public void setName(String name) { |
92 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
148 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
93 |
} |
149 |
} |
94 |
|
150 |
|
|
|
151 |
/* (non-Javadoc) |
152 |
* @see org.eclipse.equinox.p2.repository.IRepository#setProperty(java.lang.String, java.lang.String) |
153 |
*/ |
95 |
public String setProperty(String key, String value) { |
154 |
public String setProperty(String key, String value) { |
96 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
155 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
97 |
} |
156 |
} |
98 |
|
157 |
|
|
|
158 |
/* (non-Javadoc) |
159 |
* @see org.eclipse.equinox.p2.repository.IRepository#setProvider(java.lang.String) |
160 |
*/ |
99 |
public void setProvider(String provider) { |
161 |
public void setProvider(String provider) { |
100 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
162 |
throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ |
101 |
} |
163 |
} |
Lines 105-110
Link Here
|
105 |
return delegate.getAdapter(adapter); |
167 |
return delegate.getAdapter(adapter); |
106 |
} |
168 |
} |
107 |
|
169 |
|
|
|
170 |
/* (non-Javadoc) |
171 |
* @see org.eclipse.equinox.p2.query.IQueryable#query(org.eclipse.equinox.p2.query.IQuery, org.eclipse.core.runtime.IProgressMonitor) |
172 |
*/ |
108 |
public IQueryResult<IInstallableUnit> query(IQuery<IInstallableUnit> query, IProgressMonitor monitor) { |
173 |
public IQueryResult<IInstallableUnit> query(IQuery<IInstallableUnit> query, IProgressMonitor monitor) { |
109 |
return delegate.query(query, monitor); |
174 |
return delegate.query(query, monitor); |
110 |
} |
175 |
} |