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