Révision 3987

TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/ImportClipboardText.java (revision 3987)
166 166
		// configure project
167 167
		Workspace w = Toolbox.workspace;
168 168
		Project project = w.getProject(clipboardDirectory.getName());
169
		if (project == null) {	
169
		if (project == null) {
170 170
			project = new Project(w, clipboardDirectory.getName());
171 171
		}
172 172
		project.setSourceDirectory(clipboardDirectory.getAbsolutePath());
......
174 174
		project.setEncoding("UTF-8"); //$NON-NLS-1$
175 175
		project.getEditionDefinition("default").setBuildEdition(true); //$NON-NLS-1$
176 176
		project.getCommandPreferences("concordance").set("view_reference_pattern",  //$NON-NLS-1$ //$NON-NLS-2$
177
				ReferencePattern.referenceToString(Arrays.asList("lbn"), null)); //$NON-NLS-1$
177
				ReferencePattern.referenceToString(Arrays.asList("text_id","lbn"), null)); //$NON-NLS-1$ //$NON-NLS-2$
178 178
		
179 179
		if (lang.length() == 0) lang = Locale.getDefault().getLanguage();
180 180
		if ("??".equals(lang)) { //$NON-NLS-1$
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/CommandsSection.java (revision 3987)
124 124
		}
125 125
		else {
126 126
			if ("txt".equals(editor.getImportName())) { //$NON-NLS-1$
127
				referencePatternText.setText("text_id,l_n"); //$NON-NLS-1$
128
				referencePatternProperties.setText("%s, %s"); //$NON-NLS-1$
127
				referencePatternText.setText("%s, %s"); //$NON-NLS-1$
128
				referencePatternProperties.setText("text_id,lbn"); //$NON-NLS-1$
129 129
			} else {
130 130
				referencePatternText.setText(""); //$NON-NLS-1$
131 131
				referencePatternProperties.setText(""); //$NON-NLS-1$

Formats disponibles : Unified diff