org.eclipse.m2m.atl.adt.perspective.compatibility
Class CompatibilityUtils

java.lang.Object
  extended by org.eclipse.m2m.atl.adt.perspective.compatibility.CompatibilityUtils

public class CompatibilityUtils
extends java.lang.Object

An utility class for old ATL projects conversion.


Field Summary
static java.lang.String newBuilderId
           
static java.lang.String newConfigId
           
static java.lang.String newNatureId
           
static java.lang.String oldBuilderId
           
static java.lang.String oldConfigId
           
static java.lang.String oldNatureId
           
 
Constructor Summary
CompatibilityUtils()
           
 
Method Summary
static boolean convertConfigurations(java.lang.Object[] configurations)
           
static void convertProjects(java.lang.Object[] projects)
           
static org.eclipse.debug.core.ILaunchConfiguration[] getConfigurations()
           
static org.eclipse.core.resources.IProject[] getProjects()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oldNatureId

public static final java.lang.String oldNatureId
See Also:
Constant Field Values

newNatureId

public static final java.lang.String newNatureId
See Also:
Constant Field Values

oldBuilderId

public static final java.lang.String oldBuilderId
See Also:
Constant Field Values

newBuilderId

public static final java.lang.String newBuilderId
See Also:
Constant Field Values

oldConfigId

public static final java.lang.String oldConfigId
See Also:
Constant Field Values

newConfigId

public static final java.lang.String newConfigId
See Also:
Constant Field Values
Constructor Detail

CompatibilityUtils

public CompatibilityUtils()
Method Detail

getProjects

public static org.eclipse.core.resources.IProject[] getProjects()
                                                         throws org.eclipse.core.runtime.CoreException
Returns:
the list of the old projects
Throws:
org.eclipse.core.runtime.CoreException

getConfigurations

public static org.eclipse.debug.core.ILaunchConfiguration[] getConfigurations()
                                                                       throws org.eclipse.core.runtime.CoreException
Returns:
the list of the old configurations
Throws:
org.eclipse.core.runtime.CoreException

convertProjects

public static void convertProjects(java.lang.Object[] projects)
                            throws java.lang.Exception
Parameters:
projects - the projects to convert
Throws:
org.eclipse.core.runtime.CoreException
java.lang.Exception

convertConfigurations

public static boolean convertConfigurations(java.lang.Object[] configurations)
                                     throws java.lang.Exception
Parameters:
configurations - the configurations to convert
Returns:
true if Eclipse needs to be restarted
Throws:
java.lang.Exception

Copyright 2007 IBM Corporation and others.
All Rights Reserved.