diff options
author | Andrew Ferrazzutti | 2015-04-29 22:43:12 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2015-04-30 07:08:36 +0000 |
commit | b4532560b3909515da5ff1fbe5e9ec80e0043358 (patch) | |
tree | 0cc4cca3d7ba6d511f1ae05b5b2db49294b62d0b /perf/org.eclipse.linuxtools.perf | |
parent | f8ec8024434bafeb169686eca24cf1ab36c04f98 (diff) | |
download | org.eclipse.linuxtools-b4532560b3909515da5ff1fbe5e9ec80e0043358.tar.gz org.eclipse.linuxtools-b4532560b3909515da5ff1fbe5e9ec80e0043358.tar.xz org.eclipse.linuxtools-b4532560b3909515da5ff1fbe5e9ec80e0043358.zip |
Change tabs to spaces, remove trailing whitespace.
Change-Id: I69f8549575a68ef4d3a81587b162e61bd98b0243
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/46822
Tested-by: Hudson CI
Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'perf/org.eclipse.linuxtools.perf')
4 files changed, 26 insertions, 26 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/handlers/AbstractSaveDataHandler.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/handlers/AbstractSaveDataHandler.java index fa23888468..9ea39c6fb2 100644 --- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/handlers/AbstractSaveDataHandler.java +++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/handlers/AbstractSaveDataHandler.java @@ -120,18 +120,18 @@ public abstract class AbstractSaveDataHandler extends BaseDataManipulator implem * Open error dialog informing user of saving failure. * @param filename */ - public void openErroDialog(final String title, String pattern, String arg) { - final String errorMsg = MessageFormat.format(pattern, new Object[] { arg }); - if (Display.getCurrent() != null) { - MessageDialog.openError(Display.getCurrent().getActiveShell(), title, errorMsg); - } else { - Display.getDefault().syncExec(new Runnable() { - @Override - public void run() { - MessageDialog.openError(Display.getCurrent().getActiveShell(), title, errorMsg); - } - }); - } + public void openErroDialog(final String title, String pattern, String arg) { + final String errorMsg = MessageFormat.format(pattern, new Object[] { arg }); + if (Display.getCurrent() != null) { + MessageDialog.openError(Display.getCurrent().getActiveShell(), title, errorMsg); + } else { + Display.getDefault().syncExec(new Runnable() { + @Override + public void run() { + MessageDialog.openError(Display.getCurrent().getActiveShell(), title, errorMsg); + } + }); + } } /** diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/Messages.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/Messages.java index b2abc1185a..b5f06a52b9 100644 --- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/Messages.java +++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/Messages.java @@ -16,14 +16,14 @@ public class Messages extends NLS { private static final String BUNDLE_NAME = "org.eclipse.linuxtools.internal.perf.launch.messages"; //$NON-NLS-1$ public static String MsgProxyError; public static String PerfEventsTab_Add; - public static String PerfEventsTab_Events; - public static String PerfEventsTab_ForExample; - public static String PerfEventsTab_ForExampleR1A8; - public static String PerfEventsTab_HardwareBreakpoint; - public static String PerfEventsTab_Note; - public static String PerfEventsTab_RawRegisterEncoding; - public static String PerfEventsTab_RemoveSelectedEvents; - public static String PerfLaunchConfigDelegate_perf_not_found; + public static String PerfEventsTab_Events; + public static String PerfEventsTab_ForExample; + public static String PerfEventsTab_ForExampleR1A8; + public static String PerfEventsTab_HardwareBreakpoint; + public static String PerfEventsTab_Note; + public static String PerfEventsTab_RawRegisterEncoding; + public static String PerfEventsTab_RemoveSelectedEvents; + public static String PerfLaunchConfigDelegate_perf_not_found; public static String PerfLaunchConfigDelegate_analyzing; public static String PerfLaunchConfigDelegate_stat_title; public static String PerfOptionsTab_Browse; diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfLaunchConfigDelegate.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfLaunchConfigDelegate.java index b0d10f7c85..d6ee43498b 100644 --- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfLaunchConfigDelegate.java +++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfLaunchConfigDelegate.java @@ -71,7 +71,7 @@ import org.osgi.framework.Version; public class PerfLaunchConfigDelegate extends AbstractCLaunchDelegate { - private static final String OUTPUT_STR = "--output="; //$NON-NLS-1$ + private static final String OUTPUT_STR = "--output="; //$NON-NLS-1$ private static final String EMPTY_STRING = ""; //$NON-NLS-1$ private IPath binPath; private IPath workingDirPath; @@ -85,7 +85,7 @@ public class PerfLaunchConfigDelegate extends AbstractCLaunchDelegate { @Override public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { - try { + try { ConfigUtils configUtils = new ConfigUtils(config); project = configUtils.getProject(); // check if Perf exists in $PATH @@ -97,12 +97,12 @@ public class PerfLaunchConfigDelegate extends AbstractCLaunchDelegate { URI binURI = new URI(configUtils.getExecutablePath()); binPath=Path.fromPortableString(binURI.getPath().toString()); if(binPath==null) { - CDebugUtils.verifyProgramPath( config ); + CDebugUtils.verifyProgramPath( config ); } if (binPath.removeLastSegments(2).toPortableString().equals(EMPTY_STRING)) { - workingDirPath=Path.fromPortableString(getWorkingDirectory(config).toURI().getPath()); + workingDirPath=Path.fromPortableString(getWorkingDirectory(config).toURI().getPath()); } else { - workingDirPath=Path.fromPortableString((binPath.removeLastSegments(2).toPortableString()) + IPath.SEPARATOR); + workingDirPath=Path.fromPortableString((binPath.removeLastSegments(2).toPortableString()) + IPath.SEPARATOR); } PerfPlugin.getDefault().setWorkingDir(workingDirPath); diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java index 9399541533..afd77bea74 100644 --- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java +++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDoubleClickAction.java @@ -69,7 +69,7 @@ public class PerfDoubleClickAction extends Action { bFound = true; } if (!bFound) { - ProfileUIUtils.openEditorAndSelect(file.getPath(), 1, ResourcesPlugin.getWorkspace().getRoot().getProject(dso.getName())); + ProfileUIUtils.openEditorAndSelect(file.getPath(), 1, ResourcesPlugin.getWorkspace().getRoot().getProject(dso.getName())); } } // if we encounter an exception, act as though no corresponding source exists |