So you're using MultiViewElements in your NetBeans Platform application. When the user right-clicks one of the tabs they're able to split the editor you've created for them. Here you see the split functionality in the Source tab:

Here you see the split functionality in the Design tab, i.e., in both cases the user right-clicks in the tab and then sees they can split the editor:

However, what if you do NOT want that functionality? In the Branding dialog of the application, look for MultiViewElement.Spliting.Enabled as shown below, then right-click on the word below, choose "Add To Branding" and change the value from 'true' to 'false'.

Then run the application again... and the split functionality is gone in the Source tab:

As well as in the Design tab:

All this and similar branding switches are documented here:

One of the switches in the page above is USE_MNEMONICS, which I discussed here.


Right now I'm developing an application in which I use MultiViewElement,
TopComponent which are for example:
MultiViewElement has a list of customers and other MultiViewElement have to create new or edit.

The problem I face is to use an approach: Model View Presenter,
so I need to get the events for example: Activated, Opened, Showin for use in another class as the presenter:

As I can use the events of a TopComponent (implements MultiViewElement) in a different class as can be Presenter?

Posted by guest on July 30, 2014 at 09:49 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« November 2015