Exemplo n.º 1
0
 public void contentRemoved(ContentManagerEvent event) {
   if (event.getContent() == myContent) {
     synchronized (myMessageViewLock) {
       if (myErrorTreeView != null) {
         myErrorTreeView.dispose();
         myErrorTreeView = null;
         if (myIndicator.isRunning()) {
           cancel();
         }
         if (AppIcon.getInstance().hideProgress(myProject, "compiler")) {
           AppIcon.getInstance().setErrorBadge(myProject, null);
         }
       }
     }
     myContentManager.removeContentManagerListener(this);
     myContent.release();
     myContent = null;
   }
 }
Exemplo n.º 2
0
 public void projectClosed(Project project) {
   if (project.equals(myProject) && myContent != null) {
     myContentManager.removeContent(myContent, true);
   }
 }
Exemplo n.º 3
0
 public void setContent(Content content, ContentManager contentManager) {
   myContent = content;
   myContentManager = contentManager;
   contentManager.addContentManagerListener(this);
 }