Eclipse Community Forums
Forum Search:

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

Forum: P2
 Topic: P2 seeing new software, yet not counting it as an upgrade
P2 seeing new software, yet not counting it as an upgrade [message #1586635] Tue, 27 January 2015 00:07
Vadim Peretokin is currently offline Vadim PeretokinFriend
Messages: 30
Registered: July 2009
Member
I'm having an issue where Eclipse's 'check for updates' feature is not registering any new updates, yet looking at the repository confirms the new version (different from the installed version) and installing the new software works fine.

What could be the issue?

There's nothing out of the ordinary in the .log file either as related to p2.

index.php/fa/20605/0/

index.php/fa/20606/0/

index.php/fa/20607/0/
  • Attachment: image002.png
    (Size: 257.11KB, Downloaded 16 times)
  • Attachment: image001.png
    (Size: 86.64KB, Downloaded 15 times)
  • Attachment: image003.png
    (Size: 11.54KB, Downloaded 15 times)
Forum: Gemini
 Topic: Gemini Blueprint Spring 4 support
Re: Gemini Blueprint Spring 4 support [message #1586731 is a reply to message #1565470] Tue, 27 January 2015 01:21
Marcos Scriven is currently offline Marcos ScrivenFriend
Messages: 6
Registered: August 2014
Junior Member
Hi Dmitry

Our project is still depending on an internally built version of Gemini, any ideas when you're planning to release an RC?


Forum: Web Tools Project (WTP)
 Topic: Breakpoint on JSP does not work in Kepler
Re: Breakpoint on JSP does not work in Kepler [message #1587121 is a reply to message #1580530] Tue, 27 January 2015 06:42
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2359
Registered: July 2009
Senior Member
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.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=WTP%20Source%20Editing&component=jst.jsp


---
Nitin Dahyabhai
Eclipse WTP, IBM
Forum: SWTBot
 Topic: SWTBot Figurecanvas use
SWTBot Figurecanvas use [message #1587128] Tue, 27 January 2015 06:49
Vishnu VK is currently offline Vishnu VKFriend
Messages: 1
Registered: January 2015
Junior Member
index.php/fa/20611/0/I need to perform actions, such as Right-click on a node and do necessary actions. When I used Spyview this is what I got:

Location:
//Shell/-1//Composite/4//Composite/0//Composite/13//Composite/0//PageBook/0//TabbedPropertyComposite/3//LayoutComposite/0//ScrolledComposite/1//LayoutComposite/0//LayoutComposite/0//LayoutComposite/0//LayoutComposite/0//MasterDetailsBlock$MDSashForm/0//LayoutComposite/0//LayoutComposite/0//FigureCanvas/0

Layout Information:
FigureCanvas {}
Style: HORIZONTAL | VERTICAL | NO_BACKGROUND | NO_REDRAW_RESIZE | LEFT_TO_RIGHT
Layout Data: org.eclipse.swt.layout.FillData@ac8f2f
Bounds: Rectangle {0, 0, 932, 203}


Children: 0

Siblings: 1
[*]FigureCanvas {}: Layout Data: org.eclipse.swt.layout.FillData@ac8f2f

How do I select the node?
  • Attachment: Swtbot.PNG
    (Size: 9.15KB, Downloaded 14 times)
Forum: JFace
 Topic: [JFace] Image of ControlDecoration is visible outside composite when the scrolling a composite
[JFace] Image of ControlDecoration is visible outside composite when the scrolling a composite [message #1587166] Tue, 27 January 2015 07:18
Florian Klein is currently offline Florian KleinFriend
Messages: 5
Registered: May 2014
Junior Member
Hi,

we are facing a layout bug in JFace which is already described in [1].
I've already posted a comment in this bug but it seems that the bug is out of date and no one cares anymore.
Do you have any updates/solutions on that?

Thanks and best regards,
Florian



[1] Bug 339663
Forum: Equinox
 Topic: DS ignores service.ranking?
Re: DS ignores service.ranking? [message #1587192 is a reply to message #891524] Tue, 27 January 2015 07:35
Martin Neubig is currently offline Martin NeubigFriend
Messages: 1
Registered: January 2015
Junior Member
Hi Gunnar,

thx for this information. I had same problem, now i could solve!

Martin
Forum: Oomph
 Topic: Reference online .setup on https server with ssl-certificate signed by unknown CA
Re: Reference online .setup on https server with ssl-certificate signed by unknown CA [message #1586937 is a reply to message #1586298] Tue, 27 January 2015 04:12
Eike Stepper is currently offline Eike StepperFriend
Messages: 5628
Registered: July 2009
Senior Member
Hi Christian,

Please submit a bugzilla for this problem.

The model loader (ECFURIHandlerImpl) has been developed by Ed and he's just started a long vacation. I'm not very
familiar with these SSL things, so maybe you can help us and provide a patch through Gerrit?

Cheers
/Eike

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



Am 26.01.2015 um 20:44 schrieb Christian D:
> Hello,
>
> we want to move our .setup file from a shared drive into our git repository. The repository can be accessed via https
> and authentication. I've already seen there is a https://www.eclipse.org/forums/index.php/t/956285/
> But there is a second problem. The ssl-certificate is signed by a company intern CA, which was not registered in Java.
> When trying to add the setup file, Oomph responds with: "The URI '...' does not contain a valid project".
> I had to debug Oomph to find that the SSL Handshake fails. Adding the CA to Java fixes the problem. Probably this is
> also the right solution to fix the problem.
> Nevertheless, it would be nice, if at least the error message of Oomph was more specific. If possible, you could also
> include the option to trust a certificate or CA right there.
 Topic: [Installer] Default bundle pool location
Re: [Installer] Default bundle pool location [message #1587205 is a reply to message #1586033] Tue, 27 January 2015 07:50
Gabriel Pascual is currently offline Gabriel PascualFriend
Messages: 19
Registered: April 2013
Location: Laval, France
Junior Member
Hi Eike,

I think the launcher can not access to location of OSGi bundle because this location is encoded to unicode in generated configuration file (config.ini) of the Launcher.
This bug[1] is similar to my problem and it has helped me to find the cause.

I finally found a workaround to resolve the problem. I created a new agent with the Oomph Installer and I deleted the default agent.
The new built IDE tragets the good location for its bundle pool and the launcher works fine now.

The problem can be reproduced only on Windows which allows accent in path.

The question now is how can I change the Bundle Agent through the bundle pool preference/dialog ?
It seems that the Oomph profile is stored in bundle pool and if the bundle is changed, the profile has to duplicate/copy to the new one.
I didn't see the notion of current bundle pool in Oomph settings.

Regards

Gabriel

[1]: bug 451401


Software Development Engineer
ALL4TEC
Forum: WindowBuilder
 Topic: Different behaviour of JTextField and other components
Re: Different behaviour of JTextField and other components [message #1587218 is a reply to message #1564535] Tue, 27 January 2015 07:55
mac deLonghi is currently offline mac deLonghiFriend
Messages: 2
Registered: January 2015
Location: Stuttgart
Junior Member
Thanks a lot!
I agree on the different roles of labels and textfields, even though in our project it is necessary to access and change both.

I didn't know that it is possible to configure this behaviour. That would do for me.
I have read through the WindowBuilder Docs (if eclipse.org/windowbuilder/documentation.php is what you mean), but I couldn't find any hints on configuration.

Could you tell me, what to look for?

Thanks.
Forum: Eclipse Process Manager (Stardust)
 Topic: IPP Artifactory and Create Maven Project
Re: IPP Artifactory and Create Maven Project [message #1587076 is a reply to message #1579869] Tue, 27 January 2015 06:07
Rajkumar Dangi is currently offline Rajkumar DangiFriend
Messages: 7
Registered: November 2014
Location: Pune, India
Junior Member
Hi Suresh,

Just couple of points which might help you to investigate root cause.
1. re-check if correct "settings.xml" is being used. i mean if this is picking up settings.xml in the ${maven.home}/conf/ folder or in the .m2 folder in the user's $home (on Windows: %homepath%) directory.

2. Is there any proxy configured for your network. If yes then you need to configure same in "settings.xml" like this:
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>PROXY HOST</host>
<port>PROXY PORT</port>
<nonProxyHosts>localhost|......</nonProxyHosts>
</proxy>
<proxy>
<active>true</active>
<protocol>https</protocol>
<host>PROXY HOST</host>
<port>PROXY PORT</port>
<nonProxyHosts>localhost|......</nonProxyHosts>
</proxy>
</proxies>

3. Which maven version are you using if you are using maven 3.0.4 and downloading dependencies behind a proxy , In this case either switch to Maven version 3.0.3 or download the following jar:
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-http-lightweight/2.2/wagon-http-lightweight-2.2.jar
and add it to the lib/ext folder in your Maven installation.

I hope above points will help us to find out the issue.
 Topic: Structure data type
Structure data type [message #1587153] Tue, 27 January 2015 07:06
A G is currently offline A GFriend
Messages: 7
Registered: January 2015
Junior Member
Hi,

I have a structure data type Product (with properties id,name) and an activity(Enter product info) with out data mappings for id name. It works fine. The model deploy succussfully and works.

If I define an another structure Item(name, quantity) and Product contains this structure type also. Product elements are - id, name, item.

Now if I define any out data mapping in activity "Enter Product information" for item name pointing to Product->Item->Name, when deploying the model I get following exception -

Data path is not valid for data mapping '/OUT/default/ItemName' in activity 'EnterProduct'
Re: Structure data type [message #1587252 is a reply to message #1587153] Tue, 27 January 2015 08:22
Rajkumar Dangi is currently offline Rajkumar DangiFriend
Messages: 7
Registered: November 2014
Location: Pune, India
Junior Member
Hi AG,

Could you please share your model ? i need to check it seems some data path mapping is missing in your model.

-Thanks
RajKumar
Forum: Kura
 Topic: Decode kura MQTT message using third party client libraries
Re: Decode kura MQTT message using third party client libraries [message #1587355 is a reply to message #1586555] Tue, 27 January 2015 09:41
Dan Cristian is currently offline Dan CristianFriend
Messages: 8
Registered: January 2015
Junior Member
Hi Dave,

Many thanks for your guidance, this helps me to progress towards finding a solution.

By "google protobuf-net library" I meant a C# library that I thought could help me so I don't write the decoding bit from scratch: https://code.google.com/p/protobuf-net/.

Will post my progress in this thread.

Best
Dan
Forum: Mylyn Intent
 Topic: Intent Compare Editor Issue
Intent Compare Editor Issue [message #1587279] Tue, 27 January 2015 08:40
furkan tanrıverdi is currently offline furkan tanrıverdiFriend
Messages: 6
Registered: November 2014
Junior Member
Hi all,

First of all, not being able to share links made me mad.

Just couple of days started to Intent. I read the article EclipseConEurope at the first place to understand what Intent does and how. By the way, I must say that videos on that presentation are not working.

Then I tried to implement Intent/Getting_Started tutorial. But, I ran into a problem(maybe its not a problem, I dont know yet ). I am sharing my screenshots attached. You can see what I except from intent and what I encountered.

Kind regards


  • Attachment: 1.PNG
    (Size: 147.50KB, Downloaded 0 times)
  • Attachment: 2.PNG
    (Size: 57.31KB, Downloaded 0 times)
  • Attachment: 3.PNG
    (Size: 166.94KB, Downloaded 0 times)
Re: Intent Compare Editor Issue [message #1587356 is a reply to message #1587279] Tue, 27 January 2015 09:43
furkan tanrıverdi is currently offline furkan tanrıverdiFriend
Messages: 6
Registered: November 2014
Junior Member
tutorial:https://wiki.eclipse.org/Intent/Getting_Started
EclipseCon Presentationhttps://www.eclipse.org/intent/pages/transcripts/2012_AgileALMConnect/img16.html
Forum: Sirius
 Topic: Different properties view?
Re: Different properties view? [message #1587341 is a reply to message #1585820] Tue, 27 January 2015 09:30
Steve Monnier is currently offline Steve MonnierFriend
Messages: 83
Registered: May 2011
Member
Hello,

We have some JUnit test where the ODesign is modified for the purpose of
the test, but in the common usage of Sirius it should not be modified
and needing saving. Especially, if the odesign is in the plugins.
You can try to override it but you can experience drawbacks in
performances and unstability.

Best regards,
Steve

Le 26/01/2015 14:58, Max Bureck a écrit :
> Hi,
>
> I debugged the Sirius code to determine why changes to .odesign files
> are not saved. In method
> org.eclipse.sirius.business.internal.session.danalysis.ResourceSaveDiagnose#isSaveable()
>
> There is an explicit check if a file to be saved is an Odesign model. If
> this is the case, the method returns false.
> I was not able to get in this state, without explicitly adding an
> Odesign model to an .aird file via the UI and then modify this. Are
> there situations where an Odesign model would actually be saved
> accidentally, if this check would be omitted?
>
> Thanks and best regards,
> Max


--
Steve Monnier - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius
 Topic: Sub-containers on diagram inside same container
Sub-containers on diagram inside same container [message #1587348] Tue, 27 January 2015 09:36
sninja sninja is currently offline sninja sninjaFriend
Messages: 18
Registered: October 2013
Junior Member
Hi,
Been using Sirius for a while, it's working great, but now I want to use sub-containers and I have a problem.

Example: House is a container and rooms are sub-containers. I have edge relations between houses and edge relations between rooms inside a house.

I know how to create house container and edge relation between house containers and everything works fine.

Using same principle, I create kitchen container and bathroom container inside house container, and I create edge relation between kitchen and bathroom containers.

Now I want to create tools for diagram. I create house container as parallelogram with child elements as free form. I create kitchen and bathroom containers and everything shows on diagram. I click on house container, it shows on diagram, then I click on kitchen and it shows, also like that for bathroom.

1. problem:
Set name under Create instance, which enables me to show custom name for container on diagram, works for house container, but not for kitchen and bathroom sub-containers. It always stays in form of label, like it doesn't sees name feature. It works for house container.

2. problem
Edge relation won't show on diagram when I use mouse, but when I use model editor to define relation between kitchen and bathroom, it shows on diagram after.

So, everything is good when I use model editor, but through diagram I can't create edge relation to be visible. Once again, everything works on container level, but on sub-container level I have problems.

I suspect that solution lies somewhere in Change context option, maybe I don't define something for sub-containers and their edge relations to be visible on diagram inside container...

Bonus question:
One more thing, how to put name of the node inside lozenge shape? I use free form for children. I saw in documentation example of that, but no instructions.

Thanks upfront


Re: Sub-containers on diagram inside same container [message #1587369 is a reply to message #1587348] Tue, 27 January 2015 09:50
sninja sninja is currently offline sninja sninjaFriend
Messages: 18
Registered: October 2013
Junior Member
Hi, small update...

I apologize, I just solved 1 problem and bonus question.

For the 1 problem, my label expression was fixed instead of [self.name/], and for the bonus question, I changed label position from border to node.

Sorry about that.

So, it's just about edge relation between sub-containers not showing inside container when I try to create it on diagram.

Thanks again

[Updated on: Tue, 27 January 2015 09:51]

Report message to a moderator

Forum: Standard Widget Toolkit (SWT)
 Topic: First row not drawn on SWT Table + OS X 10.10 Yosemite
Re: First row not drawn on SWT Table + OS X 10.10 Yosemite [message #1586648 is a reply to message #1586604] Tue, 27 January 2015 00:18
Jim Klo is currently offline Jim KloFriend
Messages: 32
Registered: September 2012
Member
Thanks again. Is there a guide somewhere on how to update SWT within and RCP application? It's not exactly clear to me how I would do this since I'm used to just declaring the plug-in dependency and it just works. Similarly, it would have to work with Tycho.

Thomas Schindl wrote on Mon, 26 January 2015 18:44
At least to the latest SWT bits - they are backwards compat with 3.x so
you can even drop the new binaries in a 3.x RCP

Tom

 Topic: ColorDialog that supports alpha
ColorDialog that supports alpha [message #1587398] Tue, 27 January 2015 10:15
Valerio Santinelli is currently offline Valerio SantinelliFriend
Messages: 35
Registered: January 2012
Member
Is there any way to have the ColorDialog let the user choose the alpha/transparency of the color he's choosing?
Forum: BIRT
 Topic: Page Break when displaying large text
Page Break when displaying large text [message #1587083] Tue, 27 January 2015 06:12
Sachin Rajmane is currently offline Sachin RajmaneFriend
Messages: 12
Registered: May 2013
Junior Member
Hi Birt Experts,

I know, this issue is there from quite long time, I just want to know if it is resolved or not.

And if yes, then how.

I am attaching sample report for more explanation.

Issue is, when there is large text data which cant fit in a single page, is in detail section of table, it gets page break, and header gets printed on first page where as text gets printed on second page.

I want header and text on same page.

Please let me know, if there is any solution/workaround for this.
  • Attachment: test.pdf
    (Size: 2.61KB, Downloaded 2 times)
  • Attachment: test.rptdesign
    (Size: 38.39KB, Downloaded 2 times)
 Topic: What is the alternative to DrillDownGroupLevel function in Birt?
What is the alternative to DrillDownGroupLevel function in Birt? [message #1587084] Tue, 27 January 2015 06:14
Saikat Mukherjee is currently offline Saikat MukherjeeFriend
Messages: 2
Registered: January 2015
Junior Member
How to implement drilldowngrouplevel as in crystal reports to drill down group levels in birt.
For eg. DrillDowngroupLevel > 1.
I've a situation where I'm unable to get the 'section expert' (as in crystals) to
Hide(Drill-Down Ok) and
Suppress(No Drill-Down)
to attain the similar functionality.
Is there a way or alternative to achieve the same?
 Topic: Manage pagination for tables
Re: Manage pagination for tables [message #1587251 is a reply to message #1585952] Tue, 27 January 2015 08:22
Gorka J. is currently offline Gorka J.Friend
Messages: 3
Registered: January 2015
Junior Member
Hello,
Can someone do an example of "BIRT REPORT" with a table that keeps the format and is adjusted to 100% with the lateral margins and if it contains more than 100 records to be more than a page without losing the style?

Thank You
 Topic: Exception when displaying a Report (as html)
Re: Exception when displaying a Report (as html) [message #1587411 is a reply to message #1586297] Tue, 27 January 2015 10:21
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 377
Registered: July 2009
Senior Member
oops, thats an important information i forgot to mention (as i only use birt in an eclipse RCP - it was obvious to myself - not obvious for you - SORRY!)
Forum: EGit
 Topic: Java Project Git Tag Changed From master to NO-HEAD
Re: Java Project Git Tag Changed From master to NO-HEAD [message #1586662 is a reply to message #1586299] Tue, 27 January 2015 00:25
Ron Westfall is currently offline Ron WestfallFriend
Messages: 3
Registered: January 2015
Junior Member
I have resolved the problem.

I right clicked on the project and used Team -> Disconnect to disconnect eGit from the repository. I then right clicked on the project and used Delete (without removing project content from disk!!!) to remove the project from Eclipse.

I then used the Eclipse File menu to import a Git project from an existing local repository (.../GitRepositories/Foo/.git).

Once I had done this for all of my projects, I deleted the empty .../GitRepositories/.git directory that had mysteriously been created.

I still don't know how the problem occurred in the first place. I had upgraded to Luna recently, but I am not sure if I had done this near the time when this problem showed up.
 Topic: is there any way to pull a subdirectory from a git repo using jGit
Re: is there any way to pull a subdirectory from a git repo using jGit [message #1586810 is a reply to message #667509] Tue, 27 January 2015 02:28
rupert THURNER is currently offline rupert THURNERFriend
Messages: 5
Registered: July 2009
Junior Member
(how) would it be possible to later on merge another subtree of the same source-branch?
 Topic: How to do "git log --oneline --decorate" in JGit
Re: How to do "git log --oneline --decorate" in JGit [message #1587185 is a reply to message #1586413] Tue, 27 January 2015 07:32
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 116
Registered: July 2009
Senior Member
That's a functionality exposed by the pgm package. The org.eclipse.jgit.pgm.Log class exposes the "decorate" option. You can lookup there [1] how it is done.

[1] https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Log.java


Ciao
Chris
 Topic: Missing unknown when doing pull
Re: Missing unknown when doing pull [message #1587424 is a reply to message #1480602] Tue, 27 January 2015 10:35
Mattias Andersson is currently offline Mattias AnderssonFriend
Messages: 1
Registered: January 2015
Junior Member
Hi Matthias,

Have you been able to reproduce this problem? If not is there anything else I could do to help you out?

Br,
/Mattias
Forum: EclipseLink
 Topic: Duplicate schema for sequence table
Re: Duplicate schema for sequence table [message #1587560 is a reply to message #1434568] Tue, 27 January 2015 12:18
vashistha kumar is currently offline vashistha kumarFriend
Messages: 1
Registered: January 2015
Location: UK
Junior Member
I am facing same issue "Duplicate schema name appended to the table generator". my dev environment is on tomcat7 and using eclipseLink2.5.2. I have used orm.xml to change the default schema. A quick response will be highly appreciated.
Forum: C / C++ IDE (CDT)
 Topic: Linking static and DLL files in Eclipse Luna when using MinGW on Windows fails
Linking static and DLL files in Eclipse Luna when using MinGW on Windows fails [message #1587471] Tue, 27 January 2015 11:08
Charles Smith is currently offline Charles SmithFriend
Messages: 9
Registered: May 2011
Junior Member
Hi,

I'm having problems building a simple project using Eclipse Luna and MinGW.

I installed the MQTT broker on Windows 8.1 machine, and noticed that there was folder

called mosquitto in Program Files(86).

Under that folder was another folder called devel.

I aim to build a project in C and use MQTT to publish messages.

I'm not sure which library files to link to.

Is it mosuitto.dll, devel/mosquitto.lib or both.

Setting up Eclipse to search for these files causes errors in that the libraries aren't found.

Has anyone tried to do something similar and succeeded.

Thanks for any help.

[Updated on: Tue, 27 January 2015 11:49]

Report message to a moderator

 Topic: Export project settings (libraries, library paths,...)
Export project settings (libraries, library paths,...) [message #1587629] Tue, 27 January 2015 13:11
Ja Baa is currently offline Ja BaaFriend
Messages: 1
Registered: January 2015
Junior Member
Hello,

I'm looking for a way to export and import project settings with libraries and library paths. I found File -> Export -> C/C++ -> C/C++ Project Settings but there I can only export Include Paths and Symbols. Is there a way to export the library path from one project and import the settings into another project?

Regards
Forum: Java Development Tools (JDT)
 Topic: Search for filename patterns is case sensitive on osx
Search for filename patterns is case sensitive on osx [message #1587648] Tue, 27 January 2015 13:27
Karl Gustav is currently offline Karl GustavFriend
Messages: 1
Registered: January 2015
Junior Member
Is there any chance to disable the case sensitive search on filenames on eclipse Kepler Service Release 2 ?
Forum: NatTable
 Topic: 1.2 Release
1.2 Release [message #1587661] Tue, 27 January 2015 13:37
Evan O\'Connell is currently offline Evan O\'ConnellFriend
Messages: 13
Registered: August 2013
Junior Member
Noticed on the project page it has 2015-01-28 as the release date for 1.2. Is this still the case?

https://projects.eclipse.org/projects/technology.nebula.nattable
Re: 1.2 Release [message #1587671 is a reply to message #1587661] Tue, 27 January 2015 13:43
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1464
Registered: July 2012
Senior Member
I hope it is the case. I'm still waiting for the release review results. From the NatTable project point of view, we are ready to go.
Forum: EMF "Technology" (Ecore Tools, EMFatic, etc)
 Topic: do I have the correct download for the EMF plugin
Re: do I have the correct download for the EMF plugin [message #1586699 is a reply to message #1586475] Tue, 27 January 2015 00:55
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 863
Registered: July 2009
Senior Member
Hi,

It depends on what you mean by "correct".

The package that you downloaded includes the June 2014 release of EMF
plus a great many other plug-ins that you may or may not need. It is
intended as a development workbench for working with a variety of the
modeling technologies provided by Eclipse. It is by no means a
"download" of the "EMF plug-in" (note that EMF comprises several
plug-ins, perhaps two dozen)

Also, there has, since this time, been at least one service release of
the Modeling Package that you downloaded (the "Luna SR1").

In any case, if what you really need is downloads of EMF plug-ins, your
best bet is to direct either your Eclipse installation's "Install New
Software..." dialog or your PDE Target to the EMF p2 site repository
for the latest (Luna/2.10) release:

http://download.eclipse.org/modeling/emf/emf/updates/2.10.x/

HTH,

Christian


On 2015-01-26 22:03:33 +0000, sydney faria said:

> I downloaded eclipse-modeling-luna-R-win32-x86-64.zip from the Eclipse
> download site and thought that the plugin was for the EMF plugin. This
> may be the correct package but I would like to verify that I have the
> correct download for the EMF plugin. Does someone know for sure that I
> have to correct zip file for this plugin?
 Topic: [EMF Forms] How do i integrate into Properties View
[EMF Forms] How do i integrate into Properties View [message #1587431] Tue, 27 January 2015 10:38
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6629
Registered: July 2009
Senior Member
Hi,

what do i have to do if i want to integrate into the default EMF Tree Editors Properties view.

Thanks
Christian
Re: [EMF Forms] How do i integrate into Properties View [message #1587672 is a reply to message #1587431] Tue, 27 January 2015 13:44
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6629
Registered: July 2009
Senior Member
Here is what i've got so far but i hoped to find something generic

public class AbstractPropertySection4 extends AbstractPropertySection {

	private Composite container;

	@Override
	public void createControls(Composite parent, TabbedPropertySheetPage atabbedPropertySheetPage) {
		final GridData parentData = new GridData(SWT.FILL, SWT.FILL, true, true);
		parent.setLayout(new GridLayout(1, true));
		parent.setLayoutData(parentData);
		super.createControls(parent, atabbedPropertySheetPage);
		final Composite composite = new Composite(parent, SWT.FILL);
		composite.setLayout(new GridLayout(1, true));
		composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));

		final ScrolledComposite scrolledComposite = new ScrolledComposite(composite, SWT.V_SCROLL | SWT.H_SCROLL);
		scrolledComposite.setShowFocusedControl(true);
		scrolledComposite.setExpandVertical(true);
		scrolledComposite.setExpandHorizontal(true);
		GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(scrolledComposite);
		scrolledComposite.setLayout(GridLayoutFactory.fillDefaults().create());
		scrolledComposite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WHITE));

		container = new Composite(scrolledComposite, SWT.FILL);
		final GridLayout containerLayout = GridLayoutFactory.fillDefaults().create();
		containerLayout.marginLeft = 10;
		containerLayout.marginRight = 10;
		container.setLayout(containerLayout);

		GridDataFactory.fillDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).applyTo(container);
		container.setBackground(scrolledComposite.getBackground());
		scrolledComposite.setContent(container);
		container.addPaintListener(new PaintListener() {

			@Override
			public void paintControl(PaintEvent e) {
				// super.paintControl(e);
				final Point point = container.computeSize(SWT.DEFAULT, SWT.DEFAULT);
				scrolledComposite.setMinSize(point);
				container.layout(true);
				scrolledComposite.layout(true);

			}
		});
		container.addControlListener(new ControlListener() {

			@Override
			public void controlResized(ControlEvent e) {
				final Point point = container.computeSize(SWT.DEFAULT, SWT.DEFAULT);
				scrolledComposite.setMinSize(point);
				container.layout(true);
				scrolledComposite.layout(true);

			}

			@Override
			public void controlMoved(ControlEvent e) {
				final Point point = container.computeSize(SWT.DEFAULT, SWT.DEFAULT);
				scrolledComposite.setMinSize(point);
				container.layout(true);
				scrolledComposite.layout(true);
			}
		});

	}

	@Override
	public void setInput(IWorkbenchPart part, ISelection selection) {
		super.setInput(part, selection);
		if (selection instanceof IStructuredSelection) {
			final Object firstElement = ((IStructuredSelection) selection).getFirstElement();
			if (firstElement instanceof EObject) {
				try {
					for (final Control control : container.getChildren()) {
						control.dispose();
					}
					final ECPSWTView view = ECPSWTViewRenderer.INSTANCE.render(container, (EObject) firstElement);
				} catch (final ECPRendererException ex) {
					ex.printStackTrace();
				}
			}
		}

	}
}
Forum: EMF
 Topic: [xcore] String + String operation fails
Re: [xcore] String + String operation fails [message #1586655 is a reply to message #1560257] Tue, 27 January 2015 00:25
Rainer Menke is currently offline Rainer MenkeFriend
Messages: 7
Registered: July 2009
Junior Member
Hi Martin,

It seems, that I have a similar issue. I created an xcore file, to replace my existing ecore file for the usage of Sirius and Acceleo. I found, that the Acceleo templates now require an explicit calling of toString() in the usage of xcore where in the ecore case a simple access was sufficient. I look on the ecore file, which was generated from the xcore

class ... {
        ...
	@ExtendedMetaData(kind="attribute", name="theme" )
	unique org.eclipse.emf.ecore.xml.^type.String theme
}

and found

    <eStructuralFeatures xsi:type="ecore:EAttribute" name="theme" eType="ecore:EDataType ../../org.eclipse.emf.ecore/model/XMLType.ecore#//String">
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
        <details key="kind" value="attribute"/>
        <details key="name" value="theme"/>
      </eAnnotations>
    </eStructuralFeatures>


whereas in ( original ) ecore it was modelled as

<eStructuralFeatures xsi:type="ecore:EAttribute" name="theme" eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
      <eAnnotations source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
        <details key="kind" value="attribute"/>
        <details key="name" value="theme"/>
      </eAnnotations>
    </eStructuralFeatures>


It seems like Acceleo is unable to resolve the type of the variable, because the type for it is resolved as null. I think, your issue can belong to this.
 Topic: do I have the correct download for the EMF plugin
Re: do I have the correct download for the EMF plugin [message #1586700 is a reply to message #1586497] Tue, 27 January 2015 00:57
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 863
Registered: July 2009
Senior Member
Hi,

See my reply on the EMFT newsgroup, which evidently was not a cross-post.

In future, if you need to post the same message to multiple newsgroups,
please cross-post the one message; don't post multiple distinct
messages.

Cheers,

Christian

On 2015-01-26 22:19:50 +0000, sydney faria said:

> I download the following file: Eclipse-modeling-luna-R-win32-x86-64.zip
> from the Eclipse download site for the EMF plugin and would like to
> verify that this is indeed the correct zip file for the Eclipse EMF
> plugin. I think this is the correct file, but I would like to verify
> it before unzipping it. Should I import the zip file into Eclipse to
> add this plugin?
 Topic: XMI Files: Referencing Metamodel from Classpath
XMI Files: Referencing Metamodel from Classpath [message #1587304] Tue, 27 January 2015 09:02
Jamie Astin is currently offline Jamie AstinFriend
Messages: 1
Registered: January 2015
Junior Member
Hello everyone,

I am relatively new to the EMF community, and was hoping someone could provide some insight into my problem.

I am producing an Xpand project, which will be distributed as part of a framework. I will be shipping a JAR to other people who wish to consume this framework. It is intended that within this JAR I will provide the metamodel in ecore format, and the relevant Xpand files (xpt, Checks.chk and Extensions.ext).

Consuming projects will then simply need to implement the metamodel in a XMI file, and have a mwe2 file which describes how to invoke the code generator.

Working with the example project, I am envisaging the following:

modelling-framework.jar
    /metamodel/Checks.chk
    /metamodel/Extensions.ext
    /metamodel/metamodel.ecore
    /template/GeneratorExtensions.ext
    /template/Template.xpt

consuming-project (Eclipse Project)
   /src/Model.xmi
   /src/workflow/generator.mwe2


Looking at the Model.xmi file that is created with the sample project, the reference from the XMI model to the underlying metamodel seems to be established in the root tag:

<metamodel:Model xmi:version="2.0" 
    xmlns:xmi="//www.omg.org/XMI" 
    xmlns:xsi="//www.w3.org/2001/XMLSchema-instance"
    xmlns:metamodel="//www.example.org/metamodel"
    xsi:schemaLocation="//www.example.org/metamodel metamodel/metamodel.ecore">


As far as I can establish, this is being facilitated by the relative path 'metamodel/metamodel.ecore'.

If I have both the "modelling-framework" and "consuming-project" as two eclipse projects in the same workspace, I can change this relative path to:

NOTE: I've had to remove the "http" protocol from the URLs to prevent the Forum software from rejecting my post. D'oh!


<metamodel:Model 
	xmi:version="2.0" 
	xmlns:xmi="//www.omg.org/XMI" 
	xmlns:xsi="//www.w3.org/2001/XMLSchema-instance" 
	xmlns:metamodel="classpath:/metamodel/metamodel.ecore" 
	xsi:schemaLocation="//www.example.org/metamodel">


This use of "classpath:/metamodel/metamodel.ecore" is successful. However, if I only have "consuming-project" in my workspace, and reference a built jar of "modelling-framework", I receive the following error:

Couldn't find resource on classpath : classpath:/metamodel/metamodel.ecore


I have checked the built jar file, and I can confirm that the ecore file is present at the specified path. In fact, the following code (in the "consuming-project" yeilds a JarURLConnection:

System.out.println(TestClass.class.getResourceAsStream("metamodel/metamodel.ecore"));


Is there some magic to refer to a metamodel from within a JAR file?

Any pointers would be greatly appreciated,

Thanks,

Jamie.
Pages (2): [1  2    »]


Current Time: Tue Jan 27 14:33:56 GMT 2015

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

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