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 163352 | Differences between
and this patch

Collapse All | Expand All

(-)src-common-internal/org/eclipse/hyades/ui/filters/internal/util/FilterResourceFileHandler.java (+36 lines)
Lines 13-19 Link Here
13
package org.eclipse.hyades.ui.filters.internal.util;
13
package org.eclipse.hyades.ui.filters.internal.util;
14
14
15
import java.io.IOException;
15
import java.io.IOException;
16
import java.io.InputStream;
17
import java.io.OutputStream;
16
import java.util.Collections;
18
import java.util.Collections;
19
import java.util.Map;
17
import java.util.Vector;
20
import java.util.Vector;
18
21
19
import org.eclipse.emf.common.util.URI;
22
import org.eclipse.emf.common.util.URI;
Lines 120-125 Link Here
120
		}	
123
		}	
121
	}
124
	}
122
	
125
	
126
	public void save(OutputStream oStream,Map resourceMap)
127
	{
128
		try
129
		{
130
	    	if (_resource instanceof XMLResource) {
131
	    		((XMLResource)_resource).setEncoding("UTF-8");
132
	    	}
133
			_resource.save(oStream,resourceMap);
134
			
135
		} catch (IOException e) {
136
			CommonPlugin.logError(e);
137
		}	
138
	}
139
	
140
	public void load(InputStream is,Map resourceMap)
141
	{
142
		if (_resource == null)
143
		{
144
			restoreResource();
145
		}
146
		else
147
		{
148
			try
149
			{			
150
				unload(false);
151
				_resource.load(is,resourceMap);
152
			}
153
			catch (IOException e) {
154
				CommonPlugin.logError(e);
155
			}				
156
		}
157
	}
158
	
123
	public void load()
159
	public void load()
124
	{
160
	{
125
		if (_resource == null)
161
		if (_resource == null)

Return to bug 163352