SlickEdit Community
Archived Beta Discussions => SlickEdit® Core for Eclipse => Topic started by: PlanetPratt on July 26, 2008, 04:43:19 AM
-
Is there a macro variable (or a macro) that contains either the workspace directory or the project directory (or possibly the configured source directory) in Eclipse? Thanks.
(*Chris*)
-
Dunno if it's available in Eclipse too, but in SE I'm using this (as example):
_command void cdp () name_info(',' VSARG2_REQUIRES_MDI_EDITORCTL|VSARG2_READ_ONLY|VSARG2_ICON)
{
_str cwd=_ProjectGet_WorkingDir (_ProjectHandle (_project_name));
if ( cwd != '' )
{
cwd=absolute (cwd,strip_filename (_project_name,'N'));
// say ( "cdp (): Change directory '" getcwd () " -> '" cwd "'" );
cd ('+p 'cwd);
// added to sync with 'Open TB'
_cd_tbopen ();
}
}
HS2