Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xtext Proxy handler error(Xtext Proxy handler error)
Xtext Proxy handler error [message #1731139] Tue, 03 May 2016 03:24 Go to next message
Eclipse UserFriend
Hi Christian,

I am getting below error. Could you please tell me what would be the problem?

The proxied handler for 'com.prolifics.jpl.ui.JPLEditorExecutableExtensionFactory:com.prolifics.jpl.ui.handler.GenerationHandler' could not be loaded

PFA
Re: Xtext Proxy handler error [message #1731140 is a reply to message #1731139] Tue, 03 May 2016 03:27 Go to previous messageGo to next message
Eclipse UserFriend
do you have any warnings on any build.properties files?
Re: Xtext Proxy handler error [message #1731144 is a reply to message #1731140] Tue, 03 May 2016 03:46 Go to previous messageGo to next message
Eclipse UserFriend
No. I don't have. I have written the below code to execute when I click on an option convert2bin from context menu. But it is not executing I assume. It is not showing anything on console. How can I debug my plugin?

Please let me know is there thing wrong with my code:

package com.prolifics.jpl.ui.handler

import java.io.BufferedReader
import java.io.InputStreamReader
import org.eclipse.core.commands.AbstractHandler
import org.eclipse.core.commands.ExecutionEvent
import org.eclipse.core.commands.ExecutionException
import org.eclipse.core.commands.IHandler
import org.eclipse.core.resources.IFile
import org.eclipse.core.resources.IProject
import org.eclipse.core.resources.IResource
import org.eclipse.core.resources.IWorkspace
import org.eclipse.core.resources.IWorkspaceRoot
import org.eclipse.core.resources.ResourcesPlugin
import org.eclipse.core.runtime.NullProgressMonitor
import org.eclipse.ui.IEditorPart
import org.eclipse.ui.handlers.HandlerUtil

class GenerationHandler extends AbstractHandler implements IHandler {
override Object execute(ExecutionEvent event) throws ExecutionException {
val IEditorPart activeEditor = HandlerUtil.getActiveEditor(event);
val IFile file = activeEditor.getEditorInput().getAdapter(IFile) as IFile;
val IWorkspace workspace = ResourcesPlugin.getWorkspace();
val IWorkspaceRoot root = workspace.getRoot();

if (file != null) {
val IProject project = file.project

/*********************** File Input Stream Start :::::::::::::: **********************************/
val String cmd = "\""+root.getRawLocation()+file.project.fullPath.toString()+"/jpl2bin.exe\""+" -b -f -p "+file.location;
val Process p = Runtime.getRuntime().exec(cmd);
val BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
val BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));
val sInput = stdInput.readLine()
System.out.println(sInput);
val sError = stdError.readLine()
System.err.println(sError);
project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
/************************* File Input Stream End :::::::::::::: ***********************************/
}
return null;
}
}



Re: Xtext Proxy handler error [message #1731146 is a reply to message #1731144] Tue, 03 May 2016 03:58 Go to previous messageGo to next message
Eclipse UserFriend
Do you get a trace if you klick on the error
Re: Xtext Proxy handler error [message #1731148 is a reply to message #1731146] Tue, 03 May 2016 04:10 Go to previous messageGo to next message
Eclipse UserFriend
No I am not getting any response from that class.
Re: Xtext Proxy handler error [message #1731150 is a reply to message #1731148] Tue, 03 May 2016 04:15 Go to previous messageGo to next message
Eclipse UserFriend
i mean if you double click on the error in the log?
can you share your update site?
Re: Xtext Proxy handler error [message #1731164 is a reply to message #1731150] Tue, 03 May 2016 05:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian,

My functionality in GenerateHandler.class is working fine and I am getting converted .bin file also. But when I am failing to convert in console it is not showing up the errors that I place System.out.println() statement.
Re: Xtext Proxy handler error [message #1731167 is a reply to message #1731164] Tue, 03 May 2016 05:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian,

Generally when we building xtext project we will have all the xtext related artifacts will be in one Eclipse application and editor will be opened in run time application. If we write any system.out.println statements in any of the classes it will be shown in xtext project console, but not on run time application console. Is there any way to show errors on run time application
Re: Xtext Proxy handler error [message #1731171 is a reply to message #1731167] Tue, 03 May 2016 06:15 Go to previous messageGo to next message
Eclipse UserFriend
Since this is not xtext related you should look ask elsewhere eg in the rcp
forum or google
http://stackoverflow.com/questions/2127718/eclipse-rcp-how-to-redirect-the-output-to-console-view
Re: Xtext Proxy handler error [message #1731178 is a reply to message #1731171] Tue, 03 May 2016 07:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian,

This is not I want. I want to show error messages that I added in xtext project code. So that code is in my plugin. After installing the plugin, I am using that installed editor but it is not showing error that I have added in plugin code. I want to display that error message in currently running editor console. I can set console output within the plugin but how can I configure outside the plugin?

Re: Xtext Proxy handler error [message #1731179 is a reply to message #1731178] Tue, 03 May 2016 07:13 Go to previous messageGo to next message
Eclipse UserFriend
sry dont get you please share a mockj screenshot that shows what you are talking about?
Re: Xtext Proxy handler error [message #1731180 is a reply to message #1731179] Tue, 03 May 2016 07:15 Go to previous message
Eclipse UserFriend
i understood: in my code i do a sysout and i want to redirect this to the eclipse console
Previous Topic:How to get started with code generator in intellij?
Next Topic:How to bind AbstractInternalAntlrParser
Goto Forum:
  


Current Time: Sun Jul 06 15:56:33 EDT 2025

Powered by FUDForum. Page generated in 0.04876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top