Révision 2344
tmp/org.txm.properties.rcp/.settings/org.eclipse.core.resources.prefs (revision 2344) | ||
---|---|---|
1 | 1 |
eclipse.preferences.version=1 |
2 | 2 |
encoding//src/org/txm/properties/rcp/messages/messages_fr.properties=UTF-8 |
3 |
encoding//src/org/txm/properties/rcp/messages_fr.properties=UTF-8 |
tmp/org.txm.properties.rcp/META-INF/MANIFEST.MF (revision 2344) | ||
---|---|---|
1 | 1 |
Manifest-Version: 1.0 |
2 | 2 |
Bundle-SymbolicName: org.txm.properties.rcp;singleton:=true |
3 |
Export-Package: org.txm.properties.rcp.adapters,org.txm.properties.rcp |
|
4 |
.editors,org.txm.properties.rcp.handlers,org.txm.properties.rcp.messa |
|
5 |
ges,org.txm.properties.rcp.preferences |
|
3 |
Export-Package: org.txm.properties.rcp, |
|
4 |
org.txm.properties.rcp.adapters, |
|
5 |
org.txm.properties.rcp.editors, |
|
6 |
org.txm.properties.rcp.handlers, |
|
7 |
org.txm.properties.rcp.messages, |
|
8 |
org.txm.properties.rcp.preferences |
|
6 | 9 |
Bundle-Version: 1.0.0.qualifier |
7 | 10 |
Bundle-Name: %Bundle-Name |
8 | 11 |
Require-Bundle: org.txm.rcp;bundle-version="0.8.0";visibility:=reexpor |
tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/Messages.java (revision 2344) | ||
---|---|---|
1 |
package org.txm.properties.rcp; |
|
2 |
|
|
3 |
import org.txm.core.messages.TXMCoreMessages; |
|
4 |
import org.txm.utils.messages.Utf8NLS; |
|
5 |
|
|
6 |
public class Messages extends TXMCoreMessages { |
|
7 |
|
|
8 |
private static final String BUNDLE_NAME = "org.txm.properties.rcp.messages"; //$NON-NLS-1$ |
|
9 |
|
|
10 |
public static String PropertiesGeneralTab_0; |
|
11 |
|
|
12 |
public static String PropertiesGeneralTab_1; |
|
13 |
|
|
14 |
public static String PropertiesGeneralTab_10; |
|
15 |
|
|
16 |
public static String PropertiesGeneralTab_11; |
|
17 |
|
|
18 |
public static String PropertiesGeneralTab_12; |
|
19 |
|
|
20 |
public static String PropertiesGeneralTab_14; |
|
21 |
|
|
22 |
public static String PropertiesGeneralTab_16; |
|
23 |
|
|
24 |
public static String PropertiesGeneralTab_18; |
|
25 |
|
|
26 |
public static String PropertiesGeneralTab_2; |
|
27 |
|
|
28 |
public static String PropertiesGeneralTab_20; |
|
29 |
|
|
30 |
public static String PropertiesGeneralTab_21; |
|
31 |
|
|
32 |
public static String PropertiesGeneralTab_3; |
|
33 |
|
|
34 |
public static String PropertiesGeneralTab_4; |
|
35 |
|
|
36 |
public static String PropertiesGeneralTab_6; |
|
37 |
|
|
38 |
public static String PropertiesGeneralTab_8; |
|
39 |
|
|
40 |
public static String PropertiesParametersTab_0; |
|
41 |
|
|
42 |
public static String PropertiesParametersTab_1; |
|
43 |
|
|
44 |
static { |
|
45 |
// initialize resource bundle |
|
46 |
Utf8NLS.initializeMessages(BUNDLE_NAME, Messages.class); |
|
47 |
} |
|
48 |
|
|
49 |
private Messages() {} |
|
50 |
} |
|
0 | 51 |
tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/editors/PropertiesParametersTab.java (revision 2344) | ||
---|---|---|
4 | 4 |
import org.eclipse.swt.SWT; |
5 | 5 |
import org.eclipse.swt.layout.GridData; |
6 | 6 |
import org.eclipse.swt.widgets.TabFolder; |
7 |
import org.txm.properties.rcp.Messages; |
|
7 | 8 |
import org.txm.rcp.views.cmdparameters.ParametersComposite; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
16 | 17 |
|
17 | 18 |
public PropertiesParametersTab(TabFolder folder, PropertiesPagedEditor editor) { |
18 | 19 |
super(folder, editor); |
19 |
tab.setText("Parameters");
|
|
20 |
tab.setText(Messages.PropertiesParametersTab_0);
|
|
20 | 21 |
|
21 | 22 |
parametersComposite = new ParametersComposite(parent, SWT.NONE); |
22 | 23 |
parametersComposite.setLayoutData(GridDataFactory.fillDefaults().align(GridData.FILL, GridData.FILL).grab(true, true).create()); |
tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/editors/PropertiesTXMResultTab.java (revision 2344) | ||
---|---|---|
10 | 10 |
import org.eclipse.swt.widgets.TabFolder; |
11 | 11 |
import org.eclipse.swt.widgets.TabItem; |
12 | 12 |
import org.txm.core.results.TXMResult; |
13 |
import org.txm.properties.rcp.Messages; |
|
13 | 14 |
import org.txm.rcp.swt.GLComposite; |
14 | 15 |
import org.txm.utils.logger.Log; |
15 | 16 |
|
... | ... | |
28 | 29 |
super(folder, editor); |
29 | 30 |
|
30 | 31 |
this.result = editor.getResult().getParent(); |
31 |
tab.setText(result.getResultType());
|
|
32 |
tab.setText(Messages.PropertiesParametersTab_0);
|
|
32 | 33 |
|
33 | 34 |
buildContent(parent); |
34 | 35 |
} |
tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/editors/PropertiesGeneralTab.java (revision 2344) | ||
---|---|---|
16 | 16 |
import org.eclipse.swt.widgets.TabFolder; |
17 | 17 |
import org.eclipse.swt.widgets.Text; |
18 | 18 |
import org.txm.core.results.TXMResult; |
19 |
import org.txm.properties.rcp.Messages; |
|
19 | 20 |
import org.txm.rcp.IImageKeys; |
20 | 21 |
import org.txm.rcp.views.corpora.CorporaView; |
21 | 22 |
|
... | ... | |
25 | 26 |
|
26 | 27 |
public PropertiesGeneralTab(TabFolder folder, PropertiesPagedEditor editor2) { |
27 | 28 |
super(folder, editor2); |
28 |
tab.setText("General");
|
|
29 |
tab.setText(Messages.PropertiesGeneralTab_0);
|
|
29 | 30 |
|
30 | 31 |
parent.getLayout().numColumns = 3; |
31 | 32 |
parent.getLayout().verticalSpacing = 10; |
... | ... | |
46 | 47 |
} |
47 | 48 |
image.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, false, true, 1, 7)); |
48 | 49 |
|
50 |
new Label(parent, SWT.NONE); |
|
51 |
Button clipButton = new Button(parent, SWT.PUSH); |
|
52 |
clipButton.setLayoutData(new GridData(GridData.END, GridData.END, false, false)); |
|
53 |
clipButton.setText(Messages.PropertiesGeneralTab_11); |
|
54 |
clipButton.addSelectionListener(new SelectionListener() { |
|
55 |
|
|
56 |
@Override |
|
57 |
public void widgetSelected(SelectionEvent e) { |
|
58 |
toClipboard(); |
|
59 |
} |
|
60 |
|
|
61 |
@Override |
|
62 |
public void widgetDefaultSelected(SelectionEvent e) { } |
|
63 |
}); |
|
49 | 64 |
|
50 | 65 |
Label l = new Label(parent, SWT.NONE); |
51 |
l.setText("Name");
|
|
66 |
l.setText(Messages.PropertiesGeneralTab_1);
|
|
52 | 67 |
|
53 | 68 |
nameField = new Text(parent, SWT.BORDER); |
54 | 69 |
nameField.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false)); |
... | ... | |
59 | 74 |
public void keyReleased(KeyEvent e) { |
60 | 75 |
if (e.keyCode == SWT.CR || e.keyCode == SWT.KEYPAD_CR && nameField.getText().length() > 0 && !nameField.getText().equals(editor.getResult().getParent().getUserName())) { |
61 | 76 |
editor.getResult().getParent().setUserName(nameField.getText()); |
62 |
System.out.println("Name updated with "+nameField.getText());
|
|
77 |
System.out.println(Messages.PropertiesGeneralTab_2+nameField.getText());
|
|
63 | 78 |
CorporaView.refreshObject(editor.getResult().getParent()); |
64 | 79 |
} |
65 | 80 |
} |
... | ... | |
67 | 82 |
@Override |
68 | 83 |
public void keyPressed(KeyEvent e) { } |
69 | 84 |
}); |
70 |
new Label(parent, SWT.NONE).setText("Type");
|
|
85 |
new Label(parent, SWT.NONE).setText(Messages.PropertiesGeneralTab_3);
|
|
71 | 86 |
l = new Label(parent, SWT.NONE); |
72 | 87 |
l.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false)); |
73 | 88 |
l.setText(editor.getResult().getParent().getResultType()); |
... | ... | |
77 | 92 |
// l.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false)); |
78 | 93 |
// l.setText(""+editor.getResult().getParent().getChildren().size()); |
79 | 94 |
|
80 |
new Label(parent, SWT.NONE).setText("Parent");
|
|
95 |
new Label(parent, SWT.NONE).setText(Messages.PropertiesGeneralTab_4);
|
|
81 | 96 |
l = new Label(parent, SWT.NONE); |
82 | 97 |
l.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false)); |
83 |
l.setText(""+editor.getResult().getParent().getParent().getUserName());
|
|
98 |
l.setText(""+editor.getResult().getParent().getFullPathSimpleName(false));//.getParent().getParent().getUserName()); //$NON-NLS-1$
|
|
84 | 99 |
|
85 |
new Label(parent, SWT.NONE).setText("Creation date");
|
|
100 |
new Label(parent, SWT.NONE).setText(Messages.PropertiesGeneralTab_6);
|
|
86 | 101 |
l = new Label(parent, SWT.NONE); |
87 | 102 |
l.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false)); |
88 | 103 |
Date d = editor.getResult().getParent().getCreationDate(); |
89 | 104 |
if (d != null) { |
90 |
l.setText(""+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d)); |
|
105 |
l.setText(""+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d)); //$NON-NLS-1$
|
|
91 | 106 |
} |
92 | 107 |
|
93 |
new Label(parent, SWT.NONE).setText("Last update date");
|
|
108 |
new Label(parent, SWT.NONE).setText(Messages.PropertiesGeneralTab_8);
|
|
94 | 109 |
l = new Label(parent, SWT.NONE); |
95 | 110 |
l.setLayoutData(new GridData(GridData.BEGINNING, GridData.BEGINNING, true, false)); |
96 | 111 |
d = editor.getResult().getParent().getLastComputingDate(); |
97 | 112 |
if (d != null) { |
98 |
l.setText(""+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d)); |
|
113 |
l.setText(""+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d)); //$NON-NLS-1$
|
|
99 | 114 |
} else { |
100 |
l.setText("(not computed)");
|
|
115 |
l.setText(Messages.PropertiesGeneralTab_10);
|
|
101 | 116 |
} |
102 | 117 |
|
103 |
new Label(parent, SWT.NONE); |
|
104 |
|
|
105 |
Button clipButton = new Button(parent, SWT.PUSH); |
|
106 |
clipButton.setLayoutData(new GridData(GridData.END, GridData.END, false, false)); |
|
107 |
clipButton.setText("Copy"); |
|
108 |
clipButton.addSelectionListener(new SelectionListener() { |
|
109 |
|
|
110 |
@Override |
|
111 |
public void widgetSelected(SelectionEvent e) { |
|
112 |
toClipboard(); |
|
113 |
} |
|
114 |
|
|
115 |
@Override |
|
116 |
public void widgetDefaultSelected(SelectionEvent e) { } |
|
117 |
}); |
|
118 | 118 |
} |
119 | 119 |
|
120 | 120 |
public void toClipboard() { |
121 | 121 |
StringBuffer buffer = new StringBuffer(); |
122 |
buffer.append("Name: "+ editor.getResult().getParent().getUserName());
|
|
123 |
buffer.append("\n"); |
|
124 |
buffer.append("Type: "+editor.getResult().getParent().getResultType());
|
|
125 |
buffer.append("\n"); |
|
122 |
buffer.append(Messages.PropertiesGeneralTab_12+ editor.getResult().getParent().getUserName());
|
|
123 |
buffer.append("\n"); //$NON-NLS-1$
|
|
124 |
buffer.append(Messages.PropertiesGeneralTab_14+editor.getResult().getParent().getResultType());
|
|
125 |
buffer.append("\n"); //$NON-NLS-1$
|
|
126 | 126 |
// buffer.append("Size: "+editor.getResult().getParent().getChildren().size()); |
127 | 127 |
// buffer.append("\n"); |
128 |
buffer.append("Parent: "+editor.getResult().getParent().getParent().getUserName());
|
|
129 |
buffer.append("\n"); |
|
128 |
buffer.append(Messages.PropertiesGeneralTab_16+editor.getResult().getParent().getParent().getUserName());
|
|
129 |
buffer.append("\n"); //$NON-NLS-1$
|
|
130 | 130 |
Date d = editor.getResult().getParent().getCreationDate(); |
131 | 131 |
if (d != null) { |
132 |
buffer.append("Creation date: "+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d));
|
|
132 |
buffer.append(Messages.PropertiesGeneralTab_18+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d));
|
|
133 | 133 |
} |
134 | 134 |
|
135 |
buffer.append("\n"); |
|
135 |
buffer.append("\n"); //$NON-NLS-1$
|
|
136 | 136 |
d = editor.getResult().getParent().getCreationDate(); |
137 | 137 |
if (d != null) { |
138 |
buffer.append("Last update date: "+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d));
|
|
138 |
buffer.append(Messages.PropertiesGeneralTab_20+TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(d));
|
|
139 | 139 |
} else { |
140 |
buffer.append("Last update date: (never computed)");
|
|
140 |
buffer.append(Messages.PropertiesGeneralTab_21);
|
|
141 | 141 |
} |
142 | 142 |
|
143 | 143 |
org.txm.rcp.utils.IOClipboard.write(buffer.toString()); |
tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/messages_fr.properties (revision 2344) | ||
---|---|---|
1 |
PropertiesGeneralTab_0=Général |
|
2 |
PropertiesGeneralTab_1=Nom |
|
3 |
PropertiesGeneralTab_10=(pas calculé) |
|
4 |
PropertiesGeneralTab_11=Copier dans le presse papier |
|
5 |
PropertiesGeneralTab_12=Nom: |
|
6 |
PropertiesGeneralTab_14=Type: |
|
7 |
PropertiesGeneralTab_16=Chemin: |
|
8 |
PropertiesGeneralTab_18=Date de création: |
|
9 |
PropertiesGeneralTab_2=Nom mise é jour avec |
|
10 |
PropertiesGeneralTab_20=Date de derniére mise é jour : |
|
11 |
PropertiesGeneralTab_21=Date de derniére mise é jour : (jamais calculé) |
|
12 |
PropertiesGeneralTab_3=Type |
|
13 |
PropertiesGeneralTab_4=Chemin |
|
14 |
PropertiesGeneralTab_6=Date de création |
|
15 |
PropertiesGeneralTab_8=Date de derniére mise é jour |
|
16 |
PropertiesParametersTab_0=Détails |
|
17 |
PropertiesParametersTab_1=Parametres |
|
0 | 18 |
tmp/org.txm.properties.rcp/src/org/txm/properties/rcp/messages.properties (revision 2344) | ||
---|---|---|
1 |
PropertiesGeneralTab_0=General |
|
2 |
PropertiesGeneralTab_1=Name |
|
3 |
PropertiesGeneralTab_10=(not computed) |
|
4 |
PropertiesGeneralTab_11=Copy |
|
5 |
PropertiesGeneralTab_12=Name: |
|
6 |
PropertiesGeneralTab_14=Type: |
|
7 |
PropertiesGeneralTab_16=Parent: |
|
8 |
PropertiesGeneralTab_18=Creation date: |
|
9 |
PropertiesGeneralTab_2=Name updated with |
|
10 |
PropertiesGeneralTab_20=Last update date: |
|
11 |
PropertiesGeneralTab_21=Last update date: (never computed) |
|
12 |
PropertiesGeneralTab_3=Type |
|
13 |
PropertiesGeneralTab_4=Parent |
|
14 |
PropertiesGeneralTab_6=Creation date |
|
15 |
PropertiesGeneralTab_8=Last update date |
|
16 |
PropertiesParametersTab_0=Details |
|
17 |
PropertiesParametersTab_1=Parameters |
|
0 | 18 |
Formats disponibles : Unified diff