Discouraged access: The method getViewPartInput() [message #613448] |
Wed, 05 July 2006 05:00 |
Eclipse User |
|
|
|
Originally posted by: rashmi_h_r.rediffmail.com
Hi All,
I have started using Eclipse 3.2 and VE 1.2. In VE 1.1, I was using
the current active JavaVisualEditor for accessing the CompilationUnit ,
the visual editor is opened on.
The code used is as below.
javaVisualEditor = (JavaVisualEditorPart) activeEditor;
EditDomain ed = (EditDomain) ((EditPartViewer) javaVisualEditor
.getAdapter(EditPartViewer.class)).getEditDomain();
ICompilationUnit compilationUnit = (ICompilationUnit)
javaVisualEditor.getViewPartInput();
After tp comiple the same code in VE 1.2. I am getting a warning as below
Discouraged access: The method getViewPartInput() from the type JavaEditor
is not accessible due to restriction on required library
C:\Eclipse3.2\eclipse\plugins\org.eclipse.jdt.ui_3.2.0.v2006 0605-1400.jar myPath/mypackage MyClass.java line
262 1152010092181 31442
Can anybody please help me to solve this issue? And help me in accessing
the CompilationUnit of the active VisualEditor.
Thanks in advance.
regards,
RashmiH.R
|
|
|
Powered by
FUDForum. Page generated in 0.02712 seconds