Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » string string [message #581166] Mon, 23 August 2010 19:41
FD  is currently offline FD Friend
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 Jun 23 00:43:23 GMT 2021

Powered by FUDForum. Page generated in 0.01497 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top