Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 96870 Details for
Bug 186713
[External Java Application Launch Configuration] Cannot use a Working Directory which does not exist on the local machine
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
fix
patch_eja.txt (text/plain), 3.06 KB, created by
Alexander N. Alexeev
on 2008-04-21 10:56:23 EDT
(
hide
)
Description:
fix
Filename:
MIME Type:
Creator:
Alexander N. Alexeev
Created:
2008-04-21 10:56:23 EDT
Size:
3.06 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.hyades.trace.ui >Index: src/org/eclipse/hyades/trace/ui/internal/launcher/ProfileExternalJavaApplicationTabGroup.java >=================================================================== >RCS file: /cvsroot/tptp/platform/org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/launcher/ProfileExternalJavaApplicationTabGroup.java,v >retrieving revision 1.8 >diff -u -r1.8 ProfileExternalJavaApplicationTabGroup.java >--- src/org/eclipse/hyades/trace/ui/internal/launcher/ProfileExternalJavaApplicationTabGroup.java 19 May 2007 00:54:16 -0000 1.8 >+++ src/org/eclipse/hyades/trace/ui/internal/launcher/ProfileExternalJavaApplicationTabGroup.java 21 Apr 2008 14:54:20 -0000 >@@ -29,7 +29,7 @@ > ProfileHostTab _hostTab = new ProfileHostTab(); > tabs.add(_hostTab); > tabs.add(new ProfileMainTab(_hostTab)); >- tabs.add(new JavaArgumentsTab()); >+ tabs.add(new ExternalJavaArgumentsTab()); > tabs.add(new ProfileTab(false)); > tabs.add(new DestinationTab()); > tabs.add(new ProfileEnvironmentTab()); >Index: src/org/eclipse/hyades/trace/ui/internal/launcher/ExternalJavaArgumentsTab.java >=================================================================== >RCS file: src/org/eclipse/hyades/trace/ui/internal/launcher/ExternalJavaArgumentsTab.java >diff -N src/org/eclipse/hyades/trace/ui/internal/launcher/ExternalJavaArgumentsTab.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/hyades/trace/ui/internal/launcher/ExternalJavaArgumentsTab.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,45 @@ >+/********************************************************************** >+ * Copyright (c) 2008 Intel Corporation. >+ * All rights reserved. This content is made available under >+ * the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * $Id$ >+ * >+ * Contributors: >+ * Intel - Initial contribution >+ **********************************************************************/ >+ >+package org.eclipse.hyades.trace.ui.internal.launcher; >+ >+import org.eclipse.core.runtime.CoreException; >+import org.eclipse.debug.core.ILaunchConfiguration; >+import org.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab; >+import org.eclipse.tptp.platform.common.ui.trace.internal.CommonUITraceConstants; >+ >+public class ExternalJavaArgumentsTab extends JavaArgumentsTab { >+ >+ private boolean isValidated = true; >+ >+ public boolean isValid(ILaunchConfiguration config) { >+ try { >+ // directory shouldn't be validated if target host isn't localhost >+ if (config.getAttribute(IProfileLaunchConfigurationConstants.ATTR_HOSTNAME, >+ CommonUITraceConstants.LOCAL_HOST).equals(CommonUITraceConstants.LOCAL_HOST)) { >+ isValidated = true; >+ return super.isValid(config); >+ } >+ } catch (CoreException e) { >+ e.printStackTrace(); >+ } >+ isValidated = false; >+ return true; >+ } >+ >+ public String getErrorMessage() { >+ if (isValidated) { >+ return super.getErrorMessage(); >+ } >+ return null; >+ } >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186713
: 96870