文章列表
http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg34581.html
https://bugs.eclipse.org/bugs/show_bug.cgi?id=255954
TPTP
Eclipse Test Performance Tools Platform
RCP 中调用JFreeChart:
1.
package jfreecharttest;
import java.awt.Font;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PiePlot; ...
程序避免多次启动方法:
1. 通过文件锁FileLock
加锁
private boolean tryLockFile()
{
try
{
File lockFile = new File(LOCKFILEPATH);
//文件不存在,创建文件失败时,返回
if (!lockFile.exists() && (!lockFile.createNewFile()))
{
...