Examples of dispose()


Examples of org.eclipse.ui.themes.IThemePreview.dispose()

    }

        for (Iterator i = previewSet.iterator(); i.hasNext();) {
            IThemePreview preview = (IThemePreview) i.next();
            try {
                preview.dispose();
            } catch (RuntimeException e) {
                WorkbenchPlugin
                        .log(
                                RESOURCE_BUNDLE
                                        .getString("errorDisposePreviewLog"), StatusUtil.newStatus(IStatus.ERROR, e.getMessage(), e)); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.property.table.PropertyTable.dispose()

        eventSender.keyDown('\r');
      }
      // "first" was selected
      assertEditor(getStyleSource("setStyleName('first')"));
    } finally {
      propertyTable.dispose();
    }
  }

  public void test_withPropertyTable_useText() throws Exception {
    PropertyTable propertyTable = new PropertyTable(TEST_COMBO_SHELL, SWT.NONE);
View Full Code Here

Examples of org.eclipse.wb.tests.designer.core.TestBundle.dispose()

        // not found
        assertSame(null, DeviceManager.getCategory("noSuchCategory"));
        assertSame(null, DeviceManager.getDevice("noSuchDevice"));
      }
    } finally {
      testBundle.dispose();
    }
  }

  ////////////////////////////////////////////////////////////////////////////
  //
View Full Code Here

Examples of org.eclipse.wb.tests.designer.core.TestProject.dispose()

              Lists.newArrayList("Module.html", "sub/folder/libResource.txt"));
      assertThat(files).hasSize(2);
      assertResourcePath("war/Module.html", files.get(0));
      assertResourcePath("src/the/public/sub/folder/libResource.txt", files.get(1));
    } finally {
      libProject.dispose();
    }
  }

  ////////////////////////////////////////////////////////////////////////////
  //
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.ArtifactEdit.dispose()

        //TODO JAXB Refactoring - Can below two lines be removed without harm?
        //XMIResource res = (XMIResource) edit.getContentModelRoot().eResource();
        //moduleId = res.getID(edit.getContentModelRoot());
      } finally {
        if (edit != null)
          edit.dispose();
      }
    }

    if (moduleId != null && moduleId.length() > 0)
      return moduleId;
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.internal.StructureEdit.dispose()

            moduleCore.saveIfNecessary(null);
          }
        }
      } finally {
        if (moduleCore != null) {
          moduleCore.dispose();
        }
      }
    } 
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.typing.AbstractCharacterPairInserter.dispose()

          public void handleException(Throwable exception) {
            // rely on default logging
          }

          public void run() throws Exception {
            inserter.dispose();
          }
        });
      }
    }
View Full Code Here

Examples of org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.dispose()

              IModelElement modelElement = BeansModelUtils
                  .getResourceModelElement(resource);
              if (modelElement != null
                  && element.getHandleIdentifier().equals(
                      modelElement.getElementID())) {
                editor.dispose();
              }
            }
          }
        }
      }
View Full Code Here

Examples of org.emftrace.ui.controls.EmbeddedLink.dispose()

    setText(textBeforeLink + linkCaption + textBehindLink);
    updateOffsets(offset, linkCaptionLength - 1);
    drawLinks();

    linkToRemove.dispose();

    this.setCaretOffset(Math.max(oldCaretOffset, getText().length() - 1));
  }

  /**
 
View Full Code Here

Examples of org.emftrace.ui.editors.builders.parts.Part.dispose()

            case Notification.REMOVE: {
              FTEntry elementToRemove = (FTEntry) notification
                  .getOldValue();
              Part partToRemove = partMap.get(elementToRemove);
              if (partToRemove != null) {
                partToRemove.dispose();
              }
              partMap.remove(elementToRemove);

              ModelElementChangeListener addRemoveListener = entriesAddRemoveListeners
                  .get(elementToRemove);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.