Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Discouraged access: The method getViewPartInput()
Discouraged access: The method getViewPartInput() [message #613448] Wed, 05 July 2006 05:00
Eclipse UserFriend
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
Previous Topic:Migrated from JBuilder to Eclipse, how to transform jbinit() -> VE style?
Next Topic:IllegalStateException recovery
Goto Forum:
  


Current Time: Fri Apr 26 21:09:43 GMT 2024

Powered by FUDForum. Page generated in 0.02712 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top