diff options
Diffstat (limited to 'oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/LaunchOptions.java')
-rw-r--r-- | oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/LaunchOptions.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/LaunchOptions.java b/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/LaunchOptions.java index c44f0b3117..b357b41e42 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/LaunchOptions.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/internal/oprofile/launch/configuration/LaunchOptions.java @@ -13,6 +13,7 @@ package org.eclipse.linuxtools.internal.oprofile.launch.configuration; import org.eclipse.core.filesystem.IFileStore; +import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; @@ -42,7 +43,7 @@ public class LaunchOptions { public boolean isValid() { IRemoteFileProxy proxy = null; try { - proxy = RemoteProxyManager.getInstance().getFileProxy(Oprofile.OprofileProject.getProject()); + proxy = RemoteProxyManager.getInstance().getFileProxy(getOprofileProject()); } catch (CoreException e) { e.printStackTrace(); } @@ -55,7 +56,15 @@ public class LaunchOptions { return true; } - + + /** + * Get project to profile + * @return IProject project to profile + */ + protected IProject getOprofileProject(){ + return Oprofile.OprofileProject.getProject(); + } + /** * Saves the global options of this object into the specified launch * configuration |