Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:35 Go to next message
Deepak Singla is currently offline Deepak SinglaFriend
Messages: 27
Registered: December 2009
Junior Member
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 10:36]

Report message to a 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 12:58 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 13:30 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
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: Mon Dec 22 22:17:25 GMT 2014

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

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