suggestion: change file icon for java sources not in current project

Hi,

I'd like to know you opinion about this. I include lots of global libraries
in my project with sources from other projects. When navigating the classes
with CTRL-B I often come into java files not in my current project path. It
would be nice to have some kind of hint that this is an 'external' file, and
I should edit and recompile it in its own project.

I thought this could be easy realised using a slightly different file icon
for this file in the file tabs above the editor window. What do you think?

Willem


3 comments
Comment actions Permalink

I could not understand what did you mean by "global libraries with sources
from other projects". Could you explain it with more details?

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Willem Salembier" wrote in message
news:bhcn8r$ire$1@is.intellij.net...

Hi,

>

I'd like to know you opinion about this. I include lots of global

libraries

in my project with sources from other projects. When navigating the

classes

with CTRL-B I often come into java files not in my current project path.

It

would be nice to have some kind of hint that this is an 'external' file,

and

I should edit and recompile it in its own project.

>

I thought this could be easy realised using a slightly different file icon
for this file in the file tabs above the editor window. What do you think?

>

Willem

>
>

0
Comment actions Permalink

I'm sorry, I'll explain it further

/Projects/
ProjectA/
Source/
Main.java
Build/
ProjectA.iml
ProjectB/
Source/
test/
Test.java
Build/
ProjectB.iml

ProjectA has project path /Projects/ProjectA (=content in project settings)

ProjectA has a global library called 'B' with
source path /Projects/ProjectB/Source and
classpath /Projects/ProjectB/Build


Main.java has a reference to test/Test.java. When clicking CTRL-B IDEA opens
Test.java correctly. Only if you don't look at the file path of Test.java,
you often don't realise you're modifying files out of your current project.
So it would be nice to have some indication that Test.java is located
outside the current project path (= retrieved from an included library), so
will not be recompiled.

Willem




0
Comment actions Permalink

I think this will be better handled by modules. ProjectA and ProjectB should
be modules. Module ProjectA should depend on ProjectB. If you invoke "Make
Project" it will automatically recompile necessary files in ProjectB (if
any) and those in ProjectA (including dependant on ProjectB if any).
Projects containging multiple modules are not supported yet but this
functionality is expected very soon.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Willem Salembier" wrote in message
news:bhde7a$ghl$1@is.intellij.net...

I'm sorry, I'll explain it further

>

/Projects/
    ProjectA/
        Source/
            Main.java
        Build/
        ProjectA.iml
    ProjectB/
        Source/
            test/
                Test.java
        Build/
        ProjectB.iml

>

ProjectA has project path /Projects/ProjectA (=content in project

settings)
>

ProjectA has a global library called 'B' with
        source path /Projects/ProjectB/Source and
        classpath /Projects/ProjectB/Build

>
>

Main.java has a reference to test/Test.java. When clicking CTRL-B IDEA

opens

Test.java correctly. Only if you don't look at the file path of Test.java,
you often don't realise you're modifying files out of your current

project.

So it would be nice to have some indication that Test.java is located
outside the current project path (= retrieved from an included library),

so

will not be recompiled.

>

Willem

>
>
>
>

0

Please sign in to leave a comment.