Package org.eclipse.ui.navigator.resources

Examples of org.eclipse.ui.navigator.resources.ProjectExplorer


            }
          }
          if (logger.isDebugEnabled())
            logger.debug("Deleted: " + r);
          if (targetPart instanceof ProjectExplorer) {
            ProjectExplorer pe = (ProjectExplorer) targetPart;
            pe.getCommonViewer().refresh();
          }
        } else if (object instanceof ZNode) {
          ZNode zkn = (ZNode) object;
          if (logger.isDebugEnabled())
            logger.debug("Deleting: " + zkn);
View Full Code Here


  @Override
  public void run(IAction action) {
    if (this.selection != null && !this.selection.isEmpty()) {
      IStructuredSelection sSelection = (IStructuredSelection) this.selection;
      if (targetPart instanceof ProjectExplorer) {
        ProjectExplorer pe = (ProjectExplorer) targetPart;
        @SuppressWarnings("rawtypes")
        Iterator itr = sSelection.iterator();
        while (itr.hasNext()) {
          Object object = itr.next();
          if (logger.isDebugEnabled())
            logger.debug("Refreshing: " + object);
          pe.getCommonViewer().refresh(object, true);
        }
      }
    }
  }
View Full Code Here

            logger.debug("Reconnecting: "+r);
          ZooKeeperManager.INSTANCE.reconnect(r);
          if(logger.isDebugEnabled())
            logger.debug("Reconnected: "+r);
          if (targetPart instanceof ProjectExplorer) {
            ProjectExplorer pe = (ProjectExplorer) targetPart;
            pe.getCommonViewer().refresh(r, true);
          }
        }
      }
    }
  }
View Full Code Here

            logger.debug("Disconnecting: "+r);
          ZooKeeperManager.INSTANCE.disconnect(r);
          if(logger.isDebugEnabled())
            logger.debug("Disconnected: "+r);
          if (targetPart instanceof ProjectExplorer) {
            ProjectExplorer pe = (ProjectExplorer) targetPart;
            pe.getCommonViewer().refresh(r, true);
          }
        }
      }
    }
  }
View Full Code Here

              }
            }
            if (logger.isDebugEnabled())
              logger.debug("Deleted: " + r);
            if (targetPart instanceof ProjectExplorer) {
              ProjectExplorer pe = (ProjectExplorer) targetPart;
              pe.getCommonViewer().refresh();
            }
          } else if (object instanceof ZNode) {
            ZNode zkn = (ZNode) object;
            if (logger.isDebugEnabled())
              logger.debug("Deleting: " + zkn);
View Full Code Here

              showError(status.getException().getMessage());
            }
            if(logger.isDebugEnabled())
              logger.debug("Reconnected: "+r);
            if (targetPart instanceof ProjectExplorer) {
              ProjectExplorer pe = (ProjectExplorer) targetPart;
              pe.getCommonViewer().refresh(r, true);
            }
          }
        }}}});
  }
View Full Code Here

              showError(e.getStatus().getException().getMessage());
            }
            if(logger.isDebugEnabled())
              logger.debug("Disconnected: "+r);
            if (targetPart instanceof ProjectExplorer) {
              ProjectExplorer pe = (ProjectExplorer) targetPart;
              pe.getCommonViewer().refresh(r, true);
            }
          }
        }}}});
  }
View Full Code Here

             * Enable linking to auto expand the project tree.
             */
            for (IViewReference viewRef : page.getViewReferences()) {
                if (viewRef.getId().equals("org.eclipse.ui.navigator.ProjectExplorer")) {
                    IViewPart viewPart = viewRef.getView(false);
                    ProjectExplorer explorer = (ProjectExplorer) viewPart;
                    explorer.setLinkingEnabled(true);
                }
            }

            /*
             * Automatically show the two test files.
View Full Code Here

TOP

Related Classes of org.eclipse.ui.navigator.resources.ProjectExplorer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.