This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231803 - Moving the code with ALT+SHIFT+UP or ALT+SHIFT+DOWN should follow proper indentation
Summary: Moving the code with ALT+SHIFT+UP or ALT+SHIFT+DOWN should follow proper inde...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-25 23:21 UTC by adithyank
Modified: 2013-10-06 12:50 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adithyank 2013-06-25 23:21:00 UTC
Product Version = NetBeans IDE 7.4 Beta (Build 201306132201)
Operating System = Linux version 2.6.32-358.11.1.el6.i686 running on i386
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) Client VM 23.21-b01

Moving the code with ALT+SHIFT+UP or ALT+SHIFT+DOWN should follow proper indentation

public static void main(String[] args)
{
	List<String> las = getLocalAddresses();

	CommonUtils.executeInNewThread(new Runnable() 
	{
		@Override
		public void run()
		{
			ClientFWUtil.waitTillClientStarts();
		}
	});
}

Pressing ALT+SHIFT+UP in the line List<String> las = getLocalAddresses() 6 times results in the following code

public static void main(String[] args)
{

	CommonUtils.executeInNewThread(new Runnable() 
	{
		@Override
		public void run()
		{
	List<String> las = getLocalAddresses();
			ClientFWUtil.waitTillClientStarts();
		}
	});
}

But, Ideally the result should have been the following code

public static void main(String[] args)
{

	CommonUtils.executeInNewThread(new Runnable() 
	{
		@Override
		public void run()
		{
			List<String> las = getLocalAddresses();
			ClientFWUtil.waitTillClientStarts();
		}
	});
}