Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: e(fx)clipse
 Topic: How to startup efxclipse RCP application via EclipseStarter programmatically?
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1592719 is a reply to message #1591453] Fri, 30 January 2015 07:23
Claus Klammer is currently offline Claus KlammerFriend
Messages: 10
Registered: March 2012
Junior Member
Thank you Tom for your fast response. Unfortunately neither of your suggested soltions work. I will now take a look at the differences between starting with EclipseStarter and the launcher Main. Do you have any additional suggestions? (see my bootstrapping code below, which is called from the main class constructor
		new Thread() {
			@Override
			public void run() {
				initializeEclipseStarter();
				String[] equinoxArgs = {"org.osgi.framework.bundle.parent", "ext", "-console", "-consoleLog", "-debug", "debug_options", "-org.osgi.framework.bundle.parent", "ext", "-data", "D:/projects/AutoTest/Keba/_out/eclipse/"};
				try {
					EclipseStarter.main(equinoxArgs);
				} catch (Exception e) {
					throw new RuntimeException("Starting OSGI failed!", e);
				}
			}
		}.start();
		
		while (!EclipseStarter.isRunning()) {
			Thread.sleep(1000);
		}
                ............

	private void initializeEclipseStarter() {
		Map<String, String> initProps = new HashMap<String, String>();
		initProps.put("osgi.syspath", myExportedApplicationLocation+"plugins");
		initProps.put("osgi.install.area", myExportedApplicationLocation);
		initProps.put("org.osgi.framework.bundle.parent",  "ext");
		
		EclipseStarter.setInitialProperties(initProps);
	}

[Updated on: Fri, 30 January 2015 07:24]

Report message to a moderator

Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1592739 is a reply to message #1592719] Fri, 30 January 2015 07:38
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5520
Registered: July 2009
Senior Member
You are using it wrong! -D needs to be passed to the launch process!

so you should launch the VM with

java -jar .... -Dorg.osgi.framework.bundle.parent=ext both parameters I
gave you are should result in the system properties.

You could also try to set the directly in code using System.getProperties()!

Tom

On 30.01.15 08:23, Claus Klammer wrote:
> Thank you Tom for your fast response. Unfortunately neither of your
> suggested soltions work. I will not take a look at the differences
> between starting with EclipseStarter and the launcher Main. Do you have
> any additional suggestions? (see my bootstrapping code below, which is
> called from the main class constructor
>
> new Thread() {
> @Override
> public void run() {
> initializeEclipseStarter();
> String[] equinoxArgs =
> {"org.osgi.framework.bundle.parent", "ext", "-console", "-consoleLog",
> "-debug", "debug_options", "-org.osgi.framework.bundle.parent", "ext",
> "-data", "D:/projects/AutoTest/Keba/_out/eclipse/"};
> try {
> EclipseStarter.main(equinoxArgs);
> } catch (Exception e) {
> throw new RuntimeException("Starting OSGI failed!", e);
> }
> }
> }.start();
>
> while (!EclipseStarter.isRunning()) {
> Thread.sleep(1000);
> }
> ............
>
> private void initializeEclipseStarter() {
> Map<String, String> initProps = new HashMap<String, String>();
> initProps.put("osgi.syspath",
> myExportedApplicationLocation+"plugins");
> initProps.put("osgi.install.area", myExportedApplicationLocation);
> initProps.put("org.osgi.framework.bundle.parent", "ext");
>
> EclipseStarter.setInitialProperties(initProps);
> }
>
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1592738 is a reply to message #1592719] Fri, 30 January 2015 07:39
Claus Klammer is currently offline Claus KlammerFriend
Messages: 10
Registered: March 2012
Junior Member
hmm, it seem that only org.eclipse.equinox.launcher.Main considers this property (see method invokeFramework).
So I will try to use this code too.
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1592860 is a reply to message #1592739] Fri, 30 January 2015 09:10
Claus Klammer is currently offline Claus KlammerFriend
Messages: 10
Registered: March 2012
Junior Member
I tried it also this way because setting it via SystemProperties (also programmatically) did not work for me - sorry for the confusion. I am currently investigating the org.eclipse.equinox.launcher.Main and the StartupClassLoader. But I've to admit that I did not find out so far, how this all fits together. Do you know of any documentation which describes the different launching strategies, and use cases of equinox.launcher Main and EclipseStarter and why we need a special classloading mechanism (extension feature only available when launched throw launcher.Main?)?

Have you ever sucessfully started an e4 fx RCP application programmatically within another java program? If yes, could you provide an example project - I would appreciate it very much.

Any other hints, or links to documentation of this classloading problems that help me for better understanding the problem are most welcome.
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1592881 is a reply to message #1592860] Fri, 30 January 2015 09:25
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5520
Registered: July 2009
Senior Member
Yes I have because I had make an OSGi-Application starting as a
(Windows)Service-Daemon but I thing more done than to call

org.eclipse.equinox.launcher.Main.main(String[]) are you also using a
"configuration" directory?

Tom

On 30.01.15 10:10, Claus Klammer wrote:
> I tried it also this way because setting it via SystemProperties (also
> programmatically) did not work for me - sorry for the confusion. I am
> currently investigating the org.eclipse.equinox.launcher.Main and the
> StartupClassLoader. But I've to admit that I did not find out so far,
> how this all fits together. Do you know of any documentation which
> describes the different launching strategies, and use cases of
> equinox.launcher Main and EclipseStarter and why we need a special
> classloading mechanism (extension feature only available when launched
> throw launcher.Main?)?
>
> Have you ever sucessfully started an e4 fx RCP application
> programmatically within another java program? If yes, could you provide
> an example project - I would appreciate it very much.
>
> Any other hints, or links to documentation of this classloading problems
> that help me for better understanding the problem are most welcome.
>
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1592924 is a reply to message #1592881] Fri, 30 January 2015 10:04
Claus Klammer is currently offline Claus KlammerFriend
Messages: 10
Registered: March 2012
Junior Member
Yes, I use the configuration directory of the exported application.
Did you use the EclipseStarter, too? Documentation (launcher.Main) says that EclipseStarter should be used when started from java.

Excuse me, but I do not understand your comment "but I thing more done than to call"

Thomas Schindl wrote on Fri, 30 January 2015 04:25
Yes I have because I had make an OSGi-Application starting as a
(Windows)Service-Daemon but I thing more done than to call

org.eclipse.equinox.launcher.Main.main(String[]) are you also using a
"configuration" directory?

Tom

On 30.01.15 10:10, Claus Klammer wrote:
> I tried it also this way because setting it via SystemProperties (also
> programmatically) did not work for me - sorry for the confusion. I am
> currently investigating the org.eclipse.equinox.launcher.Main and the
> StartupClassLoader. But I've to admit that I did not find out so far,
> how this all fits together. Do you know of any documentation which
> describes the different launching strategies, and use cases of
> equinox.launcher Main and EclipseStarter and why we need a special
> classloading mechanism (extension feature only available when launched
> throw launcher.Main?)?
>
> Have you ever sucessfully started an e4 fx RCP application
> programmatically within another java program? If yes, could you provide
> an example project - I would appreciate it very much.
>
> Any other hints, or links to documentation of this classloading problems
> that help me for better understanding the problem are most welcome.
>

Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1592979 is a reply to message #1592924] Fri, 30 January 2015 10:41
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5520
Registered: July 2009
Senior Member
My code looks like this (in reality it is a bit more involved because
I'm looking up the equinox.launcher and create an URLClassloader)

class MyClass {
private static String[] origArgs;

public static void main(String[] args) {
origArgs = args;
// .....
}

public void launch() {
...launcher.Main.launch(origArgs);
}
}

Can you post the content of your config.ini?

Tom

On 30.01.15 11:04, Claus Klammer wrote:
> Yes, I use the configuration directory of the exported application.
> Did you use the EclipseStarter, too? Documentation (launcher.Main) says
> that EclipseStarter should be used when started from java.
>
> Excuse me, but I do not understand your comment "but I thing more done
> than to call"
>
> Thomas Schindl wrote on Fri, 30 January 2015 04:25
>> Yes I have because I had make an OSGi-Application starting as a
>> (Windows)Service-Daemon but I thing more done than to call
>>
>> org.eclipse.equinox.launcher.Main.main(String[]) are you also using a
>> "configuration" directory?
>>
>> Tom
>>
>> On 30.01.15 10:10, Claus Klammer wrote:
>> > I tried it also this way because setting it via SystemProperties (also
>> > programmatically) did not work for me - sorry for the confusion. I am
>> > currently investigating the org.eclipse.equinox.launcher.Main and the
>> > StartupClassLoader. But I've to admit that I did not find out so far,
>> > how this all fits together. Do you know of any documentation which
>> > describes the different launching strategies, and use cases of
>> > equinox.launcher Main and EclipseStarter and why we need a special
>> > classloading mechanism (extension feature only available when launched
>> > throw launcher.Main?)?
>> > > Have you ever sucessfully started an e4 fx RCP application
>> > programmatically within another java program? If yes, could you provide
>> > an example project - I would appreciate it very much.
>> > > Any other hints, or links to documentation of this classloading
>> problems
>> > that help me for better understanding the problem are most welcome.
>> >
>
>
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1593050 is a reply to message #1592979] Fri, 30 January 2015 11:37
Claus Klammer is currently offline Claus KlammerFriend
Messages: 10
Registered: March 2012
Junior Member
As I see, you are simply calling the equinox.launcher.Main. In opposite I would like to start it with the EclipseStarter. This is because I want to get the BundleContext by calling EclipseStarter.getSystemBundleContext and in turn get the Stage of the running application to interact with.
Or is there a way to get the Stage even if I start the application via the equinox.launcher.Main? Do you know of any other solution? There has to be another way since ScenicView is able to get all this information from a running jvm.
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1593088 is a reply to message #1593050] Fri, 30 January 2015 12:06
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5520
Registered: July 2009
Senior Member
Hi,

Something like this could work:

----------8<----------
> try {
> Class.forName("javafx.stage.Stage"); // force init of Stage statics
> } catch (ClassNotFoundException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
> FXRobotHelper.getStages().addListener(new ListChangeListener<Stage>() {
> @Override
> public void onChanged(javafx.collections.ListChangeListener.Change<? extends Stage> c) {
> c.next();
> System.err.println(c.getAddedSubList());
> }
> });


----------8<----------

Internal API of course but well you asked for it ;-) I'm sure I could
find a solution which launches the application appropriately and
provides you access to the BundleContext but that is something beyond
our opensource offering.

Tom

On 30.01.15 12:37, Claus Klammer wrote:
> As I see, you are simply calling the equinox.launcher.Main. In opposite
> I would like to start it with the EclipseStarter. This is because I want
> to get the BundleContext by calling
> EclipseStarter.getSystemBundleContext and in turn get the Stage of the
> running application to interact with.
> Or is there a way to get the Stage even if I start the application via
> the equinox.launcher.Main? Do you know of any other solution? There has
> to be another way since ScenicView is able to get all this information
> from a running jvm.
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1593224 is a reply to message #1593088] Fri, 30 January 2015 13:46
Claus Klammer is currently offline Claus KlammerFriend
Messages: 10
Registered: March 2012
Junior Member
Hi, yes, FXRobotHelper.getStages() is my friend Wink, thank you for the hint.

Interim report:
- I am not able to startup exported efxclipse rcp application from within plain java via FrameworkFactory or EclipseStarter
- The application starts up when launched via org.elcipse.equinox.launcher.Main properly
- I was able to access its Stage object via internal API FXRobotHelper.getStages()

For now I do not have another usage for the BundleContext. But perhaps I will come back to this issue later.
Once again, thank you for your great support!
Re: How to startup efxclipse RCP application via EclipseStarter programmatically? [message #1593413 is a reply to message #1591453] Fri, 30 January 2015 16:22
Claus Klammer is currently offline Claus KlammerFriend
Messages: 10
Registered: March 2012
Junior Member
Since I am curious (related to your statments see below), could you please elaborate in more detail about the implications of the Java7 support.
As far as I understand, these problems ("ext" thing) exist because Java7 does not come with built-in JavaFX support, am I right? How would efxclipse differ, if Java7 support could be dismissed?

Quote:

I really hope that one day Equinox will make the "ext" setting the
default and which would make the fake bundle, the imports, ... needless.

In applications who use Nashorn I'm running today already with this
setting we currently only keep the hook stuff because of Java7 / RCP and
the IDE where we can't simply change this setting.
Forum: Oomph
 Topic: Cannot complete a provisioning operation successfully
Cannot complete a provisioning operation successfully [message #1593197] Fri, 30 January 2015 13:27
Dave Hartnoll is currently offline Dave HartnollFriend
Messages: 2
Registered: January 2015
Junior Member
I'm interesting in using Oomph to install a suitable development environment for an RCP-based product. As part of the learning process I'm trying to see how it works for some Eclipse projects but I can't get any kind of installation to complete successfully.

I'm using version 1.0.0 Build 876 on Windows 7 64-bit.

I've tried a few different versions of Eclipse (RCP/RAP, Standard, Committers) and different projects (Oomph, Vex) with and without target platforms being selected (Luna, Mars, None), but I always get the same error at the "Performing Targlets (...)" stage. This stack trace is from the Committers + Oomph + Mars combination:
Performing Targlets (Eclipse Platform + Oomph)
...
...
Cannot complete the request.  Generating details.
ERROR: org.eclipse.equinox.p2.director code=10053 Cannot complete the install because one or more required items could not be found.
  at org.eclipse.oomph.targlets.internal.core.TargletContainer.forceUpdate(TargletContainer.java:656)
  at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl$4.run(TargletTaskImpl.java:980)
  at org.eclipse.oomph.util.pde.TargetPlatformUtil.runWithTargetPlatformService(TargetPlatformUtil.java:125)
  at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl.perform(TargletTaskImpl.java:905)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:2755)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.access$1(SetupTaskPerformer.java:2715)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil$1.run(SetupTaskPerformer.java:3768)
  at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.performNeededSetupTasks(SetupTaskPerformer.java:3762)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.access$0(SetupTaskPerformer.java:3760)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2706)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2681)
  at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2620)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:523)
  at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:608)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1422623236823
  ERROR: org.eclipse.equinox.p2.director code=0 Missing requirement: artificial_root 1.0.0.v1422623236823 requires 'org.eclipse.oomph.all.feature.group 0.0.0' but it could not be found

Am I doing something wrong?

[Updated on: Fri, 30 January 2015 13:32]

Report message to a moderator

Re: Cannot complete a provisioning operation successfully [message #1593389 is a reply to message #1593197] Fri, 30 January 2015 16:03
Eike Stepper is currently offline Eike StepperFriend
Messages: 5630
Registered: July 2009
Senior Member
Hi Dave,

I just tried it here and it works perfectly for me. Can you find the Git clone on your disk? Is it intact?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Am 30.01.2015 um 14:28 schrieb Dave Hartnoll:
> I'm interesting in using Oomph to install a suitable development environment for an RCP-based product. As part of the
> learning process I'm trying to see how it works for some Eclipse projects but I can't get any kind of installation to
> complete successfully.
>
> I'm using version 1.0.0 Build 876.
>
> I've tried a few different versions of Eclipse (RCP/RAP, Standard, Committers) and different projects (Oomph, Vex)
> with and without target platforms being selected (Luna, Mars, None), but I always get the same error at the
> "Performing Targlets (...)" stage. This stack trace is from the Committers + Oomph + Mars combination:
>
> Performing Targlets (Eclipse Platform + Oomph)
> ..
> ..
> Cannot complete the request. Generating details.
> ERROR: org.eclipse.equinox.p2.director code=10053 Cannot complete the install because one or more required items could
> not be found.
> at org.eclipse.oomph.targlets.internal.core.TargletContainer.forceUpdate(TargletContainer.java:656)
> at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl$4.run(TargletTaskImpl.java:980)
> at org.eclipse.oomph.util.pde.TargetPlatformUtil.runWithTargetPlatformService(TargetPlatformUtil.java:125)
> at org.eclipse.oomph.setup.targlets.impl.TargletTaskImpl.perform(TargletTaskImpl.java:905)
> at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.doPerformNeededSetupTasks(SetupTaskPerformer.java:2755)
> at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.access$1(SetupTaskPerformer.java:2715)
> at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil$1.run(SetupTaskPerformer.java:3768)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
> at
> org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.performNeededSetupTasks(SetupTaskPerformer.java:3762)
> at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$WorkspaceUtil.access$0(SetupTaskPerformer.java:3760)
> at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performNeededSetupTasks(SetupTaskPerformer.java:2706)
> at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.performTriggeredSetupTasks(SetupTaskPerformer.java:2681)
> at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer.perform(SetupTaskPerformer.java:2620)
> at org.eclipse.oomph.setup.ui.wizards.ProgressPage$9.run(ProgressPage.java:523)
> at org.eclipse.oomph.setup.ui.wizards.ProgressPage$11$1.run(ProgressPage.java:608)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: artificial_root 1.0.0.v1422623236823
> ERROR: org.eclipse.equinox.p2.director code=0 Missing requirement: artificial_root 1.0.0.v1422623236823 requires
> 'org.eclipse.oomph.all.feature.group 0.0.0' but it could not be found
>
> Am I doing something wrong?
>
Re: Cannot complete a provisioning operation successfully [message #1593414 is a reply to message #1593389] Fri, 30 January 2015 16:23
Dave Hartnoll is currently offline Dave HartnollFriend
Messages: 2
Registered: January 2015
Junior Member
The git clone has worked well as far as I can tell and appears to be intact.

These are the 'Variable' settings I used:
Installation location rule: ${install.root/}${installation.id}
Installation folder name: eclipse_oomph
Root install folder: d:
Workspace location rule: ${installation.location/ws}
Git clone location rule: ${installation.location/git/}${@id.remoteURI|gitRepository}
Target PLatform: Mars
Oomph Git or Gerrit Repository: git://git.eclipse.org/gitroot/oomph/org.eclipse.oomph
JRE 1.5 Location: C:\Program Files\Java\jdk1.8.0_25
Eclipse user ID: anonymous

Just to be sure, I started with a completely fresh auto-unpacking of oomph-extractor-win64.exe and removed all remnants of .p2 and .eclipse folders from previous tries.

I get the same error every time (except when I skip the choosing of projects - then it works to install the bare Eclipse).

Is there some log file I could send or some other way I can help track this down?
Forum: Web Tools Project (WTP)
 Topic: Breakpoint on JSP does not work in Kepler
Re: Breakpoint on JSP does not work in Kepler [message #1592326 is a reply to message #1587121] Fri, 30 January 2015 02:02
Raymond Lee is currently offline Raymond LeeFriend
Messages: 6
Registered: January 2015
Junior Member
[quote title=Nitin Dahyabhai wrote on Tue, 27 January 2015 06:42]If you downloaded the "Eclipse IDE for Java EE Developers", you already have it installed. The way the breakpoints work for JSPs requires some knowledge of the class files the JSP is eventually compiled into. Can you create a couple of JSP files and file information about the class files that are generated into Bugzilla? The JSP UI plug-in might need an update, or a new plug-in with the right extension might be required.

Hi Nitin,

I have submitted bug report to bugzilla and if you need more information from me, please kindly let me know so that I want to contribute my efforts to solve this issue promptly.

Thanks a lot,
Ray
Re: Breakpoint on JSP does not work in Kepler [message #1593425 is a reply to message #1592326] Fri, 30 January 2015 16:33
Raymond Lee is currently offline Raymond LeeFriend
Messages: 6
Registered: January 2015
Junior Member
HI Nitin ,

Have you received my bug report ? The Bug# is 458754.

Thanks a lot,
Ray
Forum: Mosquitto
 Topic: Does mosquitto 1.4 support mqtt-sn?
Does mosquitto 1.4 support mqtt-sn? [message #1593476] Fri, 30 January 2015 17:22
HE Guangyu is currently offline HE GuangyuFriend
Messages: 1
Registered: January 2015
Junior Member
Mosquitto is a great work. Many thanks.

I will use both mqtt and mqtt-sn at the same time. So I want to know, does mosquitto 1.4 support mqtt-sn?
If not, Do you have a release plan to support mqtt-sn?
Forum: EMF
 Topic: ID of Eclipse sub menu
icon7.gif  ID of Eclipse sub menu [message #1592868] Fri, 30 January 2015 09:18
kumar manish is currently offline kumar manishFriend
Messages: 2
Registered: January 2015
Junior Member
Hi,

How to get the ID of eclipse sub menu. actually i used alt+shift+F2 but i got the ID of only some menu items. how to get the ID of all menu items ?
 Topic: Intermediate properties for EObject ?
icon5.gif  Intermediate properties for EObject ? [message #1593518] Fri, 30 January 2015 18:04
Preetam Palwe is currently offline Preetam PalweFriend
Messages: 2
Registered: October 2014
Junior Member
Hello there ...

May be quite naive question but still ...

I designed an ecore model and also generated java classes from it (using corresponding gen model) . I am using this model in a QVTO to perform this model to some other (xml) model transformation.

I came across a scenario where in I wanted to store an attribute to one of my model classes for a temporary reasons - I do not want to change the metamodel since its not "real" metadata attribute - and use that attribute in the QVTO.

In QVTO terminology I want to achieve something like but across Java and QVTO ...
intermediate property SomeModelClass::someTemporaryAttribute : TemporaryAttribute;

Means I want the attribute to be available in Java model so that I can populate it there and then when QVTO is invoked I can access it in QVTO ...

Is there any standard way available in EMF / EObject to achieve this kind of scenario ???

Any help in this regards is highly appreciated ...

Many Thanks !

Forum: Newcomers
 Topic: cannot find org.eclipse.e4.rcp to add as feature dependency
Re: cannot find org.eclipse.e4.rcp to add as feature dependency [message #1592240 is a reply to message #1591065] Fri, 30 January 2015 00:52
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3297
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 01/29/2015 07:07 AM, quest ionnere wrote:
> Hi,
>
> when following the vogella tutorial (sry - links still disabled) for
> RCP4 applications I get stuck at point 14.3 Enter feature dependencies
> in product It says that I need to add org.eclipse.e4.rcp to the
> dependencies of my feature based product-file. Unfortunately I cannot
> find said feature although it is in my target platform. Do I need to put
> the jar somewhere specific?
>
> Any help would be much appreciated

Lars RCP tutorials are numerous and I don't have the time to dig through
them all to find what you're talking about. You're clever enough to
figure out how to post a link in this forum. You just need to get around
the problem by finding another way to express the URL.

This said, it's not really a forum to support these tutorials. Still,
ask again with more information and I or someone will try to take a
quick look.

Cheers
Re: cannot find org.eclipse.e4.rcp to add as feature dependency [message #1592752 is a reply to message #1592240] Fri, 30 January 2015 07:47
quest ionnere is currently offline quest ionnereFriend
Messages: 3
Registered: January 2015
Junior Member
thank you for your answer and sorry for not providing the link and using the wrong forum.
I was talking about the tutorial at http //www vogella com/tutorials/EclipseRCP/article.html#plugin_dependencies and after some hours of searching and trial and error I found the reason:

I am using a custom target platform for developing in eclipse and had to add the eclipse\features folder via Window->Preferences ->Plug-in Development-> Target Platform->Edit->Locations->Add...->Features

I hope this will help somebody in the future.
 Topic: Cannot be resolved to a type error
Re: Cannot be resolved to a type error [message #1592233 is a reply to message #1591495] Fri, 30 January 2015 00:47
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3297
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 01/29/2015 08:14 AM, CHRISTOPHER LEE wrote:
> so i need to post my question on using ADT there? Btw how to import it
> into my library?? i'm new to eclipse....teach me pls~~~
>

The Zephyr library will be a JAR whose name contains Zephyr. Depending
on how you organize your project, whether you use Maven, etc. will
determine how to get it into your project.

The simple, easy to understand way is to right-click your project in the
Package/Project Explorer view, choose Build Path, then click the Library
tab and choose External JARs. Go find it in your filesystem (I would
suggest dropping it into a subdirectory named lib under your project
until you learn better how to do stuff like this) and add it.

Come back here if you have trouble with the Eclipse (not ADT) details.
We'll tell you when you're asking an ADT question.

Best of luck.
Re: Cannot be resolved to a type error [message #1592623 is a reply to message #1592233] Fri, 30 January 2015 06:09
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
Hi Bateman, very thank for yr explanation, i also thinj that i need to add the classes imto my library. But i am new for eclipse and this is my 1st time to import existing project which is i download it from internet....i would like to ask where can i find the JARs file? Izzit it can find it on the folder which i was downloaded??
Re: Cannot be resolved to a type error [message #1592718 is a reply to message #1592623] Fri, 30 January 2015 07:23
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
The attachment is the project that i want to import....but fail.....
Re: Cannot be resolved to a type error [message #1592822 is a reply to message #1592718] Fri, 30 January 2015 08:43
CHRISTOPHER LEE is currently offline CHRISTOPHER LEEFriend
Messages: 7
Registered: January 2015
Junior Member
I solve the problem already....thank you all so so so much!!!!!! tq all~~~~~~
 Topic: SWT- ScrolledComposite Scrollbar issue
SWT- ScrolledComposite Scrollbar issue [message #1593012] Fri, 30 January 2015 11:07
Rachana Shewade is currently offline Rachana ShewadeFriend
Messages: 1
Registered: September 2014
Junior Member
We are developing RCP application...
we are using some custom widgets, which are place inside scrolled composite but when maximize/minimize the window, scroll bar disappears and the content is spread all over. Can anyone please suggest how to prevent scroll bar from disappearing?
 Topic: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory
Re: Eclipse will not start on SunOS. libgtk-x11-2.0.so.0: open failed: No such file or directory [message #1593173 is a reply to message #1591944] Fri, 30 January 2015 13:13
Hamed Mohammadi is currently offline Hamed MohammadiFriend
Messages: 43
Registered: May 2010
Location: Shiraz - Iran
Member

You can see full list of SWT packages here:

http://download.eclipse.org/eclipse/downloads/drops4/R-4.4-201406061215/#SWT


 Topic: Overwhelmed!!!
Re: Overwhelmed!!! [message #1593189 is a reply to message #1581506] Fri, 30 January 2015 13:22
Hamed Mohammadi is currently offline Hamed MohammadiFriend
Messages: 43
Registered: May 2010
Location: Shiraz - Iran
Member

Since you know how to program in C++, learning Java is easy for you.

 Topic: Running Eclipse under Windows 7 - Java version issue
Re: Running Eclipse under Windows 7 - Java version issue [message #1593196 is a reply to message #1572416] Fri, 30 January 2015 13:25
Hamed Mohammadi is currently offline Hamed MohammadiFriend
Messages: 43
Registered: May 2010
Location: Shiraz - Iran
Member

Maybe its better to install Java 32 bit on Windows

 Topic: How to access Active IDialog
How to access Active IDialog [message #1593313] Fri, 30 January 2015 14:56
Amol Badgujar is currently offline Amol BadgujarFriend
Messages: 3
Registered: November 2014
Junior Member
Hello Experts,

I have created a RCP application where i am contributing to Eclipse provided search console.There i would like to access active IDialog so i can read some variables/values from the same dialog page.

Thanks in advance,
-Amol
 Topic: general
icon7.gif  general [message #1593395] Fri, 30 January 2015 16:06
Bob Jensen is currently offline Bob JensenFriend
Messages: 1
Registered: January 2015
Junior Member
I like to know if assembly language programming is possible with Eclipse, if so what do I need to do
Thankyou
 Topic: Error after merging two workspace folders
Re: Error after merging two workspace folders [message #1593181 is a reply to message #1591881] Fri, 30 January 2015 13:16
Hamed Mohammadi is currently offline Hamed MohammadiFriend
Messages: 43
Registered: May 2010
Location: Shiraz - Iran
Member

Delete projects from the folder that you now have an archive of it from the second folder then import projects from that archive to your workspace.

Re: Error after merging two workspace folders [message #1593539 is a reply to message #1591881] Fri, 30 January 2015 18:22
Rob Lewis is currently offline Rob LewisFriend
Messages: 7
Registered: December 2014
Junior Member
Deleting the project without deleting the files on disk went OK. But when I tried to re-import it, it kept saying the project already existed, and the checkbox to select it was grayed out.

I made it work by creating a new project, and specifying its directory as the one containing the existing project files. It didn't complain about that and it seems to be OK so far.

So the advice to "import" the project doesn't seem to be quite right. But anyway, I think the issue is resolved, thanks.
Forum: Kura
 Topic: Remote debug from Eclipse
Re: Remote debug from Eclipse [message #1593497 is a reply to message #1592103] Fri, 30 January 2015 17:42
David Woodard is currently offline David WoodardFriend
Messages: 17
Registered: July 2014
Junior Member
Hello Dan,

I need to put up a quick tutorial on this, but in the mean time you can review this thread [1] from the mailing list. I have not verified this on Windows, but it does work on Linux/OS X. Let me know if you run into problems.

[1] http://dev.eclipse.org/mhonarc/lists/kura-dev/msg00143.html

Thanks,
--Dave
 Topic: Metatype configuration supported data types - tables/lists?
Re: Metatype configuration supported data types - tables/lists? [message #1593563 is a reply to message #1592110] Fri, 30 January 2015 18:43
David Woodard is currently offline David WoodardFriend
Messages: 17
Registered: July 2014
Junior Member
Hi Dan,

The metatype configuration files adhere to the OSGi Compendium spec (v4.3) [1] for the Metatype Service. If you haven't, it is properly worth reading the sections on Configuration Admin and Metatype Service. The spec states that the Metatype Service is only intended for simple data types. As you may have noticed, Kura displays these attribute definitions as:

if options are present => display drop down list
if type is boolean => display true/false radio buttons
else => display input box

The tabs you described are not using the Metatype Service or Configuration Admin. They are using internal data models to track changes made through the web UI. For dealing with a large set of inputs, I would recommend using a configuration file or for GPIO have a look at the device I/O features [2] we recently added. Otherwise, I think you would need to extend the UI and create your own custom tab.

Let me know if I can clarify anything further.

[1] http://www.osgi.org/Release4/Download
[2] http://eclipse.github.io/kura/doc/kura-dio-apis.html

Thanks,
--Dave

Forum: scout
 Topic: OutlinePage with Form only?
OutlinePage with Form only? [message #1593545] Fri, 30 January 2015 18:26
Justin B is currently offline Justin BFriend
Messages: 10
Registered: January 2015
Location: New Jersey, USA
Junior Member
Perhaps I have misunderstood the OutlinePage but should it not be possible to have a outlinepage that displays only a form in the view part and not underlying table? This would be useful to have a page that contains a some field such as a browser field to interact with the web directly from inside a desktop application. Perhaps this is already possible but I see no documentation about this anywhere.

Any help would be appreciated.


[Updated on: Fri, 30 January 2015 19:04]

Report message to a moderator

Re: OutlinePage with Form only? [message #1593599 is a reply to message #1593545] Fri, 30 January 2015 19:18
Justin B is currently offline Justin BFriend
Messages: 10
Registered: January 2015
Location: New Jersey, USA
Junior Member
For anyone having the same problem I discovered a solution that I tried but didn't work the first time but it now seems to work.

An example is a Dashboard Page.
In the DashboardOutline class I create a child page:
@Override
  protected void execCreateChildPages(List<IPage> pageList) throws ProcessingException {
    DashboardPage dashBoard = new DashboardPage();
    pageList.add(dashBoard);
  }


In the DashboardPage create:
  @Override
  protected void execPageActivated() throws ProcessingException {
    DashboardForm form = new DashboardForm();
    setDetailForm(form);
    form.activate();
  }


Hope this can help someone.
Forum: PHP Development Tools (PDT)
 Topic: How to show open file in PHP Explorer?
How to show open file in PHP Explorer? [message #1593546] Fri, 30 January 2015 18:29
Dave H is currently offline Dave HFriend
Messages: 16
Registered: January 2015
Junior Member
When I do a search, I can right-click on a file result and select Show In > PHP Explorer, which selects the file (so I end up in its folder), but I need that functionality for open files if I don't remember where I found them.

I can do that in NetBeans by right-clicking the open file tab, but doing that in Eclipse only gives close options; I think I used a keyboard shortcut years ago, but I can't find it now.
Re: How to show open file in PHP Explorer? [message #1593552 is a reply to message #1593546] Fri, 30 January 2015 18:33
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 74
Registered: March 2013
Member
Same as on netbeans. Ctrl + shift + r. Write select enter Wink

Re: How to show open file in PHP Explorer? [message #1593620 is a reply to message #1593552] Fri, 30 January 2015 19:39
Dave H is currently offline Dave HFriend
Messages: 16
Registered: January 2015
Junior Member
Oh Thanks Smile I didn't know it was that in NetBeans either.

What do you mean by Write select enter?
Pages (3): [ «    1  2  3    »]


Current Time: Fri Jan 30 20:24:05 GMT 2015

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

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