Sorry for the off topic i will ask them. I try the examples but they are in main method. I need to instantate browser on menu action. My menu action: public class MenuAction implements IWorkbenchWindowActionDelegate { } there is run method, obviously run the action work in thread may be. I have instantated browser (like in the example) and when i run it and click the menu item it says "org.eclipse.swt.SWTException: Invalid thread 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) at org.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 formthe menu 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 for makingevents 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 DOM inspector.Looks >> nice. I have one question only can another browser beintegrated 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 previewor embed >> html into eclispe dialog? I need te following: >> There will be different kinds preview elements that must beclickable. >> The easyest way ever time to add new kind of group ofclickable >> elements is to use image map in the html. So i need html intodialog >> and when user clicks a get the mouse event and finds what isclicked. >> Please advice. > >The easiest way to render HTML inside Eclipse would be using SWTBrowser >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 list atf-dev@eclipse.org https://dev.eclipse.org/mailman/listinfo/atf-dev