java - Get input field of a dialog in eclipse -


For my plugin, I try to get active eclips communication with these lines:

  string shelltitle = display.tv (). GetActiveShell () GetTitle (); System.out.println ("Open Dialog:" + Shelltital);   

If I open the search dialog for example, these lines print me

  Open Dialog: In my console   < p> Search but I would also like to print the keyword in the search field, for example  
  opened dialog: search (with the search term 'chatation')   

I have read the API reference and there, I can just get the getTitle () and get some other ways to get the limits.

What is my idea? And if not, then is this possible with these so-called expansion points? I have never used them, but have heard about them.

Mistakes in your question:

  1. Code> getTitle () calling the method is wrong.
  2. You are mixing dialog and shell

    Assume that you are talking about Shell. You can use the code below to gain control of the active shell.

      import org.eclipse.swt.SWT; Import org.eclipse.swt.events.SelectionEvent; Import org.eclipse.swt.events.SelectionListener; Import org.eclipse.swt.layout.FillLayout; Import org.eclipse.swt.widgets.Button; Import org.eclipse.swt.widgets.Control; Import org.eclipse.swt.widgets.Display; Import org.eclipse.swt.widgets.Label; Import org.eclipse.swt.widgets.Shell; Import org.eclipse.swt.widgets.Text; Public square ShellControlsGetting {public static zero main (string [] args) {display display = new display (); Last Shell Shell = New Shell (Display); Shell.setLayout (new FillLayout ()); Button button = new button (shell, SWT.PUSH); Button. Setting Text ("Open 3 Styles"); The last shell [] shells = new shell [3]; button. Add ChainListner (new selection listener) {@ Override Public Wide Widget SelectionEvent} {for (iTunes i = 0; i   

    If you do not answer this question, edit your post, add some code and explain what exactly are you expecting.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -