List of usage examples for com.google.gwt.eclipse.core.launch.processors RemoteUiArgumentProcessor ARG_REMOTE_UI
String ARG_REMOTE_UI
To view the source code for com.google.gwt.eclipse.core.launch.processors RemoteUiArgumentProcessor ARG_REMOTE_UI.
Click Source Link
From source file:com.google.gdt.eclipse.suite.launch.WebAppLaunchDelegate.java
License:Open Source License
@Override public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (!addVmArgs(configuration)) { return;/*from ww w .ja va 2 s . c o m*/ } try { if (!ensureWarArgumentExistenceInCertainCases(configuration)) { return; } IJavaProject javaProject = getJavaProject(configuration); maybePublishModulesToWarDirectory(configuration, monitor, javaProject, false); } catch (Throwable t) { // Play safely and continue launch GdtPlugin.getLogger().logError(t, "Could not ensure WAR argument existence for the unmanaged WAR project."); } // check if this launch uses -remoteUI. If not, then don't add this launch // to the devmode view boolean addLaunch = true; if (launch != null) { try { List<String> args = LaunchConfigurationProcessorUtilities .parseProgramArgs(launch.getLaunchConfiguration()); if (!args.contains(RemoteUiArgumentProcessor.ARG_REMOTE_UI)) { addLaunch = false; } } catch (CoreException e1) { GWTPluginLog.logError(e1); } } if (addLaunch) { /* * Add the launch to the DevMode view. This is tightly coupled because at * the time of ILaunchListener's changed callback, the launch's process * does not have a command-line set. Unfortunately there isn't another * listener to solve our needs, so we add this glue here. */ WebAppDebugModel.getInstance().addOrReturnExistingLaunchConfiguration(launch, null, null); } super.launch(configuration, mode, launch, monitor); }