Révision 3468

TXM/trunk/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/PatchCwbRegistry.java (revision 3468)
40 40
import org.txm.utils.io.IOUtils;
41 41
import org.txm.utils.logger.Log;
42 42

  
43
// TODO: Auto-generated Javadoc
44 43
/**
45 44
 * The Class PatchCwbRegistry.
46 45
 */
......
130 129
		String line = reader.readLine();
131 130
		while (line != null) {
132 131
			if (line.startsWith("##:: charset") || line.startsWith("charset")) { //$NON-NLS-1$ //$NON-NLS-2$
133
				writer.write("charset = \"" + corpusEncoding + "\" # change if your corpus uses dif ferent charset : latin1, latin2 ... utf-8\n"); //$NON-NLS-1$ //$NON-NLS-2$
132
				writer.write("charset = \"" + corpusEncoding + "\" # change if your corpus uses different charset : latin1, latin2 ... utf-8\n"); //$NON-NLS-1$ //$NON-NLS-2$
134 133
			} else {
135 134
				writer.write(line + "\n"); //$NON-NLS-1$
136 135
			}
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/TextualPlansSection.java (revision 3468)
68 68
	@Override
69 69
	public void updateFields(Project project) {
70 70
		if (this.section != null && !section.isDisposed()) {
71
			outsideTextElementsText.setText(project.getTextualPlan("OutSideTextTags")); //$NON-NLS-1$
71
			outsideTextElementsText.setText(project.getTextualPlan("OutSideTextTags", "teiHeader")); //$NON-NLS-1$
72 72
			outsideTextElementsToEditText.setText(project.getTextualPlan("OutSideTextTagsAndKeepContent")); //$NON-NLS-1$
73 73
		}
74 74
	}
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/perspective/TXMPerspective.java (revision 3468)
59 59
		String editorArea = layout.getEditorArea();
60 60
		layout.setEditorAreaVisible(true);
61 61
		
62
		IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.20f, editorArea); //$NON-NLS-1$
62
		IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.15f, editorArea); //$NON-NLS-1$
63 63
		left.addView(CorporaView.ID);
64
		left.addView(Explorer.ID);
64
		//left.addView(Explorer.ID);
65 65
		
66 66
		layout.getViewLayout(CorporaView.ID).setCloseable(false);
67
		layout.getViewLayout(Explorer.ID).setCloseable(true);
67
		//layout.getViewLayout(Explorer.ID).setCloseable(true);
68 68
		
69
		IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f, editorArea); //$NON-NLS-1$
69
		IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, editorArea); //$NON-NLS-1$
70 70
		// bottom.addView(IPageLayout.ID_OUTLINE);
71 71
		bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
72 72
		// bottom.addView("org.eclipse.ui.views.ProgressView"); //$NON-NLS-1$
TXM/trunk/org.txm.xmleditor.rcp/src/org/txm/xmleditor/OpenXMLEditor.java (revision 3468)
1 1
package org.txm.xmleditor;
2 2

  
3 3
import java.io.File;
4
import java.net.URI;
5 4

  
6 5
import org.eclipse.core.commands.AbstractHandler;
7 6
import org.eclipse.core.commands.ExecutionEvent;
8 7
import org.eclipse.core.commands.ExecutionException;
9 8
import org.eclipse.core.filesystem.EFS;
10 9
import org.eclipse.core.filesystem.IFileStore;
11
import org.eclipse.core.resources.IResource;
12
import org.eclipse.core.runtime.CoreException;
13
import org.eclipse.core.runtime.FileLocator;
14
import org.eclipse.core.runtime.Path;
15 10
import org.eclipse.jface.dialogs.MessageDialog;
16 11
import org.eclipse.jface.viewers.ISelection;
17 12
import org.eclipse.jface.viewers.IStructuredSelection;
18
import org.eclipse.search.ui.ISearchQuery;
19
import org.eclipse.search.ui.NewSearchUI;
20
import org.eclipse.search.ui.text.TextSearchQueryProvider;
21 13
import org.eclipse.swt.SWT;
22 14
import org.eclipse.swt.widgets.FileDialog;
23 15
import org.eclipse.swt.widgets.Shell;
24
import org.eclipse.ui.IEditorInput;
25 16
import org.eclipse.ui.IEditorPart;
26 17
import org.eclipse.ui.IWorkbenchPage;
27 18
import org.eclipse.ui.IWorkbenchWindow;
......
34 25
import org.txm.Toolbox;
35 26
import org.txm.concordance.core.functions.Concordance;
36 27
import org.txm.concordance.core.functions.Line;
37
import org.txm.concordance.rcp.editors.ConcordanceEditor;
38 28
import org.txm.edition.rcp.editors.SynopticEditionEditor;
39 29
import org.txm.objects.Text;
40 30
import org.txm.rcp.StatusLine;
......
48 38
	
49 39
	public static String lastopenedfile;
50 40
	
51
	public int ALERT = 1000;
41
	public int ALERT = 1000000;
52 42
	
53 43
	@Override
54 44
	public Object execute(ExecutionEvent event) throws ExecutionException {
TXM/trunk/org.txm.whatsnew.rcp/src/org/txm/whatsnew/rcp/NewsPreferences.java (revision 3468)
24 24
		return (NewsPreferences) TXMPreferences.instances.get(NewsPreferences.class);
25 25
	}
26 26
	
27
	
28 27
	@Override
29 28
	public void initializeDefaultPreferences() {
30 29
		super.initializeDefaultPreferences();
TXM/trunk/org.txm.core/src/java/org/txm/objects/Project.java (revision 3468)
1330 1330
	 * @return empty String if the textual plan is not set
1331 1331
	 */
1332 1332
	public String getTextualPlan(String name) {
1333
		return this.getPreferencesScope().getNode("TextualPlans").get(name, "");
1333
		return getTextualPlan(name, "");
1334 1334
	}
1335 1335
	
1336
	/**
1337
	 * 
1338
	 * @param name OutSideTextTags, OutSideTextTagsAndKeepContent, Note, MileStones
1339
	 * @param def the default value if not set
1340
	 * @return empty String if the textual plan is not set
1341
	 */
1342
	public String getTextualPlan(String name, String def) {
1343
		return this.getPreferencesScope().getNode("TextualPlans").get(name, def);
1344
	}
1345
	
1336 1346
	public void setTextualPlan(String name, String elements) {
1337 1347
		this.getPreferencesScope().getNode("TextualPlans").put(name, elements);
1338 1348
	}

Formats disponibles : Unified diff