Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Primary Owner

Actually, the primary owner is never returned. When asking for it to a
primary unit, it will answer you 'null'. This should be enough to recognize
it.

----- Forwarded by Philippe P Mulet/France/IBM on 07/03/2003 04:58 PM -----
|---------+---------------------------->
|         |           Philippe P Mulet |
|         |                            |
|         |           07/03/2003 04:55 |
|         |           PM               |
|         |                            |
|---------+---------------------------->
  >------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                        |
  |       To:      jdt-core-dev@xxxxxxxxxxx                                                                                |
  |       cc:                                                                                                              |
  |       From:    Philippe P Mulet/France/IBM@IBMFR                                                                       |
  |       Subject: Re: [jdt-core-dev] Primary Owner(Document link: Philippe P Mulet)                                       |
  |                                                                                                                        |
  >------------------------------------------------------------------------------------------------------------------------|



> - an API to ask for the primary owner

Testing if the owner is not you should be enough. Note that batched deltas
could have more than one owner amongst them.

> - allow to add a listener that only reports deltas for a specific owner

This would require to duplicate delta trees on a per owner basis, which
would be quite inefficient. I rather think one should just double check
whether this delta is relevant to himself.
Now, if you care about both your owner and primary one, then yes we could
need to add an API for surfacing the primary owner.



|---------+------------------------------>
|         |           Daniel             |
|         |           Megert/Zurich/IBM@I|
|         |           BMCH               |
|         |           Sent by:           |
|         |           jdt-core-dev-admin@|
|         |           eclipse.org        |
|         |                              |
|         |                              |
|         |           07/03/2003 04:09 PM|
|         |           Please respond to  |
|         |           jdt-core-dev       |
|         |                              |
|---------+------------------------------>
  >------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                        |
  |       To:       jdt-core-dev@xxxxxxxxxxx                                                                               |
  |       cc:                                                                                                              |
  |       Subject:  [jdt-core-dev] Primary Owner                                                                           |
  |                                                                                                                        |
  >------------------------------------------------------------------------------------------------------------------------|








It seems that the Java element deltas are being reported for all kinds of
working copy owners. If so, how can a listener decide if the delta is
related to the primary working copy owner? Note: the listener has no access
to a CU i.e. it cannot use ICompilationUnit.getOwner() and compare with the
owner of the delta. What I would need is

- an API to ask for the primary owner
- allow to add a listener that only reports deltas for a specific owner

Dani

_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev








Back to the top