Examples of CamelDebugContextEditorInput


Examples of org.fusesource.ide.launcher.util.CamelDebugContextEditorInput

   */
  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) {
        final IWorkbenchPage page = wbw[0].getActivePage();
        if (page != null) {
          final IEditorPart ep = page.getActiveEditor();
          if (ep != null && ep.getEditorInput() instanceof CamelDebugContextEditorInput) {
            CamelDebugContextEditorInput ip = (CamelDebugContextEditorInput)ep.getEditorInput();
            IFile f = (IFile)input.getAdapter(IFile.class);
            IFile fIp = (IFile)ip.getAdapter(IFile.class);
            if (fIp.getFullPath().toFile().getPath().equals(f.getFullPath().toFile().getPath())) {
              Display.getDefault().asyncExec(new Runnable() {
                @Override
                public void run() {
                  page.closeEditor(ep, false)
View Full Code Here

Examples of org.fusesource.ide.launcher.util.CamelDebugContextEditorInput

   * @param contextId
   */
  private void createRemoteDebugContextEditorInput() {
    try {
      // create the editor input
      CamelDebugContextEditorInput input = new CamelDebugContextEditorInput(debugger, getLaunch().getLaunchConfiguration());
      // and save it in the registry
      CamelDebugRegistry.getInstance().createEntry(this, this.camelContextId, input, getLaunch().getLaunchConfiguration());
    } catch (Exception ex) {
      Activator.getLogger().error(ex);
    }
View Full Code Here

Examples of org.fusesource.ide.launcher.util.CamelDebugContextEditorInput

   * 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
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.