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 249228 - Refactoring does not work on not docked window
Summary: Refactoring does not work on not docked window
Status: VERIFIED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-09 11:34 UTC by gameshas
Modified: 2016-06-10 11:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gameshas 2014-12-09 11:34:02 UTC
How to reproduce:
Right click on a tab and select Float, then move a tab window to another monitor and maximize.
Then press Ctrl+R to refactor/rename a method.
Dialog appears to enter a new name. Enter a new name and press preview.
Dialog disappears and nothing happens.

If you right click on a tab and press dock and repeat the process, refactoring preview appears correctly. It seams there is an issue with floating windows only.

Refactoring used on PHP source code.

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 8 version 6.2 running on amd64; Cp1257; en_GB (nb)
Comment 1 Tomas Mysik 2016-06-10 09:52:38 UTC
The Preview window appears in the IDE (its main window). IMHO it is correct and expected. Or am I wrong?

Thanks for reporting.

Product Version: NetBeans IDE Dev (Build 20160610-49331e2a0591)
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14
System: Linux version 4.2.0-38-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 2 gameshas 2016-06-10 10:03:17 UTC
it appears in the monitor that the floated window is on.

the problem is not where the window appears, 
but that it does not refactor the code, the refactoring process just does not get executed if started from the floating window.

haven't tested on the dev version, but in this version it still does not work:

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_73; Java HotSpot(TM) 64-Bit Server VM 25.73-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_73-b02
System: Windows 8.1 version 6.3 running on amd64; Cp1257; en_GB (nb)
Comment 3 gameshas 2016-06-10 10:07:56 UTC
Just tested it on 
Product Version: NetBeans IDE Dev (Build 201606030002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 8.1 version 6.3 running on amd64; Cp1257; en_GB (nb)

and you are right it works as expected
Comment 4 Tomas Mysik 2016-06-10 11:56:53 UTC
I do not have 2 monitors so was not sure whhat the problem is :) Great to here that it works for you now.

Thanks for reporting.