| /** |
| * <copyright> |
| ******************************************************************************* |
| * Copyright (c) 2004 Eteration Bilisim A.S. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
| * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| * DISCLAIMED. IN NO EVENT SHALL ETERATION A.S. OR |
| * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
| * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| * SUCH DAMAGE. |
| * ==================================================================== |
| * |
| * This software consists of voluntary contributions made by many |
| * individuals on behalf of the Eteration Bilisim A.S. For more |
| * information on eteration, please see |
| * <http://www.eteration.com/>. |
| *************************************************************************** |
| * </copyright> |
| * |
| * $Id: LaunchConfigurationImpl.java,v 1.7 2005/08/30 21:45:19 gercan Exp $ |
| */ |
| package org.eclipse.jst.server.generic.internal.servertype.definition.impl; |
| |
| import java.util.Collection; |
| import java.util.Iterator; |
| import java.util.List; |
| |
| import org.eclipse.emf.common.notify.Notification; |
| |
| import org.eclipse.emf.common.notify.NotificationChain; |
| |
| import org.eclipse.emf.ecore.EClass; |
| import org.eclipse.emf.ecore.EStructuralFeature; |
| |
| import org.eclipse.emf.ecore.InternalEObject; |
| |
| import org.eclipse.emf.ecore.impl.ENotificationImpl; |
| import org.eclipse.emf.ecore.impl.EObjectImpl; |
| |
| import org.eclipse.emf.ecore.util.BasicFeatureMap; |
| import org.eclipse.emf.ecore.util.FeatureMap; |
| import org.eclipse.emf.ecore.util.InternalEList; |
| |
| import org.eclipse.jst.server.generic.internal.servertype.definition.ServerTypePackage; |
| import org.eclipse.jst.server.generic.servertype.definition.LaunchConfiguration; |
| |
| |
| |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Launch Configuration</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * The following features are implemented: |
| * <ul> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getGroup <em>Group</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getEnvironmentVariable <em>Environment Variable</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getGroup1 <em>Group1</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getProgramArguments <em>Program Arguments</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getWorkingDirectory <em>Working Directory</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getMainClass <em>Main Class</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getGroup2 <em>Group2</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getVmParameters <em>Vm Parameters</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getClasspathReference <em>Classpath Reference</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getDebugPort <em>Debug Port</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getGroup3 <em>Group3</em>}</li> |
| * <li>{@link org.eclipse.jst.server.generic.internal.servertype.definition.impl.LaunchConfigurationImpl#getExternal <em>External</em>}</li> |
| * </ul> |
| * </p> |
| * |
| * @generated |
| */ |
| public class LaunchConfigurationImpl extends EObjectImpl implements LaunchConfiguration { |
| /** |
| * The cached value of the '{@link #getGroup() <em>Group</em>}' attribute list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroup() |
| * @generated |
| * @ordered |
| */ |
| protected FeatureMap group = null; |
| |
| /** |
| * The cached value of the '{@link #getGroup1() <em>Group1</em>}' attribute list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroup1() |
| * @generated |
| * @ordered |
| */ |
| protected FeatureMap group1 = null; |
| |
| /** |
| * The default value of the '{@link #getWorkingDirectory() <em>Working Directory</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getWorkingDirectory() |
| * @generated |
| * @ordered |
| */ |
| protected static final String WORKING_DIRECTORY_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getWorkingDirectory() <em>Working Directory</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getWorkingDirectory() |
| * @generated |
| * @ordered |
| */ |
| protected String workingDirectory = WORKING_DIRECTORY_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getMainClass() <em>Main Class</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMainClass() |
| * @generated |
| * @ordered |
| */ |
| protected static final String MAIN_CLASS_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getMainClass() <em>Main Class</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getMainClass() |
| * @generated |
| * @ordered |
| */ |
| protected String mainClass = MAIN_CLASS_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getGroup2() <em>Group2</em>}' attribute list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroup2() |
| * @generated |
| * @ordered |
| */ |
| protected FeatureMap group2 = null; |
| |
| /** |
| * The default value of the '{@link #getClasspathReference() <em>Classpath Reference</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getClasspathReference() |
| * @generated |
| * @ordered |
| */ |
| protected static final String CLASSPATH_REFERENCE_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getClasspathReference() <em>Classpath Reference</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getClasspathReference() |
| * @generated |
| * @ordered |
| */ |
| protected String classpathReference = CLASSPATH_REFERENCE_EDEFAULT; |
| |
| /** |
| * The default value of the '{@link #getDebugPort() <em>Debug Port</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDebugPort() |
| * @generated |
| * @ordered |
| */ |
| protected static final String DEBUG_PORT_EDEFAULT = null; |
| |
| /** |
| * The cached value of the '{@link #getDebugPort() <em>Debug Port</em>}' attribute. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getDebugPort() |
| * @generated |
| * @ordered |
| */ |
| protected String debugPort = DEBUG_PORT_EDEFAULT; |
| |
| /** |
| * The cached value of the '{@link #getGroup3() <em>Group3</em>}' attribute list. |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @see #getGroup3() |
| * @generated |
| * @ordered |
| */ |
| protected FeatureMap group3 = null; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected LaunchConfigurationImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected EClass eStaticClass() { |
| return ServerTypePackage.eINSTANCE.getLaunchConfiguration(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getMainClass() { |
| return mainClass; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setMainClass(String newMainClass) { |
| String oldMainClass = mainClass; |
| mainClass = newMainClass; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ServerTypePackage.LAUNCH_CONFIGURATION__MAIN_CLASS, oldMainClass, mainClass)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public FeatureMap getGroup2() { |
| if (group2 == null) { |
| group2 = new BasicFeatureMap(this, ServerTypePackage.LAUNCH_CONFIGURATION__GROUP2); |
| } |
| return group2; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getWorkingDirectory() { |
| return workingDirectory; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setWorkingDirectory(String newWorkingDirectory) { |
| String oldWorkingDirectory = workingDirectory; |
| workingDirectory = newWorkingDirectory; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ServerTypePackage.LAUNCH_CONFIGURATION__WORKING_DIRECTORY, oldWorkingDirectory, workingDirectory)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getProgramArguments() { |
| return ((FeatureMap)getGroup1()).list(ServerTypePackage.eINSTANCE.getLaunchConfiguration_ProgramArguments()); |
| } |
| |
| /** |
| * @generated NOT |
| * @return |
| */ |
| private String cleanWhiteSpace(String string) |
| { |
| if(string==null) |
| return null; |
| char[] chars = string.toCharArray(); |
| for (int i = 0; i < chars.length; i++) { |
| if(Character.isWhitespace(chars[i])) |
| chars[i]=' '; |
| } |
| return (new String(chars)).trim(); |
| |
| } |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getVmParameters() { |
| return ((FeatureMap)getGroup2()).list(ServerTypePackage.eINSTANCE.getLaunchConfiguration_VmParameters()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getClasspathReference() { |
| return classpathReference; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setClasspathReference(String newClasspathReference) { |
| String oldClasspathReference = classpathReference; |
| classpathReference = newClasspathReference; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ServerTypePackage.LAUNCH_CONFIGURATION__CLASSPATH_REFERENCE, oldClasspathReference, classpathReference)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getExternal() { |
| return ((FeatureMap)getGroup3()).list(ServerTypePackage.eINSTANCE.getLaunchConfiguration_External()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { |
| if (featureID >= 0) { |
| switch (eDerivedStructuralFeatureID(featureID, baseClass)) { |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP: |
| return ((InternalEList)getGroup()).basicRemove(otherEnd, msgs); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__ENVIRONMENT_VARIABLE: |
| return ((InternalEList)getEnvironmentVariable()).basicRemove(otherEnd, msgs); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP1: |
| return ((InternalEList)getGroup1()).basicRemove(otherEnd, msgs); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP2: |
| return ((InternalEList)getGroup2()).basicRemove(otherEnd, msgs); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP3: |
| return ((InternalEList)getGroup3()).basicRemove(otherEnd, msgs); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__EXTERNAL: |
| return ((InternalEList)getExternal()).basicRemove(otherEnd, msgs); |
| default: |
| return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); |
| } |
| } |
| return eBasicSetContainer(null, featureID, msgs); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String getDebugPort() { |
| return debugPort; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void setDebugPort(String newDebugPort) { |
| String oldDebugPort = debugPort; |
| debugPort = newDebugPort; |
| if (eNotificationRequired()) |
| eNotify(new ENotificationImpl(this, Notification.SET, ServerTypePackage.LAUNCH_CONFIGURATION__DEBUG_PORT, oldDebugPort, debugPort)); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public FeatureMap getGroup3() { |
| if (group3 == null) { |
| group3 = new BasicFeatureMap(this, ServerTypePackage.LAUNCH_CONFIGURATION__GROUP3); |
| } |
| return group3; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public FeatureMap getGroup() { |
| if (group == null) { |
| group = new BasicFeatureMap(this, ServerTypePackage.LAUNCH_CONFIGURATION__GROUP); |
| } |
| return group; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public List getEnvironmentVariable() { |
| return ((FeatureMap)getGroup()).list(ServerTypePackage.eINSTANCE.getLaunchConfiguration_EnvironmentVariable()); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public FeatureMap getGroup1() { |
| if (group1 == null) { |
| group1 = new BasicFeatureMap(this, ServerTypePackage.LAUNCH_CONFIGURATION__GROUP1); |
| } |
| return group1; |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public Object eGet(EStructuralFeature eFeature, boolean resolve) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP: |
| return getGroup(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__ENVIRONMENT_VARIABLE: |
| return getEnvironmentVariable(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP1: |
| return getGroup1(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__PROGRAM_ARGUMENTS: |
| return getProgramArguments(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__WORKING_DIRECTORY: |
| return getWorkingDirectory(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__MAIN_CLASS: |
| return getMainClass(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP2: |
| return getGroup2(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__VM_PARAMETERS: |
| return getVmParameters(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__CLASSPATH_REFERENCE: |
| return getClasspathReference(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__DEBUG_PORT: |
| return getDebugPort(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP3: |
| return getGroup3(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__EXTERNAL: |
| return getExternal(); |
| } |
| return eDynamicGet(eFeature, resolve); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eSet(EStructuralFeature eFeature, Object newValue) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP: |
| getGroup().clear(); |
| getGroup().addAll((Collection)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__ENVIRONMENT_VARIABLE: |
| getEnvironmentVariable().clear(); |
| getEnvironmentVariable().addAll((Collection)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP1: |
| getGroup1().clear(); |
| getGroup1().addAll((Collection)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__PROGRAM_ARGUMENTS: |
| getProgramArguments().clear(); |
| getProgramArguments().addAll((Collection)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__WORKING_DIRECTORY: |
| setWorkingDirectory((String)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__MAIN_CLASS: |
| setMainClass((String)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP2: |
| getGroup2().clear(); |
| getGroup2().addAll((Collection)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__VM_PARAMETERS: |
| getVmParameters().clear(); |
| getVmParameters().addAll((Collection)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__CLASSPATH_REFERENCE: |
| setClasspathReference((String)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__DEBUG_PORT: |
| setDebugPort((String)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP3: |
| getGroup3().clear(); |
| getGroup3().addAll((Collection)newValue); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__EXTERNAL: |
| getExternal().clear(); |
| getExternal().addAll((Collection)newValue); |
| return; |
| } |
| eDynamicSet(eFeature, newValue); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public void eUnset(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP: |
| getGroup().clear(); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__ENVIRONMENT_VARIABLE: |
| getEnvironmentVariable().clear(); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP1: |
| getGroup1().clear(); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__PROGRAM_ARGUMENTS: |
| getProgramArguments().clear(); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__WORKING_DIRECTORY: |
| setWorkingDirectory(WORKING_DIRECTORY_EDEFAULT); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__MAIN_CLASS: |
| setMainClass(MAIN_CLASS_EDEFAULT); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP2: |
| getGroup2().clear(); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__VM_PARAMETERS: |
| getVmParameters().clear(); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__CLASSPATH_REFERENCE: |
| setClasspathReference(CLASSPATH_REFERENCE_EDEFAULT); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__DEBUG_PORT: |
| setDebugPort(DEBUG_PORT_EDEFAULT); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP3: |
| getGroup3().clear(); |
| return; |
| case ServerTypePackage.LAUNCH_CONFIGURATION__EXTERNAL: |
| getExternal().clear(); |
| return; |
| } |
| eDynamicUnset(eFeature); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public boolean eIsSet(EStructuralFeature eFeature) { |
| switch (eDerivedStructuralFeatureID(eFeature)) { |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP: |
| return group != null && !group.isEmpty(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__ENVIRONMENT_VARIABLE: |
| return !getEnvironmentVariable().isEmpty(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP1: |
| return group1 != null && !group1.isEmpty(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__PROGRAM_ARGUMENTS: |
| return !getProgramArguments().isEmpty(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__WORKING_DIRECTORY: |
| return WORKING_DIRECTORY_EDEFAULT == null ? workingDirectory != null : !WORKING_DIRECTORY_EDEFAULT.equals(workingDirectory); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__MAIN_CLASS: |
| return MAIN_CLASS_EDEFAULT == null ? mainClass != null : !MAIN_CLASS_EDEFAULT.equals(mainClass); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP2: |
| return group2 != null && !group2.isEmpty(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__VM_PARAMETERS: |
| return !getVmParameters().isEmpty(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__CLASSPATH_REFERENCE: |
| return CLASSPATH_REFERENCE_EDEFAULT == null ? classpathReference != null : !CLASSPATH_REFERENCE_EDEFAULT.equals(classpathReference); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__DEBUG_PORT: |
| return DEBUG_PORT_EDEFAULT == null ? debugPort != null : !DEBUG_PORT_EDEFAULT.equals(debugPort); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__GROUP3: |
| return group3 != null && !group3.isEmpty(); |
| case ServerTypePackage.LAUNCH_CONFIGURATION__EXTERNAL: |
| return !getExternal().isEmpty(); |
| } |
| return eDynamicIsSet(eFeature); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| public String toString() { |
| if (eIsProxy()) return super.toString(); |
| |
| StringBuffer result = new StringBuffer(super.toString()); |
| result.append(" (group: "); |
| result.append(group); |
| result.append(", group1: "); |
| result.append(group1); |
| result.append(", workingDirectory: "); |
| result.append(workingDirectory); |
| result.append(", mainClass: "); |
| result.append(mainClass); |
| result.append(", group2: "); |
| result.append(group2); |
| result.append(", classpathReference: "); |
| result.append(classpathReference); |
| result.append(", debugPort: "); |
| result.append(debugPort); |
| result.append(", group3: "); |
| result.append(group3); |
| result.append(')'); |
| return result.toString(); |
| } |
| |
| /** |
| * @generated NOT |
| */ |
| public String getProgramArgumentsAsString() { |
| return concatList(getProgramArguments()); |
| } |
| |
| /** |
| * @generated NOT |
| */ |
| public String getVmParametersAsString() { |
| return concatList(getVmParameters()); |
| } |
| |
| private String concatList(List list){ |
| StringBuffer concatString = new StringBuffer(); |
| Iterator iterator = list.iterator(); |
| while(iterator.hasNext()){ |
| concatString.append(iterator.next()); |
| concatString.append(" "); |
| } |
| return concatString.toString(); |
| } |
| |
| } //LaunchConfigurationImpl |