org.glassmaker.eclipse/org.glassmaker.ui.editor/src/main/java/org/glassmaker/ui/editor/CardEditor.java
void createPage1() {
		Composite composite = new Composite(getContainer(), SWT.NONE);
		
		RowLayout layout = new RowLayout();
		layout.wrap = false;
		layout.pack = true;
		layout.justify = true;
		layout.type = SWT.VERTICAL;
		layout.marginLeft = 5;
		layout.marginTop = 5;
		layout.marginRight = 5;
		layout.marginBottom = 5;
		layout.spacing = 0;
		composite.setLayout(layout);
		
		browser = new Browser(composite, SWT.NONE);
		browser.setLayoutData(new RowData(640, 360));

	
		Button previewOnGlass = new Button(composite, SWT.NONE);
		previewOnGlass.setText("#throughglass﻿");


		previewOnGlass.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent event) {
				if(!setClientprovider()) {
					GoogleLogin.promptToLogIn("Glassmaker");
				}			
				if (GoogleLogin.getInstance().isLoggedIn())
					previewOnGlass();
			}
		});

		int index = addPage(composite);
		setPageText(index, "Preview");
		
	}
void createPage1() {
		Composite composite = new Composite(getContainer(), SWT.NONE);
		
		RowLayout layout = new RowLayout();
		layout.wrap = false;
		layout.pack = true;
		layout.justify = true;
		layout.type = SWT.VERTICAL;
		layout.marginLeft = 5;
		layout.marginTop = 5;
		layout.marginRight = 5;
		layout.marginBottom = 5;
		layout.spacing = 0;
		composite.setLayout(layout);
		
		browser = new Browser(composite, SWT.NONE);
		browser.setLayoutData(new RowData(640, 360));

	
		Button previewOnGlass = new Button(composite, SWT.NONE);
		previewOnGlass.setText("#throughglass﻿");


		previewOnGlass.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent event) {
				if(!setClientprovider()) {
					GoogleLogin.promptToLogIn("Glassmaker");
				}			
				if (GoogleLogin.getInstance().isLoggedIn())
					previewOnGlass();
			}
		});

		int index = addPage(composite);
		setPageText(index, "Preview");
		
	}
void createPage1 ( ) { Composite composite = new Composite ( getContainer ( ) , SWT . NONE ) ; RowLayout layout = new RowLayout ( ) ; layout . wrap = false ; layout . pack = true ; layout . justify = true ; layout . type = SWT . VERTICAL ; layout . marginLeft = 5 ; layout . marginTop = 5 ; layout . marginRight = 5 ; layout . marginBottom = 5 ; layout . spacing = 0 ; composite . setLayout ( layout ) ; browser = new Browser ( composite , SWT . NONE ) ; browser . setLayoutData ( new RowData ( 640 , 360 ) ) ; Button previewOnGlass = new Button ( composite , SWT . NONE ) ; previewOnGlass . setText ( "#throughglass﻿"); previewOnGlass . addSelectionListener ( new SelectionAdapter ( ) { public void widgetSelected ( SelectionEvent event ) { if ( ! setClientprovider ( ) ) { GoogleLogin . promptToLogIn ( "Glassmaker" ) ; } if ( GoogleLogin . getInstance ( ) . isLoggedIn ( ) ) previewOnGlass ( ) ; } } ) ; int index = addPage ( composite ) ; setPageText ( index , "Preview" ) ; }
Creates page 1 of the multi-page editor, which is used to preview the page .
Creates page 1 of the multi - page editor which is used to preview the page .