Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » string string [message #581166] Mon, 23 August 2010 15:41
FD  is currently offline FD
Messages: 15
Registered: August 2010
Junior Member
Is there a function to open an 'xwt string'?
In the folowing example I've to create a temporary file to be able to open the 'xwt string'.

package test;

import org.eclipse.e4.xwt.XWT;

public class Test {

public static void main(String[] args) throws IOException {
String xwtstr = "<Composite xmlns=\"\" xmlns:x=\"\"><Composite.layout> <GridLayout numColumns=\"1\"/> </Composite.layout> <Text text=\"test text\" x:style=\"SWT.NONE\"></Text></Composite>";
File xwtTemp = File.createTempFile("Test", ".xwt");
BufferedWriter out = new BufferedWriter(new FileWriter(xwtTemp));
URL url = xwtTemp.toURL();
try {;
} catch (Exception e) {
Previous Topic:data binding
Next Topic:Can't make Eclipse e4 product (Standalong application))
Goto Forum:

Current Time: Wed Jul 23 22:22:03 EDT 2014

Powered by FUDForum. Page generated in 0.01427 seconds