Too many org.netbeans.modules.python.project.ui.PackageViewChildren in shared RequestProcessor; create your own
1.1 --- a/python.project/src/org/netbeans/modules/python/project/ui/PackageViewChildren.java Mon May 25 11:33:43 2015 +0200
1.2 +++ b/python.project/src/org/netbeans/modules/python/project/ui/PackageViewChildren.java Mon May 25 12:35:38 2015 +0200
1.3 @@ -176,7 +176,8 @@
1.4 return new Node[0];
1.5 }
1.6
1.7 - RequestProcessor.Task task = RequestProcessor.getDefault().create( this );
1.8 + private static final RequestProcessor RP = new RequestProcessor(PackageRootNode.class);
1.9 + RequestProcessor.Task task = RP.create( this );
1.10
1.11 @Override
1.12 protected void addNotify() {
2.1 --- a/python.project2/src/org/netbeans/modules/python/project2/ui/PackageViewChildren.java Mon May 25 11:33:43 2015 +0200
2.2 +++ b/python.project2/src/org/netbeans/modules/python/project2/ui/PackageViewChildren.java Mon May 25 12:35:38 2015 +0200
2.3 @@ -130,7 +130,8 @@
2.4 private static final String NODE_NOT_CREATED_EMPTY = "NNC_E"; //NOI18N
2.5
2.6 private static final MessageFormat PACKAGE_FLAVOR = new MessageFormat("application/x-python-org-netbeans-modules-python-project-packagenodednd; class=org.netbeans.spi.java.project.support.ui.PackageViewChildren$PackageNode; mask={0}"); //NOI18N
2.7 -
2.8 + private static final RequestProcessor RP = new RequestProcessor(PackageRootNode.class);
2.9 +
2.10 static final String PRIMARY_TYPE = "application"; //NOI18N
2.11 static final String SUBTYPE = "x-python-org-netbeans-modules-python-project-packagenodednd"; //NOI18N
2.12 static final String MASK = "mask"; //NOI18N
2.13 @@ -177,7 +178,7 @@
2.14 return new Node[0];
2.15 }
2.16
2.17 - RequestProcessor.Task task = RequestProcessor.getDefault().create( this );
2.18 + RequestProcessor.Task task = RP.create( this );
2.19
2.20 @Override
2.21 protected void addNotify() {