import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
-import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.preference.IPreferenceStore;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
} else if (Function != null) {
syntaxdata.add(new PHPFunction(Function, usage, description));
} else if (Constant != null) {
- syntaxdata.add(new PHPConstant(Constant, usage));
+ syntaxdata.add(new PHPConstant(Constant, null, description));
}
}
}
// Attr usage = document.createAttribute(USAGE_ATTR);
Text usage = document.createTextNode(((PHPFunction) bufferobj).getDescription());
node.appendChild(usage);
- // usage.setValue(((PHPFunction) bufferobj).getUsage());
- // attributes.setNamedItem(usage);
}
+ if (bufferobj instanceof PHPConstant) {
+ // Attr usage = document.createAttribute(USAGE_ATTR);
+ Text usage = document.createTextNode(((PHPConstant) bufferobj).getDescription());
+ node.appendChild(usage);
+ }
}
Transformer transformer=TransformerFactory.newInstance().newTransformer();
transformer.setOutputProperty(OutputKeys.METHOD, "xml"); //$NON-NLS-1$