Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Want to show Dialog of Open Type (ctrl+shift+T) on button click
Want to show Dialog of Open Type (ctrl+shift+T) on button click [message #647609] Fri, 07 January 2011 05:35 Go to next message
Eclipse UserFriend
Hi ,
I am workign on developing a plugin in Eclipse. On the button click, I want to show the dialog of Open Type (as open when you press ctrl+shift+T ) inside your Eclipse/RAD IDE, to select any Java File form its projects. I have to do the same thing.

On Button click, it will open the dialog and when user types the java file name, it will search the file from workspace and show in below table and user can select the file from that list. Same functionality as in Ctrl+Shift+T command in Eclipse or RAD.

But I dont know how to call that dilaog function to appear.

Any idea/help would be appericiated.

Thanks.

[Updated on: Fri, 07 January 2011 05:36] by Moderator

Re: Want to show Dialog of Open Type (ctrl+shift+T) on button click [message #647625 is a reply to message #647609] Fri, 07 January 2011 07:58 Go to previous messageGo to next message
Eclipse UserFriend
Open Type command id: org.eclipse.jdt.ui.navigate.open.type
Open Resource command id: org.eclipse.ui.navigate.openResource

Programmatically, you would use the IHandlerService to execute those
commands. Those IDs can also be used with org.eclipse.ui.menus to place
the commands in menus and toolbars.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Re: Want to show Dialog of Open Type (ctrl+shift+T) on button click [message #647632 is a reply to message #647609] Fri, 07 January 2011 08:30 Go to previous message
Eclipse UserFriend
On 07.01.2011 11:35, Deepak Singla wrote:
> Hi ,
> I am workign on developing a plugin in Eclipse. On the button click, i
> want to show the dialog of Open Type (as open when you press
> ctrl+shift+T ) inside your Eclipse/RAD IDE, to select any Java File
> form its projects. I have to do the same thing.
> On Button click, it will open the dialog and when user types the java
> file name, it will search the file from workpace and show in below
> table and user can select the file from that list. Same functionality
> as in Ctrl+Shift+T command in Eclipse or RAD.
> But I dont know how to call that dilaog function to appear.
See org.eclipse.jdt.ui.JavaUI.createTypeDialog(*).

Dani
>
> Any idea/help would be appriciated.
>
> Thanks
Previous Topic:Is it possible to hook into the eclipse compiler?
Next Topic:When and where Eclipse creates red underlines (for compilation errors) in code?
Goto Forum:
  


Current Time: Tue Jul 22 22:49:23 EDT 2025

Powered by FUDForum. Page generated in 0.06977 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top