public void setDefaults(ILaunchConfigurationWorkingCopy config) { IJavaElement je= getContext(); if (je == null) { initializeHardCodedDefaults(config); } else { initializeDefaults(je, config); } }
public void setDefaults(ILaunchConfigurationWorkingCopy config) { IJavaElement javaElement = getContext(); if (javaElement == null) { initializeHardCodedDefaults(config); } else { initializeDefaults(javaElement, config); } }
/** * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage() */ public static Image getClasspathImage() { return JavaClasspathTab.getClasspathImage(); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new JavaArgumentsTab(), new JavaClasspathTab(), new JavaJRETab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab(), }; setTabs(tabs); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new AppletMainTab(), new AppletParametersTab(), new AppletArgumentsTab(), new JavaJRETab(), new JavaClasspathTab(), new SourceLookupTab(), new CommonTab() }; setTabs(tabs); }
/** * Initialize default attribute values based on the * given Java element. */ private void initializeDefaults(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) { initializeJavaProject(javaElement, config); initializeMainTypeAndName(javaElement, config); initializeHardCodedDefaults(config); initializeAppletViewerClass(config); }
/** * Initialize default settings for the given Java element */ private void initializeDefaults(IJavaElement javaElement, ILaunchConfigurationWorkingCopy config) { initializeJavaProject(javaElement, config); initializeName(javaElement, config); initializeHardCodedDefaults(config); }
public JavaArgumentsTab() { fVMArgumentsBlock = createVMArgsBlock(); fWorkingDirectoryBlock = createWorkingDirBlock(); }
@Override public void setDirty(boolean dirty) { super.setDirty(dirty); }
/** * Overridden here so that any error message in the dynamic UI gets returned. * * @see ILaunchConfigurationTab#getErrorMessage() */ public String getErrorMessage() { ILaunchConfigurationTab tab = getDynamicTab(); if ((super.getErrorMessage() != null) || (tab == null)) { return super.getErrorMessage(); } return tab.getErrorMessage(); }
/** * @see ILaunchConfigurationTab#setDefaults(ILaunchConfigurationWorkingCopy) */ public void setDefaults(ILaunchConfigurationWorkingCopy config) { setLaunchConfigurationWorkingCopy(config); ILaunchConfigurationTab dynamicTab = getDynamicTab(); if (dynamicTab != null) { dynamicTab.setDefaults(config); } }
public void initializeFrom(ILaunchConfiguration config) { super.initializeFrom(config); updateMainTypeFromConfig(config); updateAppletViewerClassNameFromConfig(config); }
/** * Initialize those attributes whose default values are independent of any context. */ private void initializeHardCodedDefaults(ILaunchConfigurationWorkingCopy config) { initializeDefaultVM(config); }
public void propertyChange(PropertyChangeEvent event) { updateLaunchConfigurationDialog(); } }
public void propertyChange(PropertyChangeEvent event) { handleSelectedJREChanged(); } };
public void initializeFrom(ILaunchConfiguration config) { setCurrentLaunchConfiguration(config); }
@Override public boolean isValid(ILaunchConfiguration launchConfig) { boolean valid = super.isValid(launchConfig); if (!valid) { return false; } return validateAntHome(); }
/** * Set the appropriate enabled state for the applet viewer text widget. */ private void setAppletViewerTextEnabledState() { if (isDefaultAppletViewerClassName()) { fAppletViewerClassText.setEnabled(false); } else { fAppletViewerClassText.setEnabled(true); } }
/** * Creates a button for the given action. * * @param pathButtonComp parent composite for the button * @param action the action triggered by the button * @return the button that was created */ protected Button createButton(Composite pathButtonComp, RuntimeClasspathAction action) { Button button = createPushButton(pathButtonComp, action.getText(), null); action.setButton(button); return button; }
public Image getImage() { return getClasspathImage(); }