Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » This is the original text! - Understand CDT Editor + outline view
This is the original text! - Understand CDT Editor + outline view [message #88359] Mon, 01 December 2003 15:57
Eclipse UserFriend
Originally posted by: angeles_sorano.yahoo.com.ar

Hi!

I am developing an Editor for an especific language( seem to C ) and, for
this, I have analizing the CEditor from package org.eclipse.cdt.ui but I
didn't understand very much.

Only I understood that I must write It was the following:

Editor.java
-----------
public Object getAdapter(Class required)
{
if(org.eclipse.ui.views.contentoutline.IContentOutlinePage.c lass.equals
(required))
return getOutlinePage();
else
return super.getAdapter(required);
}


ContentOutlinePage.java
-----------------------

public void createControl(Composite parent)
{

TreeViewer viewer = getTreeViewer();
viewer.setContentProvider(new WorkbenchContentProvider());
viewer.setLabelProvider(new WorkbenchLabelProvider());
viewer.setInput(getContentOutline(input));
}
........
private IAdaptable getContentOutline(IAdaptable input)
{
return SQLModelFactory.getInstance().getContentOutline(input);
}

But when I run my code inside the Outline view appears the following
message: " An error has occurred when creating this view "

THANKS FOR HELP!!!

ANGELS
Previous Topic:Understand CDT Editor + outline view
Next Topic:Eclipse 3.0M5/CDT 2.0M5 Installation problems.
Goto Forum:
  


Current Time: Wed Jul 23 04:12:37 EDT 2025

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

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

Back to the top