|
|
|
@ -2,11 +2,10 @@ package com.fr.design.mainframe.alphafine.cell.model;
|
|
|
|
|
|
|
|
|
|
import com.fr.design.mainframe.alphafine.AlphaFineConstants; |
|
|
|
|
import com.fr.design.mainframe.alphafine.CellType; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.json.JSONException; |
|
|
|
|
import com.fr.json.JSONObject; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
|
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.Desktop; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.net.URI; |
|
|
|
|
import java.net.URISyntaxException; |
|
|
|
@ -60,8 +59,15 @@ public class DocumentModel extends AlphaCellModel {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doAction() { |
|
|
|
|
openInBrowser(getDocumentUrl()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 方便埋点 |
|
|
|
|
* */ |
|
|
|
|
void openInBrowser(String url) { |
|
|
|
|
try { |
|
|
|
|
Desktop.getDesktop().browse(new URI(getDocumentUrl())); |
|
|
|
|
Desktop.getDesktop().browse(new URI(url)); |
|
|
|
|
} catch (IOException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
} catch (URISyntaxException e) { |
|
|
|
|