I fix it :)


-------- Оригинално писмо --------
От:  Jacek Pospychala  
Относно: Re: [atf-dev] ATF 0.3 nightly builds available!
До: AJAX Toolkit Framework discussion  
Изпратено на: Вторник, 2009, Юли 28 15:13:25 EEST
  Stanimir,
it's a common issue for all fresh Eclipse platform adopters :-)
see http://www.eclipse.org/swt/faq.php#uithread 
and  
http://wiki.eclipse.org/FAQ_Why_do_I_get_an_invalid_thread_access_exception%3F 

hope this helps.

Jacek

stanimir petrov wrote: 
Sorry for the off topic i will ask them.
I try the examples but they are in main method. I need to instantatebrowser on 
menu action.
My menu action: public class MenuAction 
implementsIWorkbenchWindowActionDelegate { }
there is run method, obviously run the action work in thread may be. Ihave 
instantated browser (like in the example) and when i run it andclick the menu 
item it says "org.eclipse.swt.SWTException: Invalidthread access
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:721)
at org.eclipse.swt.widgets.Display.create(Display.java:783)
at org.eclipse.swt.graphics.Device. (Device.java:135)
at org.eclipse.swt.widgets.Display. (Display.java:454)
at org.eclipse.swt.widgets.Display. (Display.java:445)
at org.eclipse.tvnav.jsdt.ui.actions.MenuAction.run(MenuAction.java:43)
atorg.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)"
  
  
-------- Оригинално писмо --------
От: Jacek Pospychala  
Относно: Re: [atf-dev] ATF 0.3 nightly builds available!
До: AJAX Toolkit Framework discussion  
Изпратено на: Вторник, 2009, Юли 28 14:14:44 EEST
Stanimir,
for SWT Browser specifc questions, you'd best ask at SWT newsgroup ( 
http://www.eclipse.org/newsportal/thread.php?group=eclipse.platform.swt )
  
Have a look at SWT snippets as well( 
http://www.eclipse.org/swt/snippets/#browser ),for example this one,that 
renders HTML from String:
   
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet136.java?view=co
 
  
  
or did you meant creating ATF browser editor?
  
  
stanimir petrov wrote:     Hi again,
How can i create browser object or extend it.
I have created menu and action i need when user clicks the item formthemenu to 
show window(or browser dialog) with html in it?
    
    
    
-------- Оригинално писмо --------
От: stanimir petrov  
Относно: Re: Re: [atf-dev] ATF 0.3 nightly builds available!
До: AJAX Toolkit Framework discussion  
Изпратено на: Вторник, 2009, Юли 28 12:22:34 EEST
    
Thanx this works fine for me. I think all needed information formakingevents 
and other things are shown in the examples :)
    
Jacek, you are great :)
    
    
>-------- Оригинално писмо --------
>От: Jacek Pospychala  
>Относно: Re: [atf-dev] ATF 0.3 nightly builds available!
>До: AJAX Toolkit Framework discussion  
>Изпратено на: Понеделник, 2009, Юли 27 19:28:00 EEST
    
>Stanimir,
>
>stanimir petrov wrote:
>> I have installed your ATF release and try its DOMinspector.Looks 
>> nice. I have one question only can another browserbeintegrated into 
>> the eclipse and use the DOM inspector through it.
>>
>
>By another browser - you mean IE, or other engines than Mozilla?
>That depends on what APIs they provide. ATF provides it's core 
>functionality only thanks to the Mozilla libraries flexibility.
>
>
>> Also one separate question regarding HTML, how can i previeworembed 
>> html into eclispe dialog? I need te following:
>> There will be different kinds preview elements that mustbeclickable. 
>> The easyest way ever time to add new kind of group ofclickable    
>> elements is to use image map in the html. So i need htmlintodialog 
>> and when user clicks a get the mouse event and finds whatisclicked. 
>> Please advice.
>
>The easiest way to render HTML inside Eclipse would be usingSWTBrowser 
>widget.
>See http://www.eclipse.org/swt/snippets/#browser for samples.
>
>Does that answer your questions?
>
>cheers
>Jacek
>
>_______________________________________________
>atf-dev mailing list
>atf-dev@eclipse.org
>https://dev.eclipse.org/mailman/listinfo/atf-dev
>
  
        _______________________________________________atf-dev mailing 
listatf-...@eclipse.orghttps://dev.eclipse.org/mailman/listinfo/atf-dev        

    _______________________________________________atf-dev mailing 
listatf-...@eclipse.orghttps://dev.eclipse.org/mailman/listinfo/atf-dev    

  
_______________________________________________
atf-dev mailing list
atf-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/atf-dev

Reply via email to