Révision 1131

tmp/org.txm.index.core/src/org/txm/index/core/functions/Lexicon.java (revision 1131)
124 124
	 */
125 125
	public Lexicon(String parametersNodePath, TXMResult parent)	{
126 126
		super(parametersNodePath, parent);
127
		if(this.parent != null && this.parent instanceof Part)	{
128
			this.setVisible(false);
129
		}
130 127
	}
131 128

  
132 129
	@Override
tmp/org.txm.core/src/java/org/txm/core/preferences/TXMPreferences.java (revision 1131)
94 94
	public final static String BUNDLE_ID = "bundle_id"; //$NON-NLS-1$
95 95
	public final static String USER_NAME = "user_name"; //$NON-NLS-1$
96 96
	public final static String LAZY_NAME = "lazy_name"; //$NON-NLS-1$
97
	public final static String VISIBLE = "visible"; //$NON-NLS-1$
97 98
	
98 99
	// to shared strings in some command preferences
99 100
	/**
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 1131)
207 207

  
208 208
		
209 209
		this.weight = 0;
210
		this.visible = true;
211 210

  
212 211
		this.children = new ArrayList<TXMResult>(1);
213 212

  
......
262 261
			this.lazyName = this.getStringParameterValue(TXMPreferences.LAZY_NAME);
263 262
		}
264 263

  
264
		// retrieving visibility state
265
		if (this.parameterExists(TXMPreferences.VISIBLE)) {
266
			this.visible = this.getBooleanParameterValue(TXMPreferences.VISIBLE);
267
		}
268
		else	{
269
			this.visible = true;
270
		}
265 271
		
266 272
		// loads parameters from local result node, current command preferences or default command preferences
267 273
		try {
......
746 752
	}
747 753

  
748 754

  
755
	/**
756
	 * Checks if the specified parameter exists.
757
	 * @param key
758
	 * @return
759
	 */
760
	public boolean parameterExists(String key)	{
761
		return TXMPreferences.keyExists(this.parametersNodePath, key);
762
	}
763
	
749 764

  
750 765
	/**
751 766
	 * Stores the specified parameters pairs of key/value in a local node dedicated to the specified result. The node qualifier is generated by the <code>TXMResult.getUUID</code> method.
......
789 804
			this.saveParameter(TXMPreferences.USER_NAME, this.userName);	
790 805
		}
791 806
		this.saveParameter(TXMPreferences.LAZY_NAME, this.getSimpleName());	
792

  
807
		this.saveParameter(TXMPreferences.VISIBLE, this.visible);	
808
		
793 809
		this.saveParameter(TXMPreferences.RESULT_PARAMETERS_NODE_PATH, this.parametersNodePath);
794 810
		this.saveParameter(TXMPreferences.RESULT_UUID, this.uniqueID);
795 811
		this.saveParameter(TXMPreferences.BUNDLE_ID, this.commandPreferencesNodePath);
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/functions/LexicalTable.java (revision 1131)
201 201
		// parts lexicons
202 202
		List<Lexicon> partsLexicons = new ArrayList<Lexicon>();
203 203
		for (int i = 0; i < partition.getNPart(); i++) {
204
			partsLexicons.add(Lexicon.getLexicon(partition.getParts().get(i), this.property, this.monitor));
204
			Lexicon l = Lexicon.getLexicon(partition.getParts().get(i), this.property, this.monitor);
205
			l.setVisible(false);
206
			partsLexicons.add(l);
205 207
		}
206 208

  
207 209
		// Corpus global lexicon
208 210
		Lexicon corpusLexicon = Lexicon.getLexicon(partition.getParent(), this.property, this.monitor);
211
		corpusLexicon.setVisible(false);
209 212

  
210 213
		ArrayList<String> filteredForms = new ArrayList<String>();
211 214
		//create a copy and filter line with Fmin;

Formats disponibles : Unified diff