diff options
author | Silenio Quarti <silenio> | 2008-08-05 15:59:38 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2008-08-05 15:59:38 +0000 |
commit | 27f0b3bdff9ae153a9d53cf6ae79755ae3c1e1b1 (patch) | |
tree | 338dcdbe261777bbfb6c6bb669c6623cf222f87f /bundles | |
parent | 0451987d39d3b7a8edf9732c12a98161ebfdd578 (diff) | |
download | eclipse.platform.swt-27f0b3bdff9ae153a9d53cf6ae79755ae3c1e1b1.tar.gz eclipse.platform.swt-27f0b3bdff9ae153a9d53cf6ae79755ae3c1e1b1.tar.xz eclipse.platform.swt-27f0b3bdff9ae153a9d53cf6ae79755ae3c1e1b1.zip |
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java index 707d840eaf..e7d3c965eb 100644 --- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java +++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java @@ -358,7 +358,7 @@ public void generateSelectorsConst() throws Exception { NodeList list = document.getDocumentElement().getChildNodes(); for (int i = 0; i < list.getLength(); i++) { Node node = list.item(i); - if ("class".equals(node.getNodeName())) { + if ("class".equals(node.getNodeName()) || "informal_protocol".equals(node.getNodeName())) { NamedNodeMap attributes = node.getAttributes(); String name = attributes.getNamedItem("name").getNodeValue(); if (getGenerateClass(name)) { @@ -792,13 +792,17 @@ public void setOutputDir(String dir) { } public static void main(String[] args) throws Exception { - MacGenerator gen = new MacGenerator(args); -// gen.setClasses(new String[]{ -// "NSURL", -// }); - gen.setOutputDir("../org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa"); - gen.generateOS(); -// gen.generateMetadata(); -// gen.generateClasses(); + try { + MacGenerator gen = new MacGenerator(args); +// gen.setClasses(new String[]{ +// "NSURL", +// }); + gen.setOutputDir("../org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa"); + gen.generateOS(); +// gen.generateMetadata(); +// gen.generateClasses(); + } catch (Throwable e) { + e.printStackTrace(); + } } } |