|
List Info
Thread: Re: Subdirectory as a Namespace
|
|
| Re: Subdirectory as a Namespace |
  Ireland |
2007-12-03 05:01:16 |
> > in my quite large SW projekt (ERP system) I have
created a
> handful of
> > subdirs, which respresent certain types of classes
(forms,
> reports, and the like).
> > When creating a class or widget in such a subdir,
I would
> expect MD to
> > make the new class a member of some sub-namespace
> <project>.<subdir>.
> > However, MD seems only to know the namespace
> <project>...and that's it.
> >
> > But, in order to get the various classes into some
order,
> MD should,
> > for instance, create a namespace like
myproject.forms for
> all classes
> > the subdir $MYPROJECT/forms. Some Java IDEs
(namely
> NetBeans) do that.
> > Is this also possible in MD?
>
> That's not possible right now. Feel free to file a
feature
> request in MD's bugzilla (see
> http://ww
w.monodevelop.com/Help_%26_Contact).
Visual Studio works that way (creating a sub-namemspace)
and
it's sometimes useful but other times I want to change the
namespace in some subdir for a particular reason. I've
always
wished I could set the default namespace for a folder,
rather
than just for a project.
Charlie
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
|
|
| Re: Subdirectory as a Namespace |
  United Kingdom |
2007-12-03 05:32:03 |
Hello,
>>> in my quite large SW projekt (ERP system) I
have created a
>>>
>> handful of
>>
>>> subdirs, which respresent certain types of
classes (forms,
>>>
>> reports, and the like).
>>
>>> When creating a class or widget in such a
subdir, I would
>>>
>> expect MD to
>>
>>> make the new class a member of some
sub-namespace
>>>
>> <project>.<subdir>.
>>
>>> However, MD seems only to know the namespace
>>>
>> <project>...and that's it.
>>
>>> But, in order to get the various classes into
some order,
>>>
>> MD should,
>>
>>> for instance, create a namespace like
myproject.forms for
>>>
>> all classes
>>
>>> the subdir $MYPROJECT/forms. Some Java IDEs
(namely
>>>
>> NetBeans) do that.
>>
>>> Is this also possible in MD?
>>>
>> That's not possible right now. Feel free to file a
feature
>> request in MD's bugzilla (see
>> http://ww
w.monodevelop.com/Help_%26_Contact).
>>
>
> Visual Studio works that way (creating a
sub-namemspace) and
> it's sometimes useful but other times I want to change
the
> namespace in some subdir for a particular reason. I've
always
> wished I could set the default namespace for a folder,
rather
> than just for a project.
>
Another option would be to detect namespace from existing
files
in the folder and use default one when no file exists.
Marek
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
|
|
| Re: Subdirectory as a Namespace |
  Italy |
2007-12-03 07:10:08 |
Il giorno lun, 03/12/2007 alle 11.32 +0000, Marek Safar ha
scritto:
> > Visual Studio works that way (creating a
sub-namemspace) and
> > it's sometimes useful but other times I want to
change the
> > namespace in some subdir for a particular reason.
I've always
> > wished I could set the default namespace for a
folder, rather
> > than just for a project.
> >
> Another option would be to detect namespace from
existing files
> in the folder and use default one when no file exists.
That would be extremely useful. I'd use, in priority order:
1) Namespace inferred from existing files in same directory
2) Directory name IF can be considered a sub-namespace
(i.e., Foo.Bar
directory inside Foo generates "Foo.Bar" namespace
but Baz.Zot doesn't
gnerate "Baz.Zot" namespace, just skip to point
(3).
3) Use default namespace from project.
federico
--
Federico Di Gregorio http://people.initd.org/f
og
Debian GNU/Linux Developer
fog debian.org
INIT.D Developer
fog initd.org
Best friends are often failed
lovers. -- Me
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
|
|
| Re: Subdirectory as a Namespace |

|
2007-12-03 07:24:48 |
Hi, your suggestion 2) doesn't work very well for Mono and
MonoDevelop
itself, that just use the pattern of having the full
namespace "path"
as the name of the subdirectory containing the sources for
that
namespace, so it's a quite complex "rule" to
derive a namespace.
I would rather to have MD just using a simple rule (for me
the
directory name as the guessed namespace), and have the
"Move to
Namespace" refactoring implemented, like in Resharper
(for VS.NET)
that presents a tree of all the namespaces 'nodes' in the
project, and
also allows to create new nodes(namespaces) if needed
My 2 cents,
On Dec 3, 2007 11:10 AM, Federico Di Gregorio <fog initd.org> wrote:
> That would be extremely useful. I'd use, in priority
order:
>
> 1) Namespace inferred from existing files in same
directory
> 2) Directory name IF can be considered a sub-namespace
(i.e., Foo.Bar
> directory inside Foo generates "Foo.Bar"
namespace but Baz.Zot doesn't
> gnerate "Baz.Zot" namespace, just skip to
point (3).
> 3) Use default namespace from project.
>
> federico
>
> --
> Federico Di Gregorio http://people.initd.org/f
og
> Debian GNU/Linux Developer
fog debian.org
> INIT.D Developer
fog initd.org
> Best friends are often
failed lovers. -- Me
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
>
>
--
Rafael "Monoman" Teixeira
---------------------------------------
"I myself am made entirely of flaws, stitched together
with good intentions."
Augusten Burroughs
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
|
|
| Re: Subdirectory as a Namespace |
  Germany |
2007-12-03 07:49:15 |
Am Montag, 3. Dezember 2007 14:24 schrieb Rafael Teixeira:
> Hi, your suggestion 2) doesn't work very well for Mono
and MonoDevelop
> itself, that just use the pattern of having the full
namespace "path"
> as the name of the subdirectory containing the sources
for that
> namespace, so it's a quite complex "rule" to
derive a namespace.
>
> I would rather to have MD just using a simple rule (for
me the
> directory name as the guessed namespace), and have the
"Move to
> Namespace" refactoring implemented, like in
Resharper (for VS.NET)
> that presents a tree of all the namespaces 'nodes' in
the project, and
> also allows to create new nodes(namespaces) if needed
>
Marvellous idea. I think we should implement this concept
once we've got an
opportunity to do so.
Cheers
Jacek
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
|
|
| Re: Subdirectory as a Namespace |
  Italy |
2007-12-03 07:57:48 |
Il giorno lun, 03/12/2007 alle 14.49 +0100, Jacek Ruzyczka
ha scritto:
> Am Montag, 3. Dezember 2007 14:24 schrieb Rafael
Teixeira:
> > Hi, your suggestion 2) doesn't work very well for
Mono and MonoDevelop
> > itself, that just use the pattern of having the
full namespace "path"
> > as the name of the subdirectory containing the
sources for that
> > namespace, so it's a quite complex
"rule" to derive a namespace.
> >
> > I would rather to have MD just using a simple rule
(for me the
> > directory name as the guessed namespace), and have
the "Move to
> > Namespace" refactoring implemented, like in
Resharper (for VS.NET)
> > that presents a tree of all the namespaces 'nodes'
in the project, and
> > also allows to create new nodes(namespaces) if
needed
> >
> Marvellous idea. I think we should implement this
concept once we've got an
> opportunity to do so.
So you'll just move every new file to the right namespace
manually
(using refactoring) if the directory is "wrong"?
Sounds fine to me but
let at least make the "Use directory name as
namespace" an option.
federico
--
Federico Di Gregorio http://people.initd.org/f
og
Debian GNU/Linux Developer
fog debian.org
INIT.D Developer
fog initd.org
I terminali seriali sono in via di estinzione (infatti
quello che
c'era si รจ estinto) --
Simone Caldana
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
|
|
| Re: Subdirectory as a Namespace |
  Germany |
2007-12-03 08:04:21 |
Am Montag, 3. Dezember 2007 14:57 schrieb Federico Di
Gregorio:
> So you'll just move every new file to the right
namespace manually
> (using refactoring) if the directory is
"wrong"? Sounds fine to me but
> let at least make the "Use directory name as
namespace" an option.
>
Yes, of course we'll implement this option.
Jacek
_______________________________________________
Monodevelop-list mailing list
Monodevelop-list lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-li
st
|
|
[1-7]
|
|