Révision 813
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 813) | ||
---|---|---|
951 | 951 |
* @return |
952 | 952 |
*/ |
953 | 953 |
public static Menu initContextMenu(Composite composite, String menuId, IWorkbenchPartSite partSite, ISelectionProvider selectionProvider) { |
954 |
MenuManager menuManager = new MenuManager(); |
|
954 |
MenuManager menuManager = new MenuManager(menuId, menuId);
|
|
955 | 955 |
//duplicate with registerContextMenu() |
956 | 956 |
//IMenuService menuService = (IMenuService) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getService(IMenuService.class); |
957 | 957 |
//menuService.populateContributionManager(menuManager, "popup:" + menuId); //$NON-NLS-1$ |
tmp/org.txm.core.tests/src/org/txm/core/tests/junit/TXMPluginTest.java (revision 813) | ||
---|---|---|
21 | 21 |
* |
22 | 22 |
*/ |
23 | 23 |
public abstract class TXMPluginTest { |
24 |
public static int LEVEL = 1; // 1 errors, 2 warnings, 3 infos messages |
|
24 |
public static int LEVEL = 3; // 1 errors, 2 warnings, 3 infos messages |
|
25 |
|
|
26 |
/** |
|
27 |
* error counter |
|
28 |
*/ |
|
25 | 29 |
int error = 0; |
26 | 30 |
|
27 | 31 |
protected ArrayList<File> projects; |
... | ... | |
104 | 108 |
//plugin_package = plugin_package.substring(0, plugin_package.length()-4); |
105 | 109 |
RCPPluginTest(projectDirectory, plugin_name, plugin_package); |
106 | 110 |
} else { |
107 |
// ignore project
|
|
111 |
info("ignoring project: "+projectDirectory);
|
|
108 | 112 |
} |
109 | 113 |
|
110 | 114 |
if (messages.size() > 0) { |
tmp/org.txm.core.tests/src/org/txm/core/tests/junit/PluginBuildProperties.java (revision 813) | ||
---|---|---|
18 | 18 |
|
19 | 19 |
@Override |
20 | 20 |
public void RCPPluginTest(File projectDirectory, String name, String packagePath) throws IOException { |
21 |
File pluginXML = new File(projectDirectory, "plugin.xml"); |
|
22 |
if (!pluginXML.exists()) { |
|
23 |
error("missing file "+pluginXML); |
|
24 |
} |
|
25 |
|
|
26 | 21 |
testPluginXMLExport(projectDirectory); |
27 | 22 |
} |
28 | 23 |
|
... | ... | |
47 | 42 |
if (!value.contains("plugin.xml")) { |
48 | 43 |
error("plugin.xml is not exported: "+pluginXML.getAbsolutePath()); |
49 | 44 |
} |
45 |
if (!value.contains("META-INF/")) { |
|
46 |
error("META-INF is not exported: "+pluginXML.getAbsolutePath()); |
|
47 |
} |
|
48 |
|
|
49 |
boolean pointOK = false; |
|
50 |
String[] includes = value.split(","); |
|
51 |
for (String include : includes) { |
|
52 |
if (".".equals(include)) pointOK = true; |
|
53 |
} |
|
54 |
|
|
55 |
if (!pointOK) { |
|
56 |
error("'.' is not present in build.properties"); |
|
57 |
} |
|
50 | 58 |
} |
51 | 59 |
|
52 | 60 |
@Override |
tmp/org.txm.synopticeditor.rcp/build.properties (revision 813) | ||
---|---|---|
1 |
source.. = src/ |
|
1 | 2 |
output.. = bin/ |
2 |
bin.includes = META-INF/,\ |
|
3 |
bin.includes = .,\ |
|
4 |
META-INF/,\ |
|
3 | 5 |
plugin.xml,\ |
4 | 6 |
icons/,\ |
5 | 7 |
res/,\ |
tmp/org.txm.synopticeditor.rcp/META-INF/MANIFEST.MF (revision 813) | ||
---|---|---|
1 | 1 |
Manifest-Version: 1.0 |
2 |
Require-Bundle: org.txm.concordance.rcp;bundle-version="1.0.0";visibil
|
|
3 |
ity:=reexport,org.txm.core;bundle-version="0.7.0";visibility:=reexpor
|
|
4 |
t,org.eclipse.ui;visibility:=reexport,org.eclipse.core.runtime;visibi
|
|
5 |
lity:=reexport,org.txm.rcp;bundle-version="0.7.5";visibility:=reexpor
|
|
6 |
t,org.eclipse.ui.browser;bundle-version="3.4.100";visibility:=reexpor
|
|
7 |
t,org.eclipse.jface.databinding;bundle-version="1.6.200";visibility:=
|
|
8 |
reexport,org.eclipse.jface.text;bundle-version="3.9.2";visibility:=re
|
|
9 |
export,org.txm.searchengine.core;bundle-version="1.0.0";visibility:=r
|
|
10 |
eexport,org.txm.searchengine.cqp.core;bundle-version="1.1.0";visibili
|
|
11 |
ty:=reexport |
|
2 |
Require-Bundle: org.txm.searchengine.cqp.core;bundle-version="1.1.0";visibility:=reexport,
|
|
3 |
org.txm.searchengine.core;bundle-version="1.0.0";visibility:=reexport,
|
|
4 |
org.txm.concordance.rcp;bundle-version="1.0.0";visibility:=reexport,
|
|
5 |
org.txm.core;bundle-version="0.7.0";visibility:=reexport,
|
|
6 |
org.eclipse.ui;visibility:=reexport,
|
|
7 |
org.eclipse.core.runtime;visibility:=reexport,
|
|
8 |
org.txm.rcp;bundle-version="0.7.5";visibility:=reexport,
|
|
9 |
org.eclipse.ui.browser;bundle-version="3.4.100";visibility:=reexport,
|
|
10 |
org.eclipse.jface.databinding;bundle-version="1.6.200";visibility:=reexport,
|
|
11 |
org.eclipse.jface.text;bundle-version="3.9.2";visibility:=reexport
|
|
12 | 12 |
Export-Package: org.txm.synopticedition.rcp.editors,org.txm.synopticed |
13 | 13 |
ition.rcp.editors.ext,org.txm.synopticedition.rcp.handlers,org.txm.sy |
14 | 14 |
nopticedition.rcp.messages,org.txm.synopticedition.rcp.preferences |
15 | 15 |
Bundle-Vendor: Textometrie.org |
16 | 16 |
Bundle-ActivationPolicy: lazy |
17 | 17 |
Bundle-Version: 1.0.0.qualifier |
18 |
Bundle-Name: %Bundle-Name
|
|
18 |
Bundle-Name: SynopticEditor
|
|
19 | 19 |
Bundle-ManifestVersion: 2 |
20 | 20 |
Bundle-SymbolicName: org.txm.synopticeditor.rcp;singleton:=true |
21 | 21 |
Bundle-RequiredExecutionEnvironment: JavaSE-1.7 |
Formats disponibles : Unified diff