Révision 780
| tmp/org.txm.libs.jfreechart/build.properties (revision 780) | ||
|---|---|---|
| 2 | 2 |
about.html,\ |
| 3 | 3 |
about_files/,\ |
| 4 | 4 |
lib/jcommon-1.0.21.jar,\ |
| 5 |
lib/jfreechart-1.0.17.jar,\ |
|
| 6 |
. |
|
| 5 |
.,\ |
|
| 6 |
lib/jfreechart-1.0.17.jar |
|
| 7 |
jars.compile.order = |
|
| tmp/org.txm.libs.jfreechart/.classpath (revision 780) | ||
|---|---|---|
| 1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 | 2 |
<classpath> |
| 3 |
<classpathentry exported="true" kind="lib" path="lib/jfreechart-1.0.17.jar"/> |
|
| 3 | 4 |
<classpathentry exported="true" kind="lib" path="lib/jcommon-1.0.21.jar"/> |
| 4 |
<classpathentry exported="true" kind="lib" path="lib/jfreechart-1.0.17.jar"/> |
|
| 5 | 5 |
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> |
| 6 | 6 |
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> |
| 7 | 7 |
<classpathentry kind="output" path="bin"/> |
| tmp/org.txm.statsengine.core/src/org/txm/statsengine/core/StatEngines.java (revision 780) | ||
|---|---|---|
| 48 | 48 |
try {
|
| 49 | 49 |
se.start(monitor); |
| 50 | 50 |
} catch (Exception e2) {
|
| 51 |
System.out.println("Error: fail to start StatEngine: "+se.getName()+": "+e2.getLocalizedMessage());
|
|
| 51 |
System.err.println("Error: fail to start StatEngine: "+se.getName()+": "+e2.getLocalizedMessage());
|
|
| 52 |
e2.printStackTrace(); |
|
| 52 | 53 |
} |
| 53 | 54 |
|
| 54 | 55 |
} |
| ... | ... | |
| 65 | 66 |
try {
|
| 66 | 67 |
se.stop(); |
| 67 | 68 |
} catch (Exception e2) {
|
| 68 |
System.out.println("Error: fail to stop StatEngine: "+se.getName()+": "+e2.getLocalizedMessage());
|
|
| 69 |
System.err.println("Error: fail to stop StatEngine: "+se.getName()+": "+e2.getLocalizedMessage());
|
|
| 70 |
e2.printStackTrace(); |
|
| 69 | 71 |
} |
| 70 | 72 |
} |
| 71 | 73 |
return true; |
| tmp/org.txm.chartsengine.r.rcp/META-INF/MANIFEST.MF (revision 780) | ||
|---|---|---|
| 11 | 11 |
org.txm.rcp;bundle-version="0.7.8" |
| 12 | 12 |
Bundle-Vendor: Textometrie.org |
| 13 | 13 |
Import-Package: org.txm.chartsengine.rcp.messages |
| 14 |
Export-Package: org.txm.rcp.chartsengine.r.preferences |
|
| tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/preferences/ChartsEnginePreferences.java (revision 780) | ||
|---|---|---|
| 95 | 95 |
Preferences preferences = DefaultScope.INSTANCE.getNode(PREFERENCES_NODE); |
| 96 | 96 |
|
| 97 | 97 |
preferences.put(CURRENT_NAME, "jfreechart_charts_engine"); //$NON-NLS-1$ |
| 98 |
// FIXME: for build tests |
|
| 99 |
//preferences.put(CURRENT_NAME, "r_charts_engine"); //$NON-NLS-1$ |
|
| 98 | 100 |
preferences.put(DEFAULT_EXPORT_FORMAT, "svg"); //$NON-NLS-1$ |
| 99 | 101 |
|
| 100 | 102 |
|
| tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEngine.java (revision 780) | ||
|---|---|---|
| 10 | 10 |
import org.eclipse.core.runtime.IConfigurationElement; |
| 11 | 11 |
import org.eclipse.core.runtime.IExtension; |
| 12 | 12 |
import org.eclipse.core.runtime.IExtensionPoint; |
| 13 |
import org.eclipse.core.runtime.InvalidRegistryObjectException; |
|
| 13 | 14 |
import org.eclipse.core.runtime.Platform; |
| 14 | 15 |
import org.eclipse.core.runtime.RegistryFactory; |
| 15 | 16 |
import org.txm.Engine; |
| ... | ... | |
| 222 | 223 |
*/ |
| 223 | 224 |
public static void createChartsEngines() {
|
| 224 | 225 |
|
| 225 |
Log.info("Looking for charts engines contributions with extension point id " + ChartsEngine.extensionPointId + ".");
|
|
| 226 |
|
|
| 227 |
ChartsEngine.chartsEngines = new ArrayList<ChartsEngine>(); |
|
| 228 |
ChartsEngine.currentChartsEngineIndex = 0; |
|
| 226 |
try {
|
|
| 227 |
Log.info("Looking for charts engines contributions with extension point id " + ChartsEngine.extensionPointId + ".");
|
|
| 228 |
|
|
| 229 |
ChartsEngine.chartsEngines = new ArrayList<ChartsEngine>(); |
|
| 230 |
ChartsEngine.currentChartsEngineIndex = 0; |
|
| 229 | 231 |
|
| 230 |
// FIXME: Debug: dump all installed extensions for each extension point id starting with "org.txm" |
|
| 231 |
IExtensionPoint[] points = RegistryFactory.getRegistry().getExtensionPoints(); |
|
| 232 |
for (int i = 0; i < points.length; i++) {
|
|
| 233 |
if(points[i].getUniqueIdentifier().startsWith("org.txm")) {
|
|
| 234 |
System.out.println("*********************ChartsEngine.createChartsEngines(): point id = " + points[i].getUniqueIdentifier());
|
|
| 235 |
IExtension[] extensions = points[i].getExtensions(); |
|
| 236 |
for (int j = 0; j < extensions.length; j++) {
|
|
| 237 |
System.out.println("----------------ChartsEngine.createChartsEngines(): " + extensions[j].getExtensionPointUniqueIdentifier());
|
|
| 238 |
System.out.println("ChartsEngine.createChartsEngines(): " + extensions[j].getLabel());
|
|
| 239 |
System.out.println("ChartsEngine.createChartsEngines(): " + extensions[j].getContributor().getName());
|
|
| 232 |
IConfigurationElement[] contributions = RegistryFactory.getRegistry().getConfigurationElementsFor(ChartsEngine.extensionPointId); |
|
| 233 |
|
|
| 234 |
Log.info(contributions.length + " charts engines found."); |
|
| 235 |
|
|
| 236 |
for(int i = 0; i < contributions.length; i++) {
|
|
| 237 |
try {
|
|
| 238 |
ChartsEngine chartsEngine = (ChartsEngine)contributions[i].createExecutableExtension("class"); //$NON-NLS-1$
|
|
| 239 |
chartsEngine.registerChartCreatorExtensions(); |
|
| 240 |
ChartsEngine.chartsEngines.add(chartsEngine); |
|
| 240 | 241 |
} |
| 242 |
catch(CoreException e) {
|
|
| 243 |
e.printStackTrace(); |
|
| 244 |
} |
|
| 241 | 245 |
} |
| 242 | 246 |
} |
| 243 |
|
|
| 244 |
IConfigurationElement[] contributions = RegistryFactory.getRegistry().getConfigurationElementsFor(ChartsEngine.extensionPointId); |
|
| 245 |
|
|
| 246 |
Log.info(contributions.length + " charts engines found."); |
|
| 247 |
|
|
| 248 |
for(int i = 0; i < contributions.length; i++) {
|
|
| 249 |
try {
|
|
| 250 |
ChartsEngine chartsEngine = (ChartsEngine)contributions[i].createExecutableExtension("class"); //$NON-NLS-1$
|
|
| 251 |
chartsEngine.registerChartCreatorExtensions(); |
|
| 252 |
ChartsEngine.chartsEngines.add(chartsEngine); |
|
| 253 |
} |
|
| 254 |
catch(CoreException e) {
|
|
| 255 |
e.printStackTrace(); |
|
| 256 |
} |
|
| 247 |
catch (InvalidRegistryObjectException e) {
|
|
| 248 |
// TODO Auto-generated catch block |
|
| 249 |
e.printStackTrace(); |
|
| 257 | 250 |
} |
| 258 | 251 |
} |
| 259 | 252 |
|
| tmp/org.txm.chartsengine.core/plugin.xml (revision 780) | ||
|---|---|---|
| 13 | 13 |
point="org.txm.EnginesManager"> |
| 14 | 14 |
<EngineManager |
| 15 | 15 |
class="org.txm.chartsengine.core.ChartEnginesManager" |
| 16 |
description="chart engines manager"
|
|
| 16 |
description="Charts Engines Manager"
|
|
| 17 | 17 |
name="org.txm.chartsengine.core.ChartEnginesManager"> |
| 18 | 18 |
</EngineManager> |
| 19 | 19 |
</extension> |
| tmp/org.txm.searchengine.core/src/org/txm/searchengine/core/SearchEngines.java (revision 780) | ||
|---|---|---|
| 46 | 46 |
System.out.println("Fail to initialize " + e.getName() + " search engine.");
|
| 47 | 47 |
} |
| 48 | 48 |
} catch(Exception e) {
|
| 49 |
System.out.println("Error: fail to instanciate " + contributions[i].getName() + ": " + e.getLocalizedMessage());
|
|
| 49 |
System.err.println("Error: fail to instanciate " + contributions[i].getName() + ": " + e.getLocalizedMessage());
|
|
| 50 | 50 |
e.printStackTrace(); |
| 51 | 51 |
} |
| 52 | 52 |
} |
| ... | ... | |
| 71 | 71 |
try {
|
| 72 | 72 |
se.start(monitor); |
| 73 | 73 |
} catch (Exception e2) {
|
| 74 |
System.out.println("Error: fail to start SearchEngine: " + se.getName() + ": " + e2.getLocalizedMessage());
|
|
| 74 |
System.err.println("Error: fail to start SearchEngine: " + se.getName() + ": " + e2.getLocalizedMessage());
|
|
| 75 |
e2.printStackTrace(); |
|
| 75 | 76 |
} |
| 76 | 77 |
} |
| 77 | 78 |
return true; |
| ... | ... | |
| 83 | 84 |
for (Engine e : engines.values()) {
|
| 84 | 85 |
|
| 85 | 86 |
SearchEngine se = (SearchEngine)e; |
| 86 |
System.out.println("Stoping "+ se.getName()+" searchengine.");
|
|
| 87 |
System.out.println("Stopping "+ se.getName()+" searchengine.");
|
|
| 87 | 88 |
try {
|
| 88 | 89 |
se.stop(); |
| 89 | 90 |
} catch (Exception e2) {
|
| 90 |
System.out.println("Error: fail to stop SearchEngine: " + se.getName() + ": " + e2.getLocalizedMessage());
|
|
| 91 |
System.err.println("Error: fail to stop SearchEngine: " + se.getName() + ": " + e2.getLocalizedMessage());
|
|
| 92 |
e2.printStackTrace(); |
|
| 91 | 93 |
} |
| 92 | 94 |
} |
| 93 | 95 |
return true; |
Formats disponibles : Unified diff