Article View: cn.bbs.comp.lang.java
Article #19662Question:[Eclipse]How to refresh views in anot...
From: ������˹...
Date: Wed, 31 Dec 2003 10:58
Date: Wed, 31 Dec 2003 10:58
27 lines
1739 bytes
1739 bytes
[Q] How to refresh views in another perspective? Suppose I open two perspectives in one workbench window. Now my codes does some configurations in one perspective, and I want to refresh the views shown in the other perspective. However, I just can't find APIs to get those views so as to refresh them. (I've mainly searched in IWorkbench, IWorkbenchWindow, and IWorkbenchPage) My current method is showing the other perspective by using PlatformUI.getWorkbench().showPerspective(), and then getting views by IWorkbenchPage.findView(). But this is not a good way as users may not want to switch to the other perspective. Is there any better method? Or could I be notified when user changes to the other perspective so that I could refresh it at that time? Thank you! -- [1B�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 211.80.58.000][1A [m[1;31m�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 202.120.25.67][m
Technical Details
Message-ID:
<4A56Uf$AmG@bbs.sjtu.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTUShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,GB X-Google-Thread: f6cb0,cab2e2751e47de0e,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-12-31 02:59:37 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!news-xfer1.atl.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.ccie.net.cn!SJTU From: took.bbs@bbs.sjtu.edu.cn (������˹...) Newsgroups: cn.bbs.comp.lang.java Subject: Question:[Eclipse]How to refresh views in anot... Date: 31 Dec 2003 10:58:32 GMT Organization: ��ˮ˼Դ Message-ID: <4A56Uf$AmG@bbs.sjtu.edu.cn> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit X-Filename: Java/M.1072868297.A