Browse Source

REPORT-73532 F0017埋点新增content

feature/x
hades 2 years ago
parent
commit
652f8ac9a5
  1. 11
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/ProductNewsList.java

11
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/ProductNewsList.java

@ -4,6 +4,7 @@ import com.fr.design.DesignerEnvManager;
import com.fr.design.mainframe.alphafine.AlphaFineConstants;
import com.fr.design.mainframe.alphafine.AlphaFineHelper;
import com.fr.design.mainframe.alphafine.model.ProductNews;
import com.fr.design.utils.BrowseUtils;
import com.fr.log.FineLoggerFactory;
import java.awt.Cursor;
@ -63,15 +64,15 @@ public class ProductNewsList extends JList<ProductNews> {
private void dealWithClick() {
ProductNews productNews = getSelectedValue();
try {
Desktop.getDesktop().browse(new URI(productNews.getUrl()));
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
jumpToUrl(productNews.getUrl());
DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().getReadSet().add(productNews.getId());
AlphaFineHelper.getAlphaFineDialog().repaint();
}
private void jumpToUrl(String url) {
BrowseUtils.browser(url);
}
public int getHoverIndex() {
return hoverIndex;
}

Loading…
Cancel
Save