Révision 3098
tmp/org.txm.chartsengine.raster.rcp/src/org/txm/chartsengine/raster/rcp/RasterImageChartsComponentProvider.java (revision 3098) | ||
---|---|---|
7 | 7 |
import org.eclipse.swt.graphics.Image; |
8 | 8 |
import org.eclipse.swt.widgets.Composite; |
9 | 9 |
import org.eclipse.ui.IEditorPart; |
10 |
import org.eclipse.ui.IWorkbenchPage; |
|
11 |
import org.eclipse.ui.IWorkbenchWindow; |
|
12 |
import org.eclipse.ui.PlatformUI; |
|
13 |
import org.txm.chartsengine.core.ChartCreator; |
|
14 | 10 |
import org.txm.chartsengine.core.ChartsEngine; |
15 |
import org.txm.chartsengine.core.results.ChartResult; |
|
16 | 11 |
import org.txm.chartsengine.raster.rcp.swt.RasterComposite; |
17 | 12 |
import org.txm.chartsengine.rcp.SWTChartsComponentsProvider; |
18 |
import org.txm.chartsengine.rcp.editors.ChartEditorInput; |
|
19 | 13 |
import org.txm.chartsengine.rcp.editors.ChartEditor; |
20 | 14 |
import org.txm.chartsengine.rcp.swt.ChartComposite; |
21 | 15 |
import org.txm.rcp.commands.OpenBrowser; |
22 |
import org.txm.rcp.editors.TXMBrowser; |
|
23 |
import org.txm.rcp.editors.TXMWebBrowserEditor; |
|
16 |
import org.txm.rcp.editors.TXMBrowserEditor; |
|
24 | 17 |
import org.txm.rcp.utils.OpenURI; |
25 | 18 |
|
26 | 19 |
/** |
... | ... | |
151 | 144 |
// And yes if we really still need these format PNG, JPG, the (ChartEditor) cast doesn't work for the CA chart |
152 | 145 |
// FIXME : need to globally check this class, it has been quickly developed for retrocompatiblity with PNG and JPEG formats |
153 | 146 |
public IEditorPart openFile(String editorname, Image titleImage, File file) { |
154 |
TXMBrowser editor = OpenBrowser.openfile(file.getAbsolutePath(), editorname); |
|
147 |
TXMBrowserEditor editor = OpenBrowser.openfile(file.getAbsolutePath(), editorname);
|
|
155 | 148 |
editor.setTitleImage(titleImage); |
156 | 149 |
return editor; |
157 | 150 |
} |
Formats disponibles : Unified diff