Révision 3168
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/OpenBrowser.java (revision 3168) | ||
---|---|---|
178 | 178 |
*/ |
179 | 179 |
public static TXMBrowserEditor openEdition(String filepath, String editorname) { |
180 | 180 |
try { |
181 |
// WebBrowserEditorInput editorInput = new WebBrowserEditorInput(); |
|
182 |
// TODO: is web browser type order useful ? |
|
183 |
// System.setProperty("org.eclipse.swt.browser.DefaultType", "ie,mozilla,webkit"); |
|
184 |
// System.setProperty("org.eclipse.swt.browser.XULRunnerPath", ""); |
|
181 |
|
|
185 | 182 |
WebBrowserEditorInput editorInput; |
186 | 183 |
File localfile = new File(filepath); |
187 |
if (localfile == null || localfile.length() == 0)
|
|
184 |
if (filepath == null || filepath.length() == 0)
|
|
188 | 185 |
editorInput = new WebBrowserEditorInput(null, BrowserViewer.BUTTON_BAR | BrowserViewer.LOCATION_BAR); |
189 | 186 |
else if (localfile.exists()) |
190 | 187 |
editorInput = new WebBrowserEditorInput(localfile.toURI().toURL(), BrowserViewer.BUTTON_BAR | BrowserViewer.LOCATION_BAR); |
Formats disponibles : Unified diff