Examples of IRemoteCamelEditorInput


Examples of org.fusesource.ide.camel.model.io.IRemoteCamelEditorInput

          return false;
        }
      }
      return true;
    } else {
      IRemoteCamelEditorInput remoteEditorInput = editor.asRemoteCamelEditorInput(input);
      if (remoteEditorInput != null) {
        camelContextFile = null;
        container = null;

        // load the model
        if (editor.getModel() == null) {
          try {
            String text = remoteEditorInput.getXml();
            try {
              editor.setModel(CamelContextIOUtils.loadModelFromText(text));
              ValidationHandler status = CamelContextIOUtils.validateModel(editor.getModel());
              if (status.hasErrors()) {
                Activator.getLogger().error("Unable to validate the model. Invalid input!");
View Full Code Here

Examples of org.fusesource.ide.camel.model.io.IRemoteCamelEditorInput

    }
    IFile file = getCamelContextFile();
    if (file != null) {
      return file.getFullPath().toString() + "_" + id;
    } else {
      IRemoteCamelEditorInput input = getRemoteCamelEditorInput();
      if (input != null) {
        return input.getUriText();
      }
    }
    return id;
  }
View Full Code Here

Examples of org.fusesource.ide.camel.model.io.IRemoteCamelEditorInput

      if (fileEditorInput instanceof IRemoteCamelEditorInput) {
        return (IRemoteCamelEditorInput) fileEditorInput;
      }
    } else if (input instanceof IURIEditorInput) {
      final IURIEditorInput uriInput = (IURIEditorInput) input;
      return new IRemoteCamelEditorInput() {

        @Override
        public String getUriText() {
          return uriInput.getName();
        }

        @Override
        public String getXml() throws IOException {
          return IOUtils.loadText(uriInput.getURI().toURL().openStream(), "UTF-8");
        }
      };
        } else if (input instanceof DiagramEditorInput) {
            final DiagramEditorInput uriInput = (DiagramEditorInput) input;
            return new IRemoteCamelEditorInput() {

                @Override
                public String getUriText() {
                    return uriInput.getName();
                }
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.