Révision 1151

tmp/org.txm.statsengine.r.rcp/plugin.xml (revision 1151)
83 83
               style="push">
84 84
            <parameter
85 85
                  name="org.eclipse.ui.views.showView.viewId"
86
                  value="RConsoleView">
86
                  value="org.txm.statsengine.r.rcp.views.RConsole">
87 87
            </parameter>
88 88
         </command>
89 89
         <command
......
93 93
               style="push">
94 94
            <parameter
95 95
                  name="org.eclipse.ui.views.showView.viewId"
96
                  value="RVariablesView">
96
                  value="org.txm.statsengine.r.rcp.views.RVariablesView">
97 97
            </parameter>
98 98
         </command>
99 99
      </menuContribution>
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/functions/LexicalTable.java (revision 1151)
482 482
	 * @throws Exception 
483 483
	 */
484 484
	public int getNColumns() throws Exception {
485
		return statsData.getNColumns();
485
		if (statsData != null) {
486
			return statsData.getNColumns();
487
		} else if (parent instanceof Partition) {
488
			return ((Partition)parent).getPartsCount();
489
		}  else if (parent instanceof PartitionIndex) {
490
			return ((PartitionIndex)parent).getPartition().getPartsCount();
491
		}
492
		return 1;
486 493
	}
487 494

  
488

  
489

  
490 495
	/**
491 496
	 * Gets the rows count.
492 497
	 * @return
tmp/org.txm.statsengine.r.core/plugin.xml (revision 1151)
21 21
            class="org.txm.statsengine.r.core.RStatsEngine">
22 22
      </StatsEngine>
23 23
   </extension>
24
   <extension
25
         point="org.txm.core.engines.ScriptEngine">
26
      <ScriptEngine
27
            class="org.txm.statsengine.r.core.RScriptEngine"
28
            name="R">
29
      </ScriptEngine>
30
   </extension>
24 31

  
25 32
</plugin>
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/Part.java (revision 1151)
56 56
		this.userName = partName;
57 57
		this.pQuery = new CQLQuery(query);
58 58
		this.pID = CqpObject.partNamePrefix + CQPCorpus.getNextSubcorpusCounter();
59
		
59
		this.pName = partName;
60 60
		this.setVisible(false);
61 61
		this.internalPersistable = true;
62 62
		this.userPersistable = false;
tmp/org.txm.rcp/src/main/java/org/txm/rcp/handlers/scripts/ExecuteScript.java (revision 1151)
191 191
		String ext = script.getName();
192 192
		int i = ext.lastIndexOf(".");
193 193
		if (i > 0) {
194
			ext = ext.substring(i);
194
			ext = ext.substring(i+1);
195 195
		}
196 196

  
197 197
		if ("groovy".equals(ext)) { // TODO make Groovy a script engine
tmp/org.txm.core/plugin.xml (revision 1151)
6 6
   <extension-point id="org.txm.PostInstallationStep" name="Post installation step" schema="schema/org.txm.PostInstallationStep.exsd"/>
7 7
   <extension-point id="org.txm.PostTXMHOMEInstallationStep" name="Post TXMHome installation step" schema="schema/org.txm.org.txm.PostTXMHOMEInstallationStep.exsd"/>
8 8
   <extension-point id="org.txm.core.engines.ImportEngine" name="org.txm.core.engines.ImportEngine" schema="schema/org.txm.core.engines.ImportEngine.exsd"/>
9
   <extension-point id="org.txm.core.engines.ScriptEngine" name="org.txm.core.engines.ScriptEngine" schema="schema/org.txm.core.engines.ScriptEngine.exsd"/>
9 10
   <extension
10 11
         point="org.eclipse.core.runtime.preferences">
11 12
      <initializer
......
29 30
            description="Import engines manager"
30 31
            name="ImportEngines">
31 32
      </EngineManager>
33
      <EngineManager
34
            class="org.txm.core.engines.ScriptEnginesManager"
35
            description="Script engines manager"
36
            name="ScriptEngines">
37
      </EngineManager>
32 38
   </extension>
33 39

  
34 40
</plugin>
tmp/org.txm.core/schema/org.txm.core.engines.ScriptEngine.exsd (revision 1151)
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.txm.core" xmlns="http://www.w3.org/2001/XMLSchema">
4
<annotation>
5
      <appinfo>
6
         <meta.schema plugin="org.txm.core" id="org.txm.core.engines.ScriptEngine" name="org.txm.core.engines.ScriptEngine"/>
7
      </appinfo>
8
      <documentation>
9
         [Enter description of this extension point.]
10
      </documentation>
11
   </annotation>
12

  
13
   <element name="extension">
14
      <annotation>
15
         <appinfo>
16
            <meta.element />
17
         </appinfo>
18
      </annotation>
19
      <complexType>
20
         <choice minOccurs="1" maxOccurs="unbounded">
21
            <element ref="ScriptEngine"/>
22
         </choice>
23
         <attribute name="point" type="string" use="required">
24
            <annotation>
25
               <documentation>
26
                  
27
               </documentation>
28
            </annotation>
29
         </attribute>
30
         <attribute name="id" type="string">
31
            <annotation>
32
               <documentation>
33
                  
34
               </documentation>
35
            </annotation>
36
         </attribute>
37
         <attribute name="name" type="string">
38
            <annotation>
39
               <documentation>
40
                  
41
               </documentation>
42
               <appinfo>
43
                  <meta.attribute translatable="true"/>
44
               </appinfo>
45
            </annotation>
46
         </attribute>
47
      </complexType>
48
   </element>
49

  
50
   <element name="ScriptEngine">
51
      <complexType>
52
         <attribute name="class" type="string" use="required">
53
            <annotation>
54
               <documentation>
55
                  
56
               </documentation>
57
               <appinfo>
58
                  <meta.attribute kind="java" basedOn="org.txm.core.engines.ScriptEngine:"/>
59
               </appinfo>
60
            </annotation>
61
         </attribute>
62
         <attribute name="name" type="string" use="required">
63
            <annotation>
64
               <documentation>
65
                  
66
               </documentation>
67
            </annotation>
68
         </attribute>
69
      </complexType>
70
   </element>
71

  
72
   <annotation>
73
      <appinfo>
74
         <meta.section type="since"/>
75
      </appinfo>
76
      <documentation>
77
         [Enter the first release in which this extension point appears.]
78
      </documentation>
79
   </annotation>
80

  
81
   <annotation>
82
      <appinfo>
83
         <meta.section type="examples"/>
84
      </appinfo>
85
      <documentation>
86
         [Enter extension point usage example here.]
87
      </documentation>
88
   </annotation>
89

  
90
   <annotation>
91
      <appinfo>
92
         <meta.section type="apiinfo"/>
93
      </appinfo>
94
      <documentation>
95
         [Enter API information here.]
96
      </documentation>
97
   </annotation>
98

  
99
   <annotation>
100
      <appinfo>
101
         <meta.section type="implementation"/>
102
      </appinfo>
103
      <documentation>
104
         [Enter information about supplied implementation of this extension point.]
105
      </documentation>
106
   </annotation>
107

  
108

  
109
</schema>
0 110

  

Formats disponibles : Unified diff