- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -19,5 +19,13 @@
 
 **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.
+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. This solves the problem.
+To call this method, it is recommend to register a new class in the 
SarosLifeCycleListener and the Picocontainer so the method is called every time 
when Ressources are shared.
+It is also appropiate to imbed this method with
+   ApplicationManager.getApplication().invokeLater(new Runnable() {
+                @Override
+                public void run() {
+                    ApplicationManager.getApplication().runWriteAction(new 
Runnable() {
+                    loadModule(filepath);
+                    ....
+to secure threadsafety.

~~~~




---

** [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:** Fri Sep 23, 2016 09:05 AM UTC
**Owner:** Bernd Sahre


**Description**:
Host Alice has a Module which contains a test folder, sources folder, and a 
<modulename>.iml file. There are two classes in the src folder.
If the Host shares this Module in Intellij with Bob, Bob gets all the files 
(.java and .iml) but not the whole Module.
Problem 1: The folders containing the files are only shown as directories, 
independent of their host-side status (e.g. Module, src folder, test folder, 
etc.).  As a result, Bob cannot create classes (as it's only possible in Java 
Module src folders, not in plain directories). 
Problem 2: Empty folders are not transmitted.

**Problem-Analysis**:
Comparing the two projects of Alice and Bob, the result is following:

In the _.idea_ folder (which contains the project meta data), there are 
differences in

* _misc.xml_
* _workspace.xml_
* _modules.xml_

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 does not 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. This solves the problem.
To call this method, it is recommend to register a new class in the 
SarosLifeCycleListener and the Picocontainer so the method is called every time 
when Ressources are shared.
It is also appropiate to imbed this method with
   ApplicationManager.getApplication().invokeLater(new Runnable() {
                @Override
                public void run() {
                    ApplicationManager.getApplication().runWriteAction(new 
Runnable() {
                    loadModule(filepath);
                    ....
to secure threadsafety.


---

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