lime.uga.edu.wsworkflow.main
Class Utils

java.lang.Object
  extended by lime.uga.edu.wsworkflow.main.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static java.util.List<NewWSModel>[] cloneWSs(java.util.List<NewWSModel>[] wsgroups)
           
static java.awt.image.BufferedImage convertToAWT(org.eclipse.swt.graphics.ImageData data)
           
static org.eclipse.swt.graphics.ImageData convertToSWT(java.awt.image.BufferedImage bufferedImage)
           
static java.util.ArrayList<java.lang.String[]> deepCloneServices(java.util.ArrayList<java.lang.String[]> originalServices)
           
static java.util.ArrayList<java.lang.String[]> filter(java.lang.String selectedService, java.util.ArrayList<java.lang.String[]> services)
           
static org.eclipse.swt.graphics.Image getImageFromFile(java.lang.String imageName)
           
static org.eclipse.jface.resource.ImageRegistry getImageRegistry()
           
static java.lang.String getProjectPath()
           
static java.lang.String getResultFromFile(java.lang.String file)
           
static boolean ifEqual(java.util.ArrayList<java.lang.String[]> originalServices, java.util.ArrayList<java.lang.String[]> filteredServices)
           
static org.eclipse.swt.graphics.Image makeSWTImage(org.eclipse.swt.widgets.Display display, java.awt.Image ai)
           
static java.net.URL newURL(java.lang.String url_name)
           
static void printParaInfo(java.util.HashMap<java.lang.String,java.lang.String[]> parameter)
           
static java.lang.String readFile(java.lang.String name)
           
static void refreshButtons(java.util.ArrayList<java.lang.String[]> services, java.util.ArrayList<org.eclipse.swt.widgets.Button> buttons)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

newURL

public static java.net.URL newURL(java.lang.String url_name)

getProjectPath

public static java.lang.String getProjectPath()

getImageRegistry

public static org.eclipse.jface.resource.ImageRegistry getImageRegistry()

getImageFromFile

public static org.eclipse.swt.graphics.Image getImageFromFile(java.lang.String imageName)

filter

public static java.util.ArrayList<java.lang.String[]> filter(java.lang.String selectedService,
                                                             java.util.ArrayList<java.lang.String[]> services)

refreshButtons

public static void refreshButtons(java.util.ArrayList<java.lang.String[]> services,
                                  java.util.ArrayList<org.eclipse.swt.widgets.Button> buttons)

deepCloneServices

public static java.util.ArrayList<java.lang.String[]> deepCloneServices(java.util.ArrayList<java.lang.String[]> originalServices)

ifEqual

public static boolean ifEqual(java.util.ArrayList<java.lang.String[]> originalServices,
                              java.util.ArrayList<java.lang.String[]> filteredServices)

readFile

public static java.lang.String readFile(java.lang.String name)

printParaInfo

public static void printParaInfo(java.util.HashMap<java.lang.String,java.lang.String[]> parameter)

getResultFromFile

public static java.lang.String getResultFromFile(java.lang.String file)

cloneWSs

public static java.util.List<NewWSModel>[] cloneWSs(java.util.List<NewWSModel>[] wsgroups)

convertToAWT

public static java.awt.image.BufferedImage convertToAWT(org.eclipse.swt.graphics.ImageData data)

convertToSWT

public static org.eclipse.swt.graphics.ImageData convertToSWT(java.awt.image.BufferedImage bufferedImage)

makeSWTImage

public static org.eclipse.swt.graphics.Image makeSWTImage(org.eclipse.swt.widgets.Display display,
                                                          java.awt.Image ai)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception