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 184347 - <Alt+Shift+F> does not work after dragging an item from the palette
Summary: <Alt+Shift+F> does not work after dragging an item from the palette
Status: RESOLVED WONTFIX
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 11:01 UTC by Alexandr Scherbatiy
Modified: 2011-05-16 13:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE screenshot (77.96 KB, image/png)
2010-04-21 12:14 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-04-16 11:01:48 UTC
NetBeans-JavaFX-Soma: #221

  Product Version         = NetBeans IDE Dev (Build 201004140201) (#ad38c7be819e)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.

Steps to reproduce:

- Drag and Drop Scene item from the Palette to the editor
- Drag and Drop Ellipse item from the Palette to the content of the Scene in the editor

- Press <Alt+Shift+F> to format the code
  Nothing happens.

You need to click mouse to the editor to make the code formatting work.
Comment 1 Anton Chechel 2010-04-19 14:36:35 UTC
This is not a bug. This is default editor behavior in whole netbeans.
Comment 2 Vitezslav Stejskal 2010-04-20 10:46:29 UTC
Umm, so the complaint is that an editor shortcut does not work when the editor does not have a focus? I could be mistaken, but isn't this the way how MDI applications work?
Comment 3 Alexandr Scherbatiy 2010-04-20 10:51:14 UTC
No.

The formatting does not work after the dragging an item from the palette.
So the complaint is that editor does not get focus then the item was dropped on it.
Comment 4 Vitezslav Stejskal 2010-04-20 11:22:46 UTC
Thanks for the clarification.
Comment 5 Karol Harezlak 2010-04-21 11:59:10 UTC
How to reproduce described behavior? Every time I D&D component from Palette to JavaFX editor it has focus and formating is possible. If it's still reproducible please reopen and provide steps to reproduce it.
Comment 6 Karol Harezlak 2010-04-21 12:01:24 UTC
Product Version: NetBeans IDE Dev (Build 201004190200)
Java: 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02
System: Linux version 2.6.31-20-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/lkj/trunk/javafx/build/testuserdir
Comment 7 Alexandr Scherbatiy 2010-04-21 12:13:01 UTC
NetBeans-JavaFX-Soma: #228

Exact steps to reproduce:

- Drag and Drop Scene item from the Palette to the editor
- Drag and Drop Ellipse item from the Palette to the content of the Scene in
the editor (Do not click mouse on the editor, just drug)

---------------------------------------------------
import javafx.scene.Scene;
import javafx.scene.shape.Ellipse;
import javafx.scene.paint.Color;

Scene {
	content: [ Ellipse {
	centerX: 100, centerY: 100
	radiusX: 40, radiusY: 15
	fill: Color.GREEN
}
 ]
}
---------------------------------------------------

- Press  <Alt+Shift+F> to format the code
  Nothing happens.
Comment 8 Alexandr Scherbatiy 2010-04-21 12:14:13 UTC
Created attachment 97792 [details]
IDE screenshot
Comment 9 Karol Harezlak 2010-04-21 13:03:40 UTC
I don't know much about formating but after D&D component from palette editor has focus and when you press Shift+Alt+F (Linux) JFXReformatTask.reformatImpl method is called. In case you press Shift+Alt+F (Linux) in different "context" for example when Palette Window has focus then for this particular shortcut you going to get different behavior/action (for example search action). Reassigning to formating.
Comment 10 Martin Ryzl 2010-10-21 11:55:40 UTC
.
Comment 11 David Strupl 2011-05-16 13:51:26 UTC
Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks.