/** * @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage() */ public static Image getClasspathImage() { return JavaClasspathTab.getClasspathImage(); }
public void activated(ILaunchConfigurationWorkingCopy workingCopy) { try { boolean useDefault= workingCopy.getAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_CLASSPATH, true); if (useDefault) { if (!isDefaultClasspath(getCurrentClasspath(), workingCopy)) { initializeFrom(workingCopy); return; } } fClasspathViewer.refresh(); } catch (CoreException e) { } }
setErrorMessage(null); try { useDefault = configuration.getAttribute(IJavaLaunchConfigurationConstants.ATTR_DEFAULT_CLASSPATH, true); if (configuration == getLaunchConfiguration()) { setDirty(false); return; setLaunchConfiguration(configuration); try { createClasspathModel(configuration); } catch (CoreException e) { setErrorMessage(e.getMessage()); setDirty(false);
@Override public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new OfficeFloorMainTab(), new JavaJRETab(), new JavaClasspathTab(), new CommonTab() }; this.setTabs(tabs); } }
@Override public void setDirty(boolean dirty) { super.setDirty(dirty); }
@Override public void initializeFrom(ILaunchConfiguration configuration) { try { AntUtil.migrateToNewClasspathFormat(configuration); } catch (CoreException e) { // do nothing } super.initializeFrom(configuration); }
List advancedActions = new ArrayList(5); createButton(pathButtonComp, new MoveUpAction(fClasspathViewer)); createButton(pathButtonComp, new MoveDownAction(fClasspathViewer)); createButton(pathButtonComp, new RemoveAction(fClasspathViewer)); createButton(pathButtonComp, new AddProjectAction(fClasspathViewer)); createButton(pathButtonComp, new AddJarAction(fClasspathViewer)); createButton(pathButtonComp, new AddExternalJarAction(fClasspathViewer, DIALOG_SETTINGS_PREFIX)); createButton(pathButtonComp, new AddAdvancedAction(fClasspathViewer, adv)); action = new EditClasspathEntryAction(fClasspathViewer, getLaunchConfiguration()); createButton(pathButtonComp, action); createButton(pathButtonComp, action); action.setEnabled(true);
/** Replies the preferred tab for configuring the classpath. * The tab may be the standard {@link JavaClasspathTab} or its specialization * {@link JavaDependenciesTab}. * * @param dialog the dialog that will contains the tab. * @return the tab instance, never {@code null}. */ protected static JavaClasspathTab getClasspathTab(ILaunchConfigurationDialog dialog) { JavaClasspathTab tab = null; if (dialog instanceof LaunchConfigurationsDialog) { final LaunchConfigurationTabGroupViewer tabViewer = ((LaunchConfigurationsDialog) dialog).getTabViewer(); if (tabViewer != null) { final Object input = tabViewer.getInput(); if (input instanceof ILaunchConfiguration) { final ILaunchConfiguration configuration = (ILaunchConfiguration) input; if (JavaRuntime.isModularConfiguration(configuration)) { tab = new JavaDependenciesTab(); } } } } if (tab == null) { tab = new JavaClasspathTab(); } return tab; }
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 Image getImage() { return 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 Image getImage(Object element) { if (element instanceof ClasspathEntry) { ClasspathEntry entry = (ClasspathEntry) element; return runtimeClasspathLabelProvider.getImage(entry); } return JavaClasspathTab.getClasspathImage(); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { RutaMainLaunchConfigurationTab main = new RutaMainLaunchConfigurationTab(mode); ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { main, new JavaArgumentsTab(), new JavaJRETab(), new JavaClasspathTab(), new RutaInterpreterTab(main), new EnvironmentTab(), new ScriptCommonTab(main) }; setTabs(tabs); } }
public Image getImage(Object element) { if (element instanceof ClasspathEntry) { ClasspathEntry entry = (ClasspathEntry) element; return runtimeClasspathLabelProvider.getImage(entry); } return JavaClasspathTab.getClasspathImage(); }
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); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs= new ILaunchConfigurationTab[] { new TestNGMainTab(), // new AlternateLaunchConfigurationTab(), 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 JUnitLaunchConfigurationTab(), new OSGiArgumentsTab(), new JavaArgumentsTab(), new JavaClasspathTab(), new JavaJRETab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab() }; setTabs(tabs); }
/** * @see ILaunchConfigurationTabGroup#createTabs(ILaunchConfigurationDialog, String) */ public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new JavaMainTab(), new JavaArgumentsTab(), new JavaJRETab(), new JavaClasspathTab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab() }; setTabs(tabs); }
public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs= new ILaunchConfigurationTab[] { new JUnitLaunchConfigurationTab(), new OSGiArgumentsTab(), new JavaArgumentsTab(), new JavaClasspathTab(), new JavaJRETab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab() }; setTabs(tabs); }
/** * @see ILaunchConfigurationTabGroup#createTabs(ILaunchConfigurationDialog, * String) */ public void createTabs(ILaunchConfigurationDialog dialog, String mode) { ILaunchConfigurationTab[] tabs = new ILaunchConfigurationTab[] { new JavaMainTab(), new JavaArgumentsTab(), new AJJRETab(), new JavaClasspathTab(), new LTWAspectPathTab(), new SourceLookupTab(), new EnvironmentTab(), new CommonTab() }; setTabs(tabs); }