Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

the ui test is not needed, simplify dependencies

  • Loading branch information...
commit aa7507c4f3f5437d4b67afb1a995b7aa54f9a99d 1 parent a7a6e3a
@JPMoresmau authored
View
18 net.sf.eclipsefp.haskell.style.test/.classpath
@@ -1,10 +1,8 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry combineaccessrules="false" kind="src" path="/net.sf.eclipsefp.haskell.style"/>
- <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
- <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.swt_3.7.1.v3738a.jar"/>
- <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32.win32.x86_3.7.1.v3738a.jar"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/net.sf.eclipsefp.haskell.style"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
View
66 net.sf.eclipsefp.haskell.style.test/src/net/sf/eclipsefp/haskell/style/ui/SHConfigurationCompositeTest.java
@@ -1,66 +0,0 @@
-/**
- * Copyright (c) 2012 by JP Moresmau
- * This code is made available under the terms of the Eclipse Public License,
- * version 1.0 (EPL). See http://www.eclipse.org/legal/epl-v10.html
- */
-package net.sf.eclipsefp.haskell.style.ui;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-
-import net.sf.eclipsefp.haskell.style.stylishhaskell.SHConfiguration;
-import net.sf.eclipsefp.haskell.style.stylishhaskell.StylishHaskell;
-import net.sf.eclipsefp.haskell.style.stylishhaskell.ui.SHConfigurationComposite;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-
-/**
- * test composite
- * @author JP Moresmau
- *
- */
-public class SHConfigurationCompositeTest {
-
- /**
- * @param args
- */
- public static void main(String[] args) {
- Display display=new Display();
-
- Shell shell=new Shell(display);
- shell.setLayout(new GridLayout(1,true));
- final SHConfigurationComposite comp=new SHConfigurationComposite(shell, SWT.NONE);
- comp.setConfiguration(new SHConfiguration());
- Button b=new Button(shell,SWT.PUSH);
- b.setText("click");
- b.addSelectionListener(new SelectionAdapter() {
- /* (non-Javadoc)
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- @Override
- public void widgetSelected(SelectionEvent e) {
- SHConfiguration conf=comp.getConfiguration();
- ByteArrayOutputStream baos=new ByteArrayOutputStream();
- try {
- StylishHaskell.save(conf, baos);
- System.out.println(new String(baos.toByteArray()));
- } catch (IOException ioe){
- ioe.printStackTrace();
- }
- }
- });
- shell.open();
- while (!shell.isDisposed ()) {
- if (!display.readAndDispatch ())
- display.sleep ();
- }
- display.dispose ();
- }
-
-}
Please sign in to comment.
Something went wrong with that request. Please try again.