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