Bug 109730 Surround with runnable quick assist
Version: 3.1.0 Build id: I20050906-1200 Until now surround with runnable was only a text templat. This patches add a quick assist for surround with runnable. Variable declarations are made final and initializers are split off if required. Surround with runnable does not guarantee to generate syntactically correct code in every situation. i.e.: int i = 10, j = i; System.out.println(i); System.out.println(j); Applying surround with runnable on System.out.println(i); results in final int i = 10; int j = i; Runnable runnable = new Runnable() { public void run() { System.out.println(i); } } System.out.println(j);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectionMessages.java
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are 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
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.text.correction;
import org.eclipse.osgi.util.NLS;
/**
 * Helper class to get NLSed messages.
 */
final class CorrectionMessages extends NLS {
	private static final String BUNDLE_NAME= CorrectionMessages.class.getName();
	private CorrectionMessages() {
		
	}
	public static String SerialVersionSubProcessor_createdefault_description;
	public static String SerialVersionSubProcessor_createhashed_description;
	public static String SerialVersionLaunchConfigurationDelegate_setting_up;
	public static String SerialVersionLaunchConfigurationDelegate_starting_vm;
	public static String SerialVersionLaunchConfigurationDelegate_launching_computation;
	public static String SerialVersionLaunchConfigurationDelegate_launching_vm;
	public static String SerialVersionLaunchConfigurationDelegate_verifying_launch_attributes;
	public static String SerialVersionLaunchConfigurationDelegate_constructing_command_line;
	public static String SerialVersionDefaultProposal_message_default_info;