Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Launchconfiguration
Launchconfiguration [message #325625] Sat, 23 February 2008 05:30 Go to next message
Eclipse UserFriend
Originally posted by: invone2000.yahoo.de

Hi!

I have two questions about eclipse launch configurations:

1.) I want to save seettings made by my own TAB panel. The user may select
two files from the workspace. If now the launch configuration is opened
again this setting must have been persistet. Thus I used a properties file
to store the path of the two files. Is there a more elegant way? Some
eclipse internal speciality?

2.) I can start the plugin which contains the created launch configuration
from my development eclipse installation via the "run/debug" launch
configuration and my newly created launch configuration is available and
working.
Now: If I export the plugin as archive and insert this in a new clean
eclipse installation the launch configuration is not available. But the
eclipse plugin containing the launchconfiguration is present which I found
out via the eclipse/about dialog...

I'm wondering about the reason why my launch configuration is not
present...

Cheers
R4ID
Re: Launchconfiguration [message #325719 is a reply to message #325625] Mon, 25 February 2008 19:18 Go to previous messageGo to next message
Eclipse UserFriend
R4ID wrote:
> Hi!
>
> I have two questions about eclipse launch configurations:
>
> 1.) I want to save seettings made by my own TAB panel. The user may
> select two files from the workspace. If now the launch configuration is
> opened again this setting must have been persistet. Thus I used a
> properties file to store the path of the two files. Is there a more
> elegant way? Some eclipse internal speciality?
>
> 2.) I can start the plugin which contains the created launch
> configuration from my development eclipse installation via the
> "run/debug" launch configuration and my newly created launch
> configuration is available and working. Now: If I export the plugin as
> archive and insert this in a new clean eclipse installation the launch
> configuration is not available. But the eclipse plugin containing the
> launchconfiguration is present which I found out via the eclipse/about
> dialog...
>
> I'm wondering about the reason why my launch configuration is not
> present...

Launch configurations are, well 'configurations', not things in a plugin
but rather thing created by users. In the run/debug you -- a user --
created a launch configuration. When you start clean install then you --
a different user -- have to create one.

You can create one in code by creating a working copy from a
LaunchConfigurationType, then saving it to disk.

You should look around your disk to find the .launch files and read a
couple of them, and watch this directory as you create/delete etc. It
will make the launch config documentation much clearer.

John.
Re: Launchconfiguration [message #325825 is a reply to message #325719] Thu, 28 February 2008 05:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: invone2000.yahoo.de

Thanx - the thing with the working copy stuff works now ;)

But the problem remains: I have a launchconfiguration created according to
some tutorials.

When I start this plugin from my development eclipse instanz (Run
As/Eclipse Application) I can see my launch configuration within the list
of all others (like: Java, Applet, JUnit etc...)
But when I export the plugin as jar and drop it into my eclipse
installation this launch configuration from me does not appear ...

What can be the cause?

Cheers
R4ID
Re: Launchconfiguration [message #325843 is a reply to message #325825] Thu, 28 February 2008 11:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

R4ID wrote:
> Thanx - the thing with the working copy stuff works now ;)
>
> But the problem remains: I have a launchconfiguration created according
> to some tutorials.
>
> When I start this plugin from my development eclipse instanz (Run
> As/Eclipse Application) I can see my launch configuration within the
> list of all others (like: Java, Applet, JUnit etc...)
> But when I export the plugin as jar and drop it into my eclipse
> installation this launch configuration from me does not appear ...
>
> What can be the cause?

Launch configurations are stored in the workspace, so you'll need to
either re-create it in the destination workspace or copy it over. On the
Common tab of a launch config there is an option to save it in a file in
the project. If you select that then you can copy the generated .launch
file to another workspace.

Hope this helps,
Eric
Re: Launchconfiguration [message #325857 is a reply to message #325843] Fri, 29 February 2008 06:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: invone2000.yahoo.de

;)
No - I think you missunderstood me. But I think I didn't make myself clear
enough:

I have written a plugin which insert a new launchconfiguration with the
Debug/Run option of the IDE.
I used the extension points:
- org.eclipse.debug.core.launchConfigurationTypes
- org.eclipse.debug.core.launchConfigurationComparators
- org.eclipse.debug.ui.launchConfigurationTabGroups with debug and run
launch mode.

This one will be nearly the same as the Java Launchconfiguration but with
a new Tab from (selecting two Ecore models...)

And this! is not shown in the Run -> Open Run Dialog... selection...
I see everything, like Chain, Eclipse Application, Applet, JUnit etc...
But not mine.
And the problem is: When I start the plugin containing the newly developed
launchconfiguration I see my entry in the Run Dialog. But when I export my
plugin as jar and insert this one into the plugins folder of my eclipse
installation it is not there. The plugin is in the list plugins buit not
working...
;)

for this some hint?

R4ID
Re: Launchconfiguration [message #325862 is a reply to message #325857] Fri, 29 February 2008 06:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

R4ID,

When you launch the Eclipse with your additional plugin, try using
-clean -debug and have a close look at the Error log for indications of
problems. If your plugin is failing to activate, there is likely to be
an error message. You might want to clear the log before you try so you
will see only new messages. You can erase <worskpace>/.metadata/.log to
clear (in additional to the clear action in the Error log view). A
deployed plugin not working is likely to be caused by files that haven't
been packaged up and that's controlled by the build.properties. So have
a close look at your jar to be sure that all the things needed at
runtime are present.


R4ID wrote:
> ;)
> No - I think you missunderstood me. But I think I didn't make myself
> clear enough:
>
> I have written a plugin which insert a new launchconfiguration with
> the Debug/Run option of the IDE.
> I used the extension points:
> - org.eclipse.debug.core.launchConfigurationTypes
> - org.eclipse.debug.core.launchConfigurationComparators
> - org.eclipse.debug.ui.launchConfigurationTabGroups with debug and run
> launch mode.
>
> This one will be nearly the same as the Java Launchconfiguration but
> with a new Tab from (selecting two Ecore models...)
>
> And this! is not shown in the Run -> Open Run Dialog... selection...
> I see everything, like Chain, Eclipse Application, Applet, JUnit etc...
> But not mine.
> And the problem is: When I start the plugin containing the newly
> developed launchconfiguration I see my entry in the Run Dialog. But
> when I export my plugin as jar and insert this one into the plugins
> folder of my eclipse installation it is not there. The plugin is in
> the list plugins buit not working...
> ;)
>
> for this some hint?
>
> R4ID
>
Re: Launchconfiguration [message #325865 is a reply to message #325862] Fri, 29 February 2008 07:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: invone2000.yahoo.de

Okay, I did what you told me:
-Clean in eclipse.ini produces a Memory Access error presented shortly
after double clicking the eclipse.exe

Then I cleared the .workspace's log file and started again.
I have the following exception messages:

!ENTRY org.eclipse.ui.intro 4 0 2008-02-29 13:29:46.401
!MESSAGE
D:\environment\java\ide\eclipse\intro\overviewExtensionConte xt.xml (The
system cannot find the path specified)
!STACK 0
java.io.FileNotFoundException:
D:\environment\java\ide\eclipse\intro\overviewExtensionConte xt.xml (The
system cannot find the path specified)

!ENTRY org.eclipse.ui.intro 4 0 2008-02-29 13:29:46.401
!MESSAGE D:\environment\java\ide\eclipse\intro\newsExtensionContext.x ml
(The system cannot find the path specified)
!STACK 0
java.io.FileNotFoundException:
D:\environment\java\ide\eclipse\intro\newsExtensionContext.x ml (The system
cannot find the path specified)

!ENTRY org.eclipse.ui.intro 4 0 2008-02-29 13:29:46.401
!MESSAGE
D:\environment\java\ide\eclipse\intro\tutorialsExtensionCont ext.xml (The
system cannot find the path specified)
!STACK 0
java.io.FileNotFoundException:
D:\environment\java\ide\eclipse\intro\tutorialsExtensionCont ext.xml (The
system cannot find the path specified)

But I don't know those files...
What are these files? Hmm,

R4ID
Re: Launchconfiguration [message #325866 is a reply to message #325865] Fri, 29 February 2008 07:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

R4ID,

It sounds like your configuration has things missing from it. Did you
get such errors before your plugins were added?


R4ID wrote:
> Okay, I did what you told me:
> -Clean in eclipse.ini produces a Memory Access error presented shortly
> after double clicking the eclipse.exe
>
> Then I cleared the .workspace's log file and started again.
> I have the following exception messages:
>
> !ENTRY org.eclipse.ui.intro 4 0 2008-02-29 13:29:46.401
> !MESSAGE
> D:\environment\java\ide\eclipse\intro\overviewExtensionConte xt.xml
> (The system cannot find the path specified)
> !STACK 0
> java.io.FileNotFoundException:
> D:\environment\java\ide\eclipse\intro\overviewExtensionConte xt.xml
> (The system cannot find the path specified)
>
> !ENTRY org.eclipse.ui.intro 4 0 2008-02-29 13:29:46.401
> !MESSAGE
> D:\environment\java\ide\eclipse\intro\newsExtensionContext.x ml (The
> system cannot find the path specified)
> !STACK 0
> java.io.FileNotFoundException:
> D:\environment\java\ide\eclipse\intro\newsExtensionContext.x ml (The
> system cannot find the path specified)
>
> !ENTRY org.eclipse.ui.intro 4 0 2008-02-29 13:29:46.401
> !MESSAGE
> D:\environment\java\ide\eclipse\intro\tutorialsExtensionCont ext.xml
> (The system cannot find the path specified)
> !STACK 0
> java.io.FileNotFoundException:
> D:\environment\java\ide\eclipse\intro\tutorialsExtensionCont ext.xml
> (The system cannot find the path specified)
>
> But I don't know those files... What are these files? Hmm,
>
> R4ID
>
Re: Launchconfiguration [message #325868 is a reply to message #325866] Fri, 29 February 2008 08:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: invone2000.yahoo.de

Okay, I took the original eclipse.zip and extracted it newly. Then I
deployed the jars of my plugins and startet with -Debug optin in
eclipse.ini
I used a new workspace and my .log file contains no errors (as far as I am
sure 'bout that).

Sorry for that: But here is my trace:
The launch configuration from is still not available...
############################################################ #################
!SESSION 2008-02-29 14:04:19.993
-----------------------------------------------
eclipse.buildId=I20070625-1500
java.version=1.6.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui.workbench 2 0 2008-02-29 14:05:44.188
!MESSAGE A handler conflict occurred. This may disable some commands.
!SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-02-29 14:05:44.188
!MESSAGE Conflict for
'AUTOGEN:::org.topcased.java.reverse.actions/org.topcased.ja va.reverse.actions.UML2FromJavaAction':
HandlerActivation(commandId=AUTOGEN:::org.topcased.java.reve rse.actions/org.topcased.java.reverse.actions.UML2FromJavaAc tion,
handler=ActionDelegateHandlerProxy(null,org.topcased.java.re verse.actions.UMLFromJavaAction),
expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@105e560),sourcePriority=16384)
HandlerActivation(commandId=AUTOGEN:::org.topcased.java.reve rse.actions/org.topcased.java.reverse.actions.UML2FromJavaAc tion,
handler=ActionDelegateHandlerProxy(null,org.topcased.java.re verse.actions.UMLFromJavaAction),
expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@105e560),sourcePriority=16384)

!ENTRY org.eclipse.jface 2 0 2008-02-29 14:05:44.188
!MESSAGE Keybinding conflicts occurred. They may interfere with normal
accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2008-02-29 14:05:44.188
!MESSAGE A conflict occurred for SHIFT+DEL:
Binding(SHIFT+DEL,
ParameterizedCommand(Command(org.eclipse.datatools.sqltools. result.removeAllInstances,Remove
All Visible Results,
,
Category(org.eclipse.datatools.sqltools.result.category,SQL Results
View,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)
Binding(SHIFT+DEL,
ParameterizedCommand(Command(org.eclipse.ui.edit.cut,Cut,
Cut the selection to the clipboard,
Category(org.eclipse.ui.category.edit,Edit,null,true),
ActionHandler(RetargetAction(cut)),
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.dialogAndWindow,,,system)
Binding(SHIFT+DEL,
ParameterizedCommand(Command(org.topcased.modeler.deleteMode lObject,Delete
From Model,
Allows the user to delete the selected graph element and its associated
model element in a Topcased editor.,
Category(org.eclipse.ui.category.edit,Edit,null,true),
,
,,true),null),
org.eclipse.ui.defaultAcceleratorConfiguration,
org.eclipse.ui.contexts.window,,,system)


The only things I see are about topcased...

R4ID
Re: Launchconfiguration [message #325869 is a reply to message #325868] Fri, 29 February 2008 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

R4ID,

So with this clean environment, you can start adding your stuff. If the
problem only shows up then, it's likely related to what you added.


R4ID wrote:
> Okay, I took the original eclipse.zip and extracted it newly. Then I
> deployed the jars of my plugins and startet with -Debug optin in
> eclipse.ini
> I used a new workspace and my .log file contains no errors (as far as
> I am sure 'bout that).
>
> Sorry for that: But here is my trace:
> The launch configuration from is still not available...
> ############################################################ #################
>
> !SESSION 2008-02-29 14:04:19.993
> -----------------------------------------------
> eclipse.buildId=I20070625-1500
> java.version=1.6.0_04
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> !ENTRY org.eclipse.ui.workbench 2 0 2008-02-29 14:05:44.188
> !MESSAGE A handler conflict occurred. This may disable some commands.
> !SUBENTRY 1 org.eclipse.ui.workbench 2 0 2008-02-29 14:05:44.188
> !MESSAGE Conflict for
> 'AUTOGEN:::org.topcased.java.reverse.actions/org.topcased.ja va.reverse.actions.UML2FromJavaAction':
>
> HandlerActivation(commandId=AUTOGEN:::org.topcased.java.reve rse.actions/org.topcased.java.reverse.actions.UML2FromJavaAc tion,
>
> handler=ActionDelegateHandlerProxy(null,org.topcased.java.re verse.actions.UMLFromJavaAction),
>
> expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@105e560),sourcePriority=16384)
>
> HandlerActivation(commandId=AUTOGEN:::org.topcased.java.reve rse.actions/org.topcased.java.reverse.actions.UML2FromJavaAc tion,
>
> handler=ActionDelegateHandlerProxy(null,org.topcased.java.re verse.actions.UMLFromJavaAction),
>
> expression=WorkbenchWindowExpression(org.eclipse.ui.internal.WorkbenchWindow@105e560),sourcePriority=16384)
>
>
> !ENTRY org.eclipse.jface 2 0 2008-02-29 14:05:44.188
> !MESSAGE Keybinding conflicts occurred. They may interfere with
> normal accelerator operation.
> !SUBENTRY 1 org.eclipse.jface 2 0 2008-02-29 14:05:44.188
> !MESSAGE A conflict occurred for SHIFT+DEL:
> Binding(SHIFT+DEL,
> ParameterizedCommand(Command(org.eclipse.datatools.sqltools. result.removeAllInstances,Remove
> All Visible Results,
> ,
> Category(org.eclipse.datatools.sqltools.result.category,SQL
> Results View,null,true),
> ,
> ,,true),null),
> org.eclipse.ui.defaultAcceleratorConfiguration,
> org.eclipse.ui.contexts.window,,,system)
> Binding(SHIFT+DEL,
> ParameterizedCommand(Command(org.eclipse.ui.edit.cut,Cut,
> Cut the selection to the clipboard,
> Category(org.eclipse.ui.category.edit,Edit,null,true),
> ActionHandler(RetargetAction(cut)),
> ,,true),null),
> org.eclipse.ui.defaultAcceleratorConfiguration,
> org.eclipse.ui.contexts.dialogAndWindow,,,system)
> Binding(SHIFT+DEL,
> ParameterizedCommand(Command(org.topcased.modeler.deleteMode lObject,Delete
> From Model,
> Allows the user to delete the selected graph element and its
> associated model element in a Topcased editor.,
> Category(org.eclipse.ui.category.edit,Edit,null,true),
> ,
> ,,true),null),
> org.eclipse.ui.defaultAcceleratorConfiguration,
> org.eclipse.ui.contexts.window,,,system)
>
>
> The only things I see are about topcased...
>
> R4ID
>
Re: Launchconfiguration [message #325872 is a reply to message #325869] Fri, 29 February 2008 08:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: invone2000.yahoo.de

I added my stuff and the plugins are aparently available (Help menu in
eclipse) but the launch configuration is still unavailable.
And the log does not report any exceptions...
Re: Launchconfiguration [message #325874 is a reply to message #325872] Fri, 29 February 2008 08:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

R4ID,

Just to be sure I understand, you are saying that your category is
missing when you deploy your plugin, but it's available when you test
your plugin with a runtime workspace. Inevitably such difference are
caused by things in the plugin that are not packaged up into the final
jar when deployed. Have you investigated that?


R4ID wrote:
> I added my stuff and the plugins are aparently available (Help menu in
> eclipse) but the launch configuration is still unavailable.
> And the log does not report any exceptions...
>
Re: Launchconfiguration [message #328630 is a reply to message #325857] Wed, 28 May 2008 21:49 Go to previous message
Eclipse UserFriend
R4ID wrote:
> ;)
> No - I think you missunderstood me. But I think I didn't make myself
> clear enough:
>
> I have written a plugin which insert a new launchconfiguration with the
> Debug/Run option of the IDE.
> I used the extension points:
> - org.eclipse.debug.core.launchConfigurationTypes
> - org.eclipse.debug.core.launchConfigurationComparators
> - org.eclipse.debug.ui.launchConfigurationTabGroups with debug and run
> launch mode.
>
> This one will be nearly the same as the Java Launchconfiguration but
> with a new Tab from (selecting two Ecore models...)
>
> And this! is not shown in the Run -> Open Run Dialog... selection...
> I see everything, like Chain, Eclipse Application, Applet, JUnit etc...
> But not mine.
> And the problem is: When I start the plugin containing the newly
> developed launchconfiguration I see my entry in the Run Dialog. But when
> I export my plugin as jar and insert this one into the plugins folder of
> my eclipse installation it is not there. The plugin is in the list
> plugins buit not working...

I know this is an old thread, but I am hoping for a hint as well. I've
done all of the above, but I don't quite get as far. I don't see my new
configuration type in the Run or Debug dialogs even when I run under the
PDE. I can get them programmatically and use the launches no problem.
They do show up in
Window.Preferences.Run/Debug.Launching.LaunchConfigurations under Filter
checked launch configuration types. And they show up in
....Run/Debug.Prespectives. But not in Run or Debug dialogs.

Ideas?

Thanks,
John
Previous Topic:setDefaults() in a debugger page
Next Topic:RC1 hanging on software update
Goto Forum:
  


Current Time: Tue Jul 22 15:35:21 EDT 2025

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

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

Back to the top