List Info

Thread: RE: Content outline page for editor




RE: Content outline page for editor
country flaguser name
Israel
2007-07-11 08:35:33
Hi Lukasz,

You should access the PHP model using the static call:
PHPWorkspaceModelManager.getInstance().getModelForFile(file,
false); 
or
PHPWorkspaceModelManager.getInstance().getModelForProject(pr
oject,
false);

(Interfaces are 
   public PHPFileData getModelForFile(IFile, boolean)
   public PHPProjectModel getModelForProject(IProject,
boolean) {
)

Then you can have the PHPFileData or PHPProjectModel objects
that hold
all classes, methods and variables.

Also if you want to be fully synchronized with the changes
of the PHP
model don't forget to add a listener (to the project model)
by 

addProjectModelListener(IProjectModelListener) (part of
PHPProjectModel)

If you need any farther help, don't hesitate to ask,
Roy.

-----Original Message-----
From: pdt-dev-bounceseclipse.org [mailto:pdt-dev-bounceseclipse.org]
On Behalf Of lukaszdywicki.pl
Sent: Wednesday, July 11, 2007 15:50
To: pdt-deveclipse.org
Subject: [pdt-dev] Content outline page for editor



Hello everyone,
I trying to do simple ui bridge for Mylyn but it's really
hard because
there are classes without documentation and/or magic
relations.

For AbstractContextUiBridge (mapping between mylyn context
and tools UI)
i must get outline viewer for given editor
(PHPStructuredEditor) but i
don't know how (i got editor and can't get tree viewer for
outline
view).
JavaUIBridge using IJavaElements (parts of java model) for
outline
decoration, but i don't know how to get PHPCodeData for
editor/editor
input.

Regards,
Lukasz




_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org
http
s://dev.eclipse.org/mailman/listinfo/pdt-dev

_______________________________________________
pdt-dev mailing list
pdt-deveclipse.org
http
s://dev.eclipse.org/mailman/listinfo/pdt-dev

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )