开发者

Access org.eclipse.swt.widgets.Text from Overridden createWindowContents

开发者 https://www.devze.com 2023-03-26 18:48 出处:网络
I have overridden the method createWindowContents in my ApplicationWorkbenchWindowAdvisor class. I put a Text box at the banner I created s开发者_开发知识库o that user could insert an URL that would

I have overridden the method createWindowContents in my ApplicationWorkbenchWindowAdvisor class.

I put a Text box at the banner I created s开发者_开发知识库o that user could insert an URL that would be readed in an Action.

My problem is that I don't know how to access this field from another View or another Action. Can I access it via PlatformUI object or something similar?


You can just store it in a static variable (don't forget to check if it is disposed before accessing it).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号