EclipseColorer as Default or "Open With" editor?

View: New views
3 Messages — Rating Filter:   Alert me  

EclipseColorer as Default or "Open With" editor?

by Daniel Clark-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

(a) Is there a way to make EclipseColorer be the default editor with
files with unknown file types?

(b) Is there a way to make EclipseColorer *always* appear on the "Open
With" context menu? Specifically I need this to happen for files
*without any* file name extension, as is common with perl, python,
shell, etc. scripts on *nix.

(c) Off Topic, but is there any way to set up an editor to be
associated with a file based on the file's contents (e.g. shebang
line) without coding? I would think this would be a FAQ - I have a
bunch of python, shell, and perl files, none of which have (or should
have) file name extensions. The most useful think I've found so far is
http://www.developer.com/java/data/article.php/3648736 but that
requires coding and I'm not even sure where the code they show should
go.

Thanks for any help,
--
Daniel Clark # http://planyp.us/djbclark/profile
# http://dclark.us # http://opensysadmin.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
colorer-talks mailing list
colorer-talks@...
https://lists.sourceforge.net/lists/listinfo/colorer-talks

Re: EclipseColorer as Default or "Open With" editor?

by Igor Russkih :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Daniel,
 
2007/7/5, Daniel Clark <dclark@...>:
(a) Is there a way to make EclipseColorer be the default editor with
files with unknown file types?
(b) Is there a way to make EclipseColorer *always* appear on the "Open
With" context menu? Specifically I need this to happen for files
*without any* file name extension, as is common with perl, python,
shell, etc. scripts on *nix.
 
Believe this could be done using eclipse's content types. Will try to experiment with it.

 
(c) Off Topic, but is there any way to set up an editor to be
associated with a file based on the file's contents ( e.g. shebang
line) without coding? I would think this would be a FAQ - I have a
bunch of python, shell, and perl files, none of which have (or should
have) file name extensions. The most useful think I've found so far is
http://www.developer.com/java/data/article.php/3648736 but that
requires coding and I'm not even sure where the code they show should
go.
 
Actually colorer supports filetype detection based on it's content, not extension. Unfortunately this integrates quite poorly with the eclipse type system. Basically it's the same content type handling.
 
I think it is possible to make EclipseColorer to handle all files, but this could be not very convenient it sight of integration with other eclipse tools/plugins.

I'll give you an update on this.


 
Thanks for any help,
--
Daniel Clark # http://planyp.us/djbclark/profile
# http://dclark.us # http://opensysadmin.com



--
  Igor
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
colorer-talks mailing list
colorer-talks@...
https://lists.sourceforge.net/lists/listinfo/colorer-talks

Re: EclipseColorer as Default or "Open With" editor?

by Daniel Clark-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 7/5/07, Igor Russkih <irusskih@...> wrote:
> > (b) Is there a way to make EclipseColorer *always* appear on the "Open
> > With" context menu? Specifically I need this to happen for files
> > *without any* file name extension, as is common with perl, python,
> > shell, etc. scripts on *nix.

FYI in Eclipse 3.3 (I was previously using 3.2 but upgraded to 3.3
because of this), there is an "Other..." option under "Open With" --
still not ideal as opening a file becomes a longish process (after you
select other a dialog box pops up under which you select from a long
list of options and then hit Ok), but better than nothing.

--
Daniel Clark # http://planyp.us/djbclark/profile
# http://dclark.us # http://opensysadmin.com

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
colorer-talks mailing list
colorer-talks@...
https://lists.sourceforge.net/lists/listinfo/colorer-talks
LightInTheBox - Buy quality products at wholesale price