Package org.eclipse.ui.model

Examples of org.eclipse.ui.model.BaseWorkbenchContentProvider


    setControl(container);
  }
 
  private void handleBrowse() {   
    ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
          getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
      dialog.setTitle("Select target Project");
      dialog.setMessage("Select the target project for the new capabilites:");
      dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
      dialog.setAllowMultiple(false);
      dialog.addFilter(new ViewerFilter() {       
View Full Code Here


    setPageComplete(message == null);
  }

  private void handleBrowse() {   
    ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
          getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
      dialog.setTitle("Select target Project");
      dialog.setMessage("Select the target project for the new agent:");
      dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
      dialog.setAllowMultiple(false);
      dialog.addFilter(new ViewerFilter() {       
View Full Code Here

  }
 
  private void handleBrowse() {
    fileList = new ArrayList<IFile>();
    ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
          getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
      dialog.setTitle("Select target Capability");
      dialog.setMessage("Select the target capability file:");
      dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
      dialog.setAllowMultiple(false);
      dialog.addFilter(new ViewerFilter() {       
View Full Code Here

                final IProject proj = ResourcesPlugin.getWorkspace().getRoot().getProject(currentProjName);
                if (proj == null) {
                    return;
                }
               
                CheckedTreeSelectionDialog dialog = new CheckedTreeSelectionDialog(parent.getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
                dialog.setInput(proj.getWorkspace().getRoot());
                dialog.addFilter(new ClojureElementViewerFilter(proj));
               
                if (sourceFilesViewer.getInput() != null) {
                    dialog.setInitialSelections(
View Full Code Here

  /**
   * Returns the content provider for this page.
   */
  protected IContentProvider getCheatSheetProvider() {
    // want to get the cheatsheets of the collection element
    return new BaseWorkbenchContentProvider() {
      public Object[] getChildren(Object o) {
        Object[] cheatsheets;
        if (o instanceof CheatSheetCollectionElement) {
          cheatsheets = ((CheatSheetCollectionElement) o)
              .getCheatSheets();
View Full Code Here

        });
    }

    private void selectInWorkspace() {
        ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getShell(),
                new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
        dialog.setTitle("Select a workspace relative file:");
        dialog.setMessage("Select a workspace relative file:");
        // Filter closed projects
        dialog.addFilter(new ViewerFilter() {
            public boolean select(Viewer viewer, Object parentElement, Object element) {
View Full Code Here

 
  protected void openDialog() {


    try {
      ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(getShell(), new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider());
      dialog.setInput(project);
      dialog.setAllowMultiple(false);
      dialog.setTitle("Select the dumped service container to use");
     
      if (dialog.open() == Window.OK) {
View Full Code Here

  @Override
  public void createPartControl(Composite parent) {
    this.parent = parent;
    dataManagerTree = new TreeViewer(parent);
   
    dataManagerTree.setContentProvider(new BaseWorkbenchContentProvider() {
      @SuppressWarnings("unchecked")
      @Override
      public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
        super.inputChanged(viewer, oldInput, newInput);
        if (oldInput != null) {
View Full Code Here

  @Override
  public void createPartControl(Composite parent) {
    this.parent = parent;
    tradingAgentTree = new TreeViewer(parent);
   
    tradingAgentTree.setContentProvider(new BaseWorkbenchContentProvider() {
      @SuppressWarnings("unchecked")
      @Override
      public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
        super.inputChanged(viewer, oldInput, newInput);
        if (oldInput != null) {
View Full Code Here

  @Override
  public void createPartControl(Composite parent) {
    this.parent = parent;
    tradingAgentTree = new TreeViewer(parent);
   
    tradingAgentTree.setContentProvider(new BaseWorkbenchContentProvider() {
      @SuppressWarnings("unchecked")
      @Override
      public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
        super.inputChanged(viewer, oldInput, newInput);
        if (oldInput != null) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.model.BaseWorkbenchContentProvider

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.