org.eclipse.m2m.atl.adt.launching
Class ModelChoiceTab

java.lang.Object
  extended by org.eclipse.debug.ui.AbstractLaunchConfigurationTab
      extended by org.eclipse.m2m.atl.adt.launching.ModelChoiceTab
All Implemented Interfaces:
org.eclipse.debug.ui.ILaunchConfigurationTab

public class ModelChoiceTab
extends org.eclipse.debug.ui.AbstractLaunchConfigurationTab

This class is a tab that appears in the ATL Configuration. This tab allows to set the model and metamodel input and output. For each model


Field Summary
protected static java.util.logging.Logger logger
           
static java.lang.String METAMODEL_INPUT
           
static java.lang.String METAMODEL_OUTPUT
           
static java.lang.String MODEL_INPUT
           
static java.lang.String MODEL_OUTPUT
           
 
Constructor Summary
ModelChoiceTab()
           
 
Method Summary
 boolean canSave()
          This method is used to know if the tab is valid or not.
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 org.eclipse.swt.graphics.Image getImage()
          Returns the icon associate with the tab
 java.lang.String getName()
          Returns the name of the tab
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Display the configuration saved
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
          When the button "Apply" is pushed, this method is launched The configuration is saved.
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
           
 
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
activated, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, deactivated, dispose, getControl, getErrorMessage, getId, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, isDirty, isValid, launched, setAttribute, setControl, setDirty, setErrorMessage, setLaunchConfigurationDialog, setMessage, updateLaunchConfigurationDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static java.util.logging.Logger logger

MODEL_OUTPUT

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

MODEL_INPUT

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

METAMODEL_OUTPUT

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

METAMODEL_INPUT

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

ModelChoiceTab

public ModelChoiceTab()
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
See Also:
ILaunchConfigurationTab.createControl(org.eclipse.swt.widgets.Composite)

setDefaults

public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
See Also:
ILaunchConfigurationTab.setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)

initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
Display the configuration saved

See Also:
ILaunchConfigurationTab.initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)

performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
When the button "Apply" is pushed, this method is launched The configuration is saved. INPUT, OUTPUT and PATH

See Also:
ILaunchConfigurationTab.performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)

getName

public java.lang.String getName()
Returns the name of the tab

See Also:
ILaunchConfigurationTab.getName()

canSave

public boolean canSave()
This method is used to know if the tab is valid or not. While this method returns false, it's impossible to apply

Specified by:
canSave in interface org.eclipse.debug.ui.ILaunchConfigurationTab
Overrides:
canSave in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab

getImage

public org.eclipse.swt.graphics.Image getImage()
Returns the icon associate with the tab

Specified by:
getImage in interface org.eclipse.debug.ui.ILaunchConfigurationTab
Overrides:
getImage in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab

Copyright 2007 IBM Corporation and others.
All Rights Reserved.