Révision 3565

TXM/trunk/org.txm.internalview.core/src/org/txm/internalview/core/functions/InternalView.java (revision 3565)
100 100
			String str = this.getStringParameterValue(TXMPreferences.STRUCTURAL_UNIT);
101 101
			if (str.length() == 0) {
102 102
				try {
103
					StructuralUnit struct = this.getCorpus().getStructuralUnit("text");
103
					StructuralUnit struct = this.getCorpus().getStructuralUnit("text"); //$NON-NLS-1$
104 104
					if (struct != null) {
105 105
						this.pStructuralUnit = struct;
106 106
					}
107
					struct = this.getCorpus().getStructuralUnit("div");
107
					struct = this.getCorpus().getStructuralUnit("div"); //$NON-NLS-1$
108 108
					if (struct != null) {
109 109
						this.pStructuralUnit = struct;
110 110
					}
111
					struct = this.getCorpus().getStructuralUnit("p");
111
					struct = this.getCorpus().getStructuralUnit("p"); //$NON-NLS-1$
112 112
					if (struct != null) {
113 113
						this.pStructuralUnit = struct;
114 114
					}
......
304 304
	
305 305
	@Override
306 306
	public String getSimpleName() {
307
		try {
308
			return this.pStructuralUnit.getName() + " (" + (this.pCurrentPage + 1) + " / " + this.nmatches + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
307
		if(!this.hasBeenComputedOnce()) {
308
			return null;
309 309
		}
310
		catch (Exception e) {
311
			return this.getEmptyName();
310
		else {
311
			try {
312
				return this.pStructuralUnit.getName() + " (" + (this.pCurrentPage + 1) + " / " + this.nmatches + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
313
			}
314
			catch (Exception e) {
315
				return null;
316
			}
312 317
		}
313 318
	}
314 319
	
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/handlers/BaseAbstractHandler.java (revision 3565)
175 175
	 * @param selection
176 176
	 */
177 177
	protected boolean logCanNotExecuteCommand(Object selection) {
178
		Log.severe(StatsEngineCoreMessages.bind(StatsEngineCoreMessages.CanNotExecuteTheP0CommandWithTheP1Selection, this.getClass(), selection)); //$NON-NLS-2$ //$NON-NLS-3$
178
		Log.severe(StatsEngineCoreMessages.bind(StatsEngineCoreMessages.CanNotExecuteTheP0CommandWithTheP1Selection, this.getClass(), selection));
179 179
		return false;
180 180
	}
181 181
	
TXM/trunk/org.txm.internalview.rcp/src/org/txm/internalview/rcp/editors/InternalViewEditor.java (revision 3565)
28 28
import org.txm.core.preferences.TXMPreferences;
29 29
import org.txm.core.results.Parameter;
30 30
import org.txm.internalview.core.functions.InternalView;
31
import org.txm.internalview.core.preferences.InternalViewPreferences;
32 31
import org.txm.internalview.rcp.messages.InternalViewUIMessages;
33 32
import org.txm.rcp.editors.TXMEditor;
34 33
import org.txm.rcp.editors.TableKeyListener;
TXM/trunk/org.txm.internalview.rcp/src/org/txm/internalview/rcp/handlers/ComputeInternalView.java (revision 3565)
8 8
import org.txm.rcp.editors.TXMEditor;
9 9
import org.txm.rcp.handlers.BaseAbstractHandler;
10 10
import org.txm.searchengine.cqp.corpus.CQPCorpus;
11
import org.txm.utils.logger.Log;
11 12

  
12 13
/**
13 14
 * Opens an internal view editor.
......
39 40
			internalView = (InternalView) selection;
40 41
		}
41 42
		else {
42
			System.out.println(InternalViewUIMessages.errorColonSelectionIsNotACorpus);
43
			Log.warning(InternalViewUIMessages.errorColonSelectionIsNotACorpus);
43 44
			return null;
44 45
		}
45 46
		

Formats disponibles : Unified diff