Révision 2439

tmp/org.txm.properties.core/src/org/txm/properties/core/functions/Properties.java (revision 2439)
74 74
	 *            a MainCorpus or a SubCorpus
75 75
	 */
76 76
	public Properties(TXMResult selection) {
77
		super(selection);
77
		super(null, selection);
78
	}
79
	
80
	/**
81
	 * 
82
	 * @param parametersNodePath
83
	 */
84
	public Properties(String parametersNodePath) {
85
		this(parametersNodePath, null);
86
	}
87
	
88
	/**
89
	 * 
90
	 * @param parametersNodePath
91
	 */
92
	public Properties(String parametersNodePath, TXMResult parent) {
93
		super(parametersNodePath, parent);
78 94
		
79
		if (selection instanceof CQPCorpus) {
80
			computer = new CorpusPropertiesComputer(this, (CQPCorpus) selection);
95
		if (this.parent instanceof CQPCorpus) {
96
			computer = new CorpusPropertiesComputer(this, (CQPCorpus) this.parent);
81 97
		}
82 98
		else {
83
			computer = new PropertiesComputer<TXMResult>(this, selection) {
99
			computer = new PropertiesComputer<TXMResult>(this, this.parent) {
84 100
				
85 101
				@Override
86 102
				public List getComputableInformations() {
......
107 123
		}
108 124
	}
109 125
	
110
	/**
111
	 * 
112
	 * @param parametersNodePath
113
	 */
114
	public Properties(String parametersNodePath) {
115
		super(parametersNodePath);
116
	}
117
	
118
	/**
119
	 * 
120
	 * @param parametersNodePath
121
	 */
122
	public Properties(String parametersNodePath, TXMResult selection) {
123
		super(parametersNodePath, selection);
124
	}
125
	
126 126
	@Override
127 127
	public boolean loadParameters() {
128 128
		return true;

Formats disponibles : Unified diff