BestJewSinceJC 700 Posting Maven

In one View, I have text boxes and buttons. In the other View, I have a Pie Graph that I created using JFreeChart. When the button is clicked, I want the Pie Graph to be refreshed, displaying the new percentages (based on what the user entered in the text boxes). Anyway, none of the details matter because I get an Exception any time I try to reference the second view from the first view. I'm using this code:

ViewPart3 myView = (ViewPart3)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView("ViewPart3");

And whenever I do myView.doAnything(), it gives an Exception, regardless of what method the doAnything() is. So my question is this: Can anyone provide an example, or direct me to any resources demonstrating how to update one View from within a completely different View?

:(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.