Discussion:
Outlining with Eclipse 3.1.1
Robert Lindsell
2006-01-20 04:33:23 UTC
Permalink
Hi,

Is the Outline view known to work with Eclipse 3.1.1 ?

When I view VBasic or Perl code with the colorer it colours the text
correctly, but the Outline view reports "An outline is not available".

According to the hrc files for both these file types, they look like
they should both implement outlines, but neither contribute anything to
the Outline view.

Robert






-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Robert Lindsell
2006-01-20 04:51:25 UTC
Permalink
Robert Lindsell wrote:

Oh, that's using colorer 0.7.1 ...

Robert
Post by Robert Lindsell
Hi,
Is the Outline view known to work with Eclipse 3.1.1 ?
When I view VBasic or Perl code with the colorer it colours the text
correctly, but the Outline view reports "An outline is not available".
According to the hrc files for both these file types, they look like
they should both implement outlines, but neither contribute anything to
the Outline view.
Robert
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
colorer-talks mailing list
https://lists.sourceforge.net/lists/listinfo/colorer-talks
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Igor Russkih
2006-01-20 06:53:23 UTC
Permalink
Robert,

Have you tried it with other languages? I have eclipse 3.1.0 and everything
is ok.
Can you check eclipse exception log file? possibly it contains something
helpful...

I'll try to test 3.1.1 but need to download it first ;(


--
Igor
Post by Robert Lindsell
Oh, that's using colorer 0.7.1 ...
Robert
Post by Robert Lindsell
Hi,
Is the Outline view known to work with Eclipse 3.1.1 ?
When I view VBasic or Perl code with the colorer it colours the text
correctly, but the Outline view reports "An outline is not available".
According to the hrc files for both these file types, they look like
they should both implement outlines, but neither contribute anything to
the Outline view.
Robert
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
colorer-talks mailing list
https://lists.sourceforge.net/lists/listinfo/colorer-talks
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
colorer-talks mailing list
https://lists.sourceforge.net/lists/listinfo/colorer-talks
Robert Lindsell
2006-01-29 23:17:00 UTC
Permalink
Hi Igor,
Post by Igor Russkih
Have you tried it with other languages? I have eclipse 3.1.0 and
everything is ok.
No, only VBasic or Perl because I happen to have some code lying around.
I assume they should contribute to the standard Eclipse Outline View?

What I'm actually trying to do is add outlining to vhdl.hrc based on the
outlining in vbasic.hrc and not getting any outline (apart from a top
level function/procedure generated by the original vhdl.hrc)
Post by Igor Russkih
Can you check eclipse exception log file? possibly it contains something
helpful...
Doesn't seem to be too much relevant to colorer if I understand this
correctly, just a key binding issue....


!ENTRY org.eclipse.ui 2 0 2006-01-20 14:59:21.376
!MESSAGE Warnings while parsing the key bindings from the
'org.eclipse.ui.commands' extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2006-01-20 14:59:21.376
!MESSAGE Defining a key binding with no key sequence has no effect:
plug-in='net.sf.colorer',
commandId='net.sf.colorer.eclipse.editors.choosetype'.
!SUBENTRY 1 org.eclipse.ui 2 0 2006-01-20 14:59:21.377
!MESSAGE Cannot bind to an undefined command:
plug-in='net.sf.lunar_eclipse.editing',
commandId='net.sf.lunar_eclipse.editing.copy_line.command'.

!ENTRY org.eclipse.jface 4 0 2006-01-20 14:59:46.333
!MESSAGE The command ("net.sf.lunar_eclipse.editing.copy_line.command")
is undefined

Regards,

Robert
--
Robert Lindsell, Principal Hardware Engineer
Canon Information Systems Research Australia
PO Box 313 NORTH RYDE NSW 2113
mailto:***@cisra.canon.com.au
Fax: +61-2-9805-2929 Phone: +61-2-9805-2876


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Igor Russkih
2006-01-30 09:16:25 UTC
Permalink
Hi,
Post by Robert Lindsell
No, only VBasic or Perl because I happen to have some code lying around.
I assume they should contribute to the standard Eclipse Outline View?
I've tried plugin on eclipse 3.1.2 and everything works fine.


What I'm actually trying to do is add outlining to vhdl.hrc based on the
Post by Robert Lindsell
outlining in vbasic.hrc and not getting any outline (apart from a top
level function/procedure generated by the original vhdl.hrc)
Does this mean that you can see these VHDL outlined entries?


--
Igor
Robert Lindsell
2006-01-30 22:14:39 UTC
Permalink
Hi Igor,
Post by Robert Lindsell
Hi,
No, only VBasic or Perl because I happen to have some code lying around.
I assume they should contribute to the standard Eclipse Outline View?
I've tried plugin on eclipse 3.1.2 and everything works fine.
I'll try it on 3.1.2.
Post by Robert Lindsell
What I'm actually trying to do is add outlining to vhdl.hrc based on the
outlining in vbasic.hrc and not getting any outline (apart from a top
level function/procedure generated by the original vhdl.hrc)
Does this mean that you can see these VHDL outlined entries?
All I can see in the Outline View is one line that matches a vhdl
"architecture" which seems to be picked up in vhdl.hrc at line 44 as follows

<!-- Functions list -->
<regexp
match="/^\s*\M(procedure|function|entity|architecture|configuration)\s+(?{Function}[_\w]+|\&#34;.*?\&#34;)/i"/>


This doesn't seem to contribute to the "Outlined" colorer region but
appears in the outline view.

Robert
Post by Robert Lindsell
--
Igor
--
Robert Lindsell, Principal Hardware Engineer
Canon Information Systems Research Australia
PO Box 313 NORTH RYDE NSW 2113
mailto:***@cisra.canon.com.au
Fax: +61-2-9805-2929 Phone: +61-2-9805-2876


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Robert Lindsell
2006-01-31 00:28:03 UTC
Permalink
Hi Igor,
Post by Robert Lindsell
I'll try it on 3.1.2.
OK, I've tried it with 3.1.2, and for vbasic and Perl files I get syntax
highlighting but nothing in the standard Eclipse Outline View.
--
Robert


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Igor Russkih
2006-01-31 06:30:56 UTC
Permalink
At first, that 'architecture' line is indeed the outlined region extracted
from vhdl. So it works apparently.

As for perl and VB, may be the files you've used just missed outlining
structures?
Post by Robert Lindsell
Hi Igor,
Post by Robert Lindsell
I'll try it on 3.1.2.
OK, I've tried it with 3.1.2, and for vbasic and Perl files I get syntax
highlighting but nothing in the standard Eclipse Outline View.
--
Robert
--
Igor
Robert Lindsell
2006-01-31 22:38:47 UTC
Permalink
Hi Igor,
Post by Igor Russkih
At first, that 'architecture' line is indeed the outlined region
extracted from vhdl. So it works apparently.
It seems to contibute to the Outline View, but but doesn't seem to be
associated with def:Outlined, it captures it to a group named "Functions"
Post by Igor Russkih
As for perl and VB, may be the files you've used just missed outlining
structures?
Hmm, the files I've used should have the basic structures that would be
picked up in an outline.

Those two are only two examples I've tried.... HRC files don't display
an outline either, the Outline View displays the text "an outline is not
available" when editing the file hrc.hrc for example. Same with perl.hrc
and others.

Robert
Post by Igor Russkih
Hi Igor,
Post by Robert Lindsell
I'll try it on 3.1.2.
OK, I've tried it with 3.1.2, and for vbasic and Perl files I get syntax
highlighting but nothing in the standard Eclipse Outline View.
--
Robert
--
Igor
--
Robert Lindsell, Principal Hardware Engineer
Canon Information Systems Research Australia
PO Box 313 NORTH RYDE NSW 2113
mailto:***@cisra.canon.com.au
Fax: +61-2-9805-2929 Phone: +61-2-9805-2876


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Igor Russkih
2006-02-01 08:45:11 UTC
Permalink
Hi,
Post by Igor Russkih
At first, that 'architecture' line is indeed the outlined region
Post by Igor Russkih
extracted from vhdl. So it works apparently.
It seems to contibute to the Outline View, but but doesn't seem to be
associated with def:Outlined, it captures it to a group named "Functions"
And this is normal, because "Function" region inherits from def:Outlined
(However it is marked as deprecated and should not be used). So everything
is ok with your VHDL.

Those two are only two examples I've tried.... HRC files don't display
Post by Igor Russkih
an outline either, the Outline View displays the text "an outline is not
available" when editing the file hrc.hrc for example. Same with perl.hrc
and others.
This is really strange. Just checked it and found everything is ok with even
with .hrc
Have you tried eclipse 3.1.2?
Next, are you sure you use ColorerEditor for the files you are opening?
Try to open them explicitly with 'Open With -> Colorer Editor' from context
menu.

There can be some configuration mixup, but this really confuses me...


--
Igor
Robert Lindsell
2006-02-01 21:58:20 UTC
Permalink
Hi Igor,
Post by Igor Russkih
And this is normal, because "Function" region inherits from
def:Outlined
(However it is marked as deprecated and should not be used). So
everything is ok with your VHDL.
OK, I've added another expression as follows which adds vhdl "process"
to the Function region and processes now show up in the Outline View.

<!-- Functions list -->
<regexp
match="/^\s*\M(procedure|function|entity|architecture|configuration|package)\s+(?{Function}[_\w]+|\&#34;.*?\&#34;)/i"/>
<regexp match="/^\s*\M(?{Function}[_\w]+)\s*:\s*process/i"/>
Post by Igor Russkih
Those two are only two examples I've tried.... HRC files don't display
an outline either, the Outline View displays the text "an outline is not
available" when editing the file hrc.hrc for example. Same with perl.hrc
and others.
This is really strange. Just checked it and found everything is ok with
even with .hrc
Have you tried eclipse 3.1.2?
Next, are you sure you use ColorerEditor for the files you are opening?
Try to open them explicitly with 'Open With -> Colorer Editor' from
context menu.
OK, the file associations were set correctly in Preferences, and I was
opening the files using the "File" / "Open File" dialogue, and using
this no outlining appears.

When I create a new project and open the files within a project I get
outlining... very strange.

Robert



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Читать дальше narkive:
Loading...