diff options
author | Alexander Kurtakov | 2014-04-17 21:36:07 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2014-04-25 11:40:42 +0000 |
commit | cd066c4824b488d793d1da11b8cd25b0a2a0af49 (patch) | |
tree | 67f468124e6b6f874363b3ef26d261d17bc6f6c7 /gprof | |
parent | aab6295df06b7d7808c4d948166e09e607cb8376 (diff) | |
download | org.eclipse.linuxtools-cd066c4824b488d793d1da11b8cd25b0a2a0af49.tar.gz org.eclipse.linuxtools-cd066c4824b488d793d1da11b8cd25b0a2a0af49.tar.xz org.eclipse.linuxtools-cd066c4824b488d793d1da11b8cd25b0a2a0af49.zip |
profiling: Retire ProfileLaunchConfigurationDelegate.
It was serving no point but to add one exec method which is better to be
together with the other similiar methods in CdtSpawnerProcessFactory.
Change-Id: I35e45de1e2269d90a4c139ea2ca1af9adbedea3d
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/25240
Tested-by: Hudson CI
Diffstat (limited to 'gprof')
4 files changed, 63 insertions, 4 deletions
diff --git a/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofLaunchConfigurationDelegate.java b/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofLaunchConfigurationDelegate.java index c170135c76..728af267c5 100644 --- a/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofLaunchConfigurationDelegate.java +++ b/gprof/org.eclipse.linuxtools.gprof.launch/src/org/eclipse/linuxtools/internal/gprof/launch/GprofLaunchConfigurationDelegate.java @@ -19,6 +19,7 @@ import java.io.File; import java.net.URI; import org.eclipse.cdt.debug.core.CDebugUtils; +import org.eclipse.cdt.launch.AbstractCLaunchDelegate; import org.eclipse.core.filesystem.IFileStore; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; @@ -34,13 +35,12 @@ import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.linuxtools.internal.gprof.view.GmonView; import org.eclipse.linuxtools.profiling.launch.IRemoteCommandLauncher; import org.eclipse.linuxtools.profiling.launch.IRemoteFileProxy; -import org.eclipse.linuxtools.profiling.launch.ProfileLaunchConfigurationDelegate; import org.eclipse.linuxtools.profiling.launch.RemoteProxyManager; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.PlatformUI; -public class GprofLaunchConfigurationDelegate extends ProfileLaunchConfigurationDelegate { +public class GprofLaunchConfigurationDelegate extends AbstractCLaunchDelegate { private ILaunchConfiguration config; @Override diff --git a/gprof/org.eclipse.linuxtools.gprof.test/.settings/org.eclipse.jdt.ui.prefs b/gprof/org.eclipse.linuxtools.gprof.test/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000000..4cf03a28bb --- /dev/null +++ b/gprof/org.eclipse.linuxtools.gprof.test/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,57 @@ +eclipse.preferences.version=1 +editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true +sp_cleanup.add_default_serial_version_id=true +sp_cleanup.add_generated_serial_version_id=false +sp_cleanup.add_missing_annotations=true +sp_cleanup.add_missing_deprecated_annotations=true +sp_cleanup.add_missing_methods=false +sp_cleanup.add_missing_nls_tags=false +sp_cleanup.add_missing_override_annotations=true +sp_cleanup.add_missing_override_annotations_interface_methods=true +sp_cleanup.add_serial_version_id=false +sp_cleanup.always_use_blocks=true +sp_cleanup.always_use_parentheses_in_expressions=false +sp_cleanup.always_use_this_for_non_static_field_access=false +sp_cleanup.always_use_this_for_non_static_method_access=false +sp_cleanup.convert_functional_interfaces=false +sp_cleanup.convert_to_enhanced_for_loop=false +sp_cleanup.correct_indentation=false +sp_cleanup.format_source_code=false +sp_cleanup.format_source_code_changes_only=false +sp_cleanup.make_local_variable_final=true +sp_cleanup.make_parameters_final=false +sp_cleanup.make_private_fields_final=true +sp_cleanup.make_type_abstract_if_missing_method=false +sp_cleanup.make_variable_declarations_final=false +sp_cleanup.never_use_blocks=false +sp_cleanup.never_use_parentheses_in_expressions=true +sp_cleanup.on_save_use_additional_actions=true +sp_cleanup.organize_imports=true +sp_cleanup.qualify_static_field_accesses_with_declaring_class=false +sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true +sp_cleanup.qualify_static_member_accesses_with_declaring_class=false +sp_cleanup.qualify_static_method_accesses_with_declaring_class=false +sp_cleanup.remove_private_constructors=true +sp_cleanup.remove_trailing_whitespaces=false +sp_cleanup.remove_trailing_whitespaces_all=true +sp_cleanup.remove_trailing_whitespaces_ignore_empty=false +sp_cleanup.remove_unnecessary_casts=true +sp_cleanup.remove_unnecessary_nls_tags=false +sp_cleanup.remove_unused_imports=false +sp_cleanup.remove_unused_local_variables=false +sp_cleanup.remove_unused_private_fields=true +sp_cleanup.remove_unused_private_members=false +sp_cleanup.remove_unused_private_methods=true +sp_cleanup.remove_unused_private_types=true +sp_cleanup.sort_members=false +sp_cleanup.sort_members_all=false +sp_cleanup.use_anonymous_class_creation=false +sp_cleanup.use_blocks=false +sp_cleanup.use_blocks_only_for_return_and_throw=false +sp_cleanup.use_lambda=true +sp_cleanup.use_parentheses_in_expressions=false +sp_cleanup.use_this_for_non_static_field_access=false +sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true +sp_cleanup.use_this_for_non_static_method_access=false +sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true diff --git a/gprof/org.eclipse.linuxtools.gprof.test/META-INF/MANIFEST.MF b/gprof/org.eclipse.linuxtools.gprof.test/META-INF/MANIFEST.MF index 701edd8e36..20d96769bc 100644 --- a/gprof/org.eclipse.linuxtools.gprof.test/META-INF/MANIFEST.MF +++ b/gprof/org.eclipse.linuxtools.gprof.test/META-INF/MANIFEST.MF @@ -8,7 +8,8 @@ Bundle-RequiredExecutionEnvironment: JavaSE-1.7 Require-Bundle: org.junit;bundle-version="4.10.0", org.eclipse.linuxtools.gprof.launch;bundle-version="1.0.0", org.eclipse.linuxtools.profiling.tests;bundle-version="1.0.0", - org.eclipse.linuxtools.profiling.launch;bundle-version="1.2.0" + org.eclipse.linuxtools.profiling.launch;bundle-version="1.2.0", + org.eclipse.cdt.launch Bundle-Localization: plugin Bundle-ActivationPolicy: lazy Fragment-Host: org.eclipse.linuxtools.gprof diff --git a/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/internal/gprof/test/GprofLaunchTest.java b/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/internal/gprof/test/GprofLaunchTest.java index df6b930726..58bf3deb02 100644 --- a/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/internal/gprof/test/GprofLaunchTest.java +++ b/gprof/org.eclipse.linuxtools.gprof.test/src/org/eclipse/linuxtools/internal/gprof/test/GprofLaunchTest.java @@ -12,6 +12,7 @@ package org.eclipse.linuxtools.internal.gprof.test; import static org.junit.Assert.fail; +import org.eclipse.cdt.launch.AbstractCLaunchDelegate; import org.eclipse.core.resources.ProjectScope; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; @@ -38,7 +39,7 @@ import org.osgi.framework.FrameworkUtil; public class GprofLaunchTest extends AbstractTest { protected ILaunchConfiguration config; - protected GprofLaunchConfigurationDelegate delegate; + protected AbstractCLaunchDelegate delegate; protected ILaunch launch; protected ILaunchConfigurationWorkingCopy wc; private static final String ID = "org.eclipse.linuxtools.profiling.provider.TimingLaunchShortcut"; //$NON-NLS-1$ |