Examples of CamelDebugRegistryEntry


Examples of org.fusesource.ide.launcher.debug.util.CamelDebugRegistryEntry

  /**
   * closes the remote context in editor
   */
  private void closeRemoteContextEditor() {
    if (getLaunch() == null || getLaunch().getLaunchConfiguration() == null) return;
    CamelDebugRegistryEntry entry = CamelDebugRegistry.getInstance().getEntry(getLaunch().getLaunchConfiguration());
    if (entry == null) return;
    CamelDebugContextEditorInput input = entry.getEditorInput();
    CamelDebugRegistry.getInstance().removeEntry(getLaunch().getLaunchConfiguration());
    IWorkbench wb = PlatformUI.getWorkbench();
    if (wb != null) {
      IWorkbenchWindow[] wbw = wb.getWorkbenchWindows();
      if (wbw.length > 0) {
View Full Code Here

Examples of org.fusesource.ide.launcher.debug.util.CamelDebugRegistryEntry

  /**
   * update the editor input to contain latest changes
   */
  public void updateEditorInput() {
    CamelDebugRegistryEntry entry = CamelDebugRegistry.getInstance().getEntry(getLaunch().getLaunchConfiguration());
    if (entry != null) {
      CamelDebugContextEditorInput input = entry.getEditorInput();
      input.refresh();
    }
   
//    closeRemoteContextEditor();
  }
View Full Code Here

Examples of org.fusesource.ide.launcher.debug.util.CamelDebugRegistryEntry

    if (resource.getLocation().toFile().getPath().indexOf(String.format("%s%s%starget%s", File.separatorChar, projectName, File.separatorChar, File.separatorChar)) != -1) {
      // seems to be a running context - replace the resource with the correct one
      Iterator<ILaunchConfiguration> launchConfigIterator = CamelDebugRegistry.getInstance().getEntries().keySet().iterator();
      while (launchConfigIterator.hasNext()) {
        ILaunchConfiguration lc = launchConfigIterator.next();
        CamelDebugRegistryEntry entry = CamelDebugRegistry.getInstance().getEntry(lc);
        if (((IFile)entry.getEditorInput().getAdapter(IFile.class)).getFullPath().toFile().getPath().equals(resource.getFullPath().toFile().getPath())) {
          this.resource = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(Path.fromOSString(CamelDebugUtils.getRawCamelContextFilePathFromLaunchConfig(lc)));
        }
      }
    } else {
      this.resource = resource;
View Full Code Here

Examples of org.fusesource.ide.launcher.debug.util.CamelDebugRegistryEntry

    if (resource.getLocation().toFile().getPath().indexOf(String.format("%s%s%starget%s", File.separatorChar, projectName, File.separatorChar, File.separatorChar)) != -1) {
      // seems to be a running context - replace the resource with the correct one
      Iterator<ILaunchConfiguration> launchConfigIterator = CamelDebugRegistry.getInstance().getEntries().keySet().iterator();
      while (launchConfigIterator.hasNext()) {
        ILaunchConfiguration lc = launchConfigIterator.next();
        CamelDebugRegistryEntry entry = CamelDebugRegistry.getInstance().getEntry(lc);
        if (((IFile)entry.getEditorInput().getAdapter(IFile.class)).getFullPath().toFile().getPath().equals(resource.getFullPath().toFile().getPath())) {
          this.resource = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(Path.fromOSString(CamelDebugUtils.getRawCamelContextFilePathFromLaunchConfig(lc)));
        }
      }
    } else {
      this.resource = resource;
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.