Get the splitter orientation and other info on a splitter

已回答

In EditorWindow 

 

void changeOrientation() {
checkConsistency();
final Container parent = myPanel.getParent();
if (parent instanceof Splitter) {
final Splitter splitter = (Splitter)parent;
splitter.setOrientation(!splitter.getOrientation());
}
}

 

You can find splitter.getOrientation()  requiring a call to parent. Both these are not available as they are not public. 

 

Is it impossible to get the actual orientation? Why are all these things private and what not.

 

You need to take into consderation plugin development. 

 

 

0

what a wonderful community ... youtrack has millions of open issues. 

 

 

This editor becomes shittier for every year I use it. I appreciate the GoLang and PHP support. 

0

Not even the plugin api is decent. 

 

0

1. Please explain your use-case, what do you want to build/achieve? Maybe there's a different API to use.

2. Please stop using bad language and complaining about "things in general".

0

1. I got it in the end. It was not a pretty way to get it but I got the info. 

2. Following your advice, I have no comment. 

0

请先登录再写评论。