This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
6 Replies Last post: Feb 25, 2008 1:42 PM by Ahmed Mohombe  
Geertjan  Newbie 14 posts since
Feb 24, 2008
Currently Being Moderated

Feb 24, 2008 2:42 PM

Create a new toolbar

I've seen some general descriptions of how to create a new toolbar, but can someone be more specific? I want to add a toolbar, and then put a JList into that toolbar to display something. How would this be done?

Guest
Currently Being Moderated
Feb 25, 2008 9:47 AM in response to: Geertjan
Re: Create a new toolbar

Hello geertjan,

 

Basically, I've extended AnAction. Now that I have extended that, what

must I do next?

 

From reading your tutorial at jetbrains.dzone.com, I assume you actually

need a tool_window_ rather than a tool_bar_? I don't quite understand how

the list of search results could be displayed in a toolbar.

 

If you need a toolwindow, your starting point should be the examples/toolWindow

sample plugin in the Plugin Development Kit. It shows you the basic steps

for creating a toolwindow.

 

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

 

 

 

Guest
Currently Being Moderated
Feb 25, 2008 12:21 PM in response to: Geertjan
Re: Create a new toolbar

Hello geertjan,

 

Hi Dmitry,

 

This is what I mean:

 

http://blogs.sun.com/geertjan/resource/youtube-movies-in-intellij-tool

bar.png

 

OK, I see now.

 

Now, is there a way to open an external browser from one of the

IntelliJ APIs? That would be great because then the selected movie

would be openable and one could watch it right away.

 

BrowserUtil.launchBrowser()

 

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

 

 

 

Ahmed Mohombe Newbie 48 posts since
Mar 5, 2005
Currently Being Moderated
Feb 25, 2008 1:42 PM in response to: Geertjan
Re: Create a new toolbar

Hi Geerjan,

 

This is what I mean:

http://blogs.sun.com/geertjan/resource/youtube-movies-in-intellij-toolbar.png

Thank you very much for your tutorial.

 

I always enjoyed you tutorials(and book ) about NB, and I'm very glad you are writing

some articles for IntelliJ too.

 

Please do more articles.

 

Thanks in advance,

 

Ahmed.

 

More Like This

  • Retrieving data ...