Update of /cvsroot/metamorphosis/ruper2/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin/ui/browser
In directory sc8-pr-cvs1:/tmp/cvs-serv9081/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin/ui/browser
Modified Files:
RuperView.java
Log Message:
Index: RuperView.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/eclipse/org/krysalis/ruper2/eclipse/plugin/ui/browser/RuperView.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RuperView.java 27 Oct 2003 21:50:20 -0000 1.4
--- RuperView.java 28 Oct 2003 16:09:38 -0000 1.5
***************
*** 90,113 ****
// get cached children
children = ((RepositoryObject) parent).getCachedChildrenArray();
if(children != null){
return children;
}
! LoadingThread loader = new LoadingThread("LOADER");
! loader.setRepositoryObject((RepositoryObject) parent);
! loader.start();
! return new Object[]{"Loading ... "};
}
else if (parent.equals(ResourcesPlugin.getWorkspace())) {
// get cached children
! children = m_rootInput.getCachedChildrenArray();
if(children != null){
return children;
}
! LoadingThread loader = new LoadingThread("LOADER");
loader.setRepositoryObject(m_rootInput);
loader.start();
return new Object[]{"Loading ... "};
!
}
}
--- 90,114 ----
// get cached children
children = ((RepositoryObject) parent).getCachedChildrenArray();
+ //children = ((RepositoryObject) parent).getChildrenArray();
if(children != null){
return children;
}
! //LoadingThread loader = new LoadingThread("LOADER");
! //loader.setRepositoryObject((RepositoryObject) parent);
! //loader.start();
! //return new Object[]{"Loading ... "};
}
else if (parent.equals(ResourcesPlugin.getWorkspace())) {
// get cached children
! children = m_rootInput.getChildrenArray();
if(children != null){
return children;
}
! /*LoadingThread loader = new LoadingThread("LOADER");
loader.setRepositoryObject(m_rootInput);
loader.start();
return new Object[]{"Loading ... "};
! */
}
}
***************
*** 312,326 ****
while (parent != null) {
! boolean parentPartlyActive = isPartlyActive(parent, checked);
! if(checked){
! m_viewer.setChecked(parent, checked);
! }
! else{
! if(!parentPartlyActive)
! m_viewer.setChecked(parent, checked);
}
-
- m_viewer.setGrayed(parent,parentPartlyActive);
parent= parent.getParent();
}
--- 313,324 ----
while (parent != null) {
! m_viewer.setChecked(parent, checked);
! boolean parentPartlyActive = isPartlyActive(parent);
! if(parentPartlyActive){
! m_viewer.setChecked(parent, parentPartlyActive);
! m_viewer.setGrayed(parent,parentPartlyActive);
! checked = parentPartlyActive;
}
parent= parent.getParent();
}
***************
*** 331,335 ****
}
! private boolean isPartlyActive(RepositoryObject element, boolean elementState) throws Exception {
boolean checked= m_viewer.getChecked(element);
--- 329,333 ----
}
! private boolean isPartlyActive(RepositoryObject element) throws Exception {
boolean checked= m_viewer.getChecked(element);
***************
*** 344,349 ****
if (checked){
if (! m_viewer.getChecked(childElement)){
! if(i != 0 )
! return true;
}
--- 342,346 ----
if (checked){
if (! m_viewer.getChecked(childElement)){
! return true;
}
***************
*** 354,359 ****
if (! checked){
if (m_viewer.getChecked(childElement)){
! if(i != 0 )
! return true;
}
--- 351,355 ----
if (! checked){
if (m_viewer.getChecked(childElement)){
! return true;
}
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.