X

Geertjan's Blog

  • July 30, 2014

MultiViewElement.Spliting.Enabled

Geertjan Wielenga
Product Manager

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:

http://bits.netbeans.org/dev/javadoc/branding.html

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

Join the discussion

Comments ( 1 )
  • guest Wednesday, July 30, 2014

    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?


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.