Changeset 3501


Ignore:
Timestamp:
Mar 12, 2008, 9:24:44 PM (13 years ago)
Author:
yura
Message:
  • Use IJavaLaunchConfigurationConstants instead of IRfpLaunchConfigurationConstants.
Location:
devel-tools/trunk/eclipse
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt.ui/src/org/refal/plus/rfpdt/launch/ui/RfpLaunchShortcut.java

    r3500 r3501  
    9696                    configType);
    9797            for (ILaunchConfiguration config : configs)
    98                 if (config.getAttribute(IRfpLaunchConfigurationConstants.ATTR_MODULE_NAME, "").equals(
     98                if (config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "").equals(
    9999                        RfpBuilder.getModuleName(module))
    100100                        && config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, "").equals(
     
    185185    private static void createConfiguration (ILaunchConfigurationWorkingCopy config, IFile module) {
    186186        if (module != null) {
    187             config.setAttribute(IRfpLaunchConfigurationConstants.ATTR_PROJECT_NAME, module.getProject().getName());
    188             config.setAttribute(IRfpLaunchConfigurationConstants.ATTR_MODULE_NAME, RfpBuilder.getModuleName(module));
     187            config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, module.getProject().getName());
     188            config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, RfpBuilder.getModuleName(module));
    189189            config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, getWorkingDirectory(module));
    190190        }
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt.ui/src/org/refal/plus/rfpdt/launch/ui/RfpRefalMainTab.java

    r3498 r3501  
    2121import org.eclipse.swt.widgets.Group;
    2222import org.eclipse.swt.widgets.Text;
    23 import org.refal.plus.rfpdt.launching.IRfpLaunchConfigurationConstants;
    2423
    2524public class RfpRefalMainTab extends AbstractLaunchConfigurationTab {
     
    133132        boolean stopInMain = false;
    134133        try {
    135             projectName = config.getAttribute(IRfpLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
    136             moduleName = config.getAttribute(IRfpLaunchConfigurationConstants.ATTR_MODULE_NAME, "");
     134            projectName = config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
     135            moduleName = config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "");
    137136            stopInMain = config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN, false);
    138137        } catch (CoreException ce) {
     
    145144
    146145    public void performApply (ILaunchConfigurationWorkingCopy config) {
    147         config.setAttribute(IRfpLaunchConfigurationConstants.ATTR_PROJECT_NAME, fProjectText.getText().trim());
    148         config.setAttribute(IRfpLaunchConfigurationConstants.ATTR_MODULE_NAME, fModuleText.getText().trim());
     146        config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, fProjectText.getText().trim());
     147        config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, fModuleText.getText().trim());
    149148        if (fStopInMainCheckButton.getSelection())
    150149            config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_STOP_IN_MAIN, true);
     
    172171
    173172    public void setDefaults (ILaunchConfigurationWorkingCopy config) {
    174         config.setAttribute(IRfpLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
    175         config.setAttribute(IRfpLaunchConfigurationConstants.ATTR_MODULE_NAME, "");
     173        config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "");
     174        config.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME, "");
    176175    }
    177176
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/launching/IRfpLaunchConfigurationConstants.java

    r3500 r3501  
    11package org.refal.plus.rfpdt.launching;
    22
    3 import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
    43
    54/**
     
    87 */
    98public interface IRfpLaunchConfigurationConstants /* extends IJavaLaunchConfigurationConstants */{
    10     public static final String ATTR_PROJECT_NAME = IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME;
    11     public static final String ATTR_MODULE_NAME = IJavaLaunchConfigurationConstants.ATTR_MAIN_TYPE_NAME;
    12     public static final String PLUGIN_ID = "org.refal.plus.rfpdt.launch";
    139    public static final String LAUNCH_CONFIGURATION_TYPE = "org.refal.plus.rfpdt.launching.rfpApplication";
    14     public static final String CLASSPATH_PROVIDER = "org.refal.plus.rfpdt.launch.rfp_classpath";
    1510}
Note: See TracChangeset for help on using the changeset viewer.