- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -1,15 +1,25 @@
-Scenario:
-Host A has a Module which contains a Testfolder, sources folder and a 
modulename.iml file. In the src folder are two classes (file1.java, file2.java).
+**Intellij Modules are shared as Directories**
+
+-----
+
+Description:
+_Host A has a Module which contains a Testfolder, sources folder and a 
modulename.iml file. In the src folder are two classes.
 If the Host shares this Module in Intellij with Client B, B get all the files 
(.java and .iml), but the folders containing the files are only shown as 
"Directories", independent of their current host-sided status (e.g. Modules, 
src-Folders, Test-Folders, Testsources etc.). 
+As a result, the Reciever cannot create classes (as it's only possible in 
java-Module-src-folders, not in Directories). The files(.java, .iml) are 
transmitted correctly but empty folders are not sent, only if they contain 
files or other folders._
 
-As a result, the Reciever cannot create classes (as it's only possible in 
java-Module-src-folders, not in Directories) and the .java files are marked as 
error-prone.
+**Problem-Analysis**
 
-Furthermore, empty folders (e.g. empty src folders or directories) are not 
sent.
+I compared the two projects of the Host/Client, the result is following:
 
-I did a div between the two preojects of the Host/Client, the result is 
following:
 there are differences between
-misc.xml
-workspace.xml
-modules.xml
-in the .idea folder (META Data of project)
-the transmitted files are missed in modules.xml client-sided, and the Host has 
some components as "EntryPointManager", "FileEditorManager" and 
"EditorHistoryManager" which doesnt appear client-side. There are also some 
minor differences which i think are referable to the different PCs i tested 
this.
+* _misc.xml_
+* _workspace.xml_
+* _modules.xml_
+in the .idea folder (META Data of project). All other files are equivalent 
(except for own system configurations).
+
+In the _modules.xml_ file all Modules of the project are listed, and the 
transmitted Modul doesnt appear there. After copying the _module.xml_ file from 
the Host to the client the corresponding module is shown correctly.
+
+**Approach to solution**
+
+Intellij provide a _ModuleManager.class_ in the openapi Library, which hast a 
method "loadModules" which load a Module from an .iml file and adds it to the 
project, i think also to the _modules.xml_ file.
+The problem is where to create the instance of the ModuleManager (abstract 
class) because Saros recieves and saves the incoming Data in the 
_IncomingProjectNegotiation.java_, which is located in de.fu_berlin.inf.core 
and not in the Intellij Plugin.

~~~~




---

** [bugs:#868] IntelliJ Modules are not shared correctly**

**Status:** open
**Group:** OTHER
**Labels:** IntelliJ 
**Created:** Mon Sep 05, 2016 02:02 PM UTC by Bernd Sahre
**Last Updated:** Tue Sep 06, 2016 11:55 AM UTC
**Owner:** Bernd Sahre


**Intellij Modules are shared as Directories**

-----

Description:
_Host A has a Module which contains a Testfolder, sources folder and a 
modulename.iml file. In the src folder are two classes.
If the Host shares this Module in Intellij with Client B, B get all the files 
(.java and .iml), but the folders containing the files are only shown as 
"Directories", independent of their current host-sided status (e.g. Modules, 
src-Folders, Test-Folders, Testsources etc.). 
As a result, the Reciever cannot create classes (as it's only possible in 
java-Module-src-folders, not in Directories). The files(.java, .iml) are 
transmitted correctly but empty folders are not sent, only if they contain 
files or other folders._

**Problem-Analysis**

I compared the two projects of the Host/Client, the result is following:

there are differences between
* _misc.xml_
* _workspace.xml_
* _modules.xml_
in the .idea folder (META Data of project). All other files are equivalent 
(except for own system configurations).

In the _modules.xml_ file all Modules of the project are listed, and the 
transmitted Modul doesnt appear there. After copying the _module.xml_ file from 
the Host to the client the corresponding module is shown correctly.

**Approach to solution**

Intellij provide a _ModuleManager.class_ in the openapi Library, which hast a 
method "loadModules" which load a Module from an .iml file and adds it to the 
project, i think also to the _modules.xml_ file.
The problem is where to create the instance of the ModuleManager (abstract 
class) because Saros recieves and saves the incoming Data in the 
_IncomingProjectNegotiation.java_, which is located in de.fu_berlin.inf.core 
and not in the Intellij Plugin.



---

Sent from sourceforge.net because dpp-robot@lists.sourceforge.net is subscribed 
to https://sourceforge.net/p/dpp/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/dpp/admin/bugs/options.  Or, if this is a mailing 
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
DPP-Robot mailing list
DPP-Robot@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-robot

Reply via email to