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 270533 - Allow plugin to select mode for window docking
Summary: Allow plugin to select mode for window docking
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: Dev
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2017-05-02 07:41 UTC by Svata Dedic
Modified: 2017-06-02 02:34 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed changes (6.25 KB, patch)
2017-05-02 07:41 UTC, Svata Dedic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2017-05-02 07:41:58 UTC
Created attachment 164218 [details]
Proposed changes

If the configuration does not define a Mode to dock a new window into, the current system chooses the last-used editor mode. If there are more editor modes available, the opened editor may end up in an unsuitable position. 
The application (or plugins) should be able to select precise Mode to dock new windows into. If no plugin wants to specify the position, the current default will be used.

Please review the attached diff
Comment 1 Svata Dedic 2017-05-29 06:39:52 UTC
Integrated as jet-main#85afd5ac39e4
Comment 2 Quality Engineering 2017-06-02 02:34:01 UTC
Integrated into 'main-silver', will be available in build *201706020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/85afd5ac39e4
User: Svata Dedic <sdedic@netbeans.org>
Log: #270533: plugins can identify appropriate Mode for newly opened TopComponents