If we need to check whether a view currently available or visible we can use following code :
Boolean result = false;
IViewReference viewReferene = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findViewReference("my_view_id");
if (viewReferene != null) {
result = true;
}
No comments:
Post a Comment