Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsRe: Help finishing the tutorial
https://www.eclipse.org/forums/index.php/mv/msg/1113578/1860855/#msg_1860855
I have now uninstalled and reinstalled Eclipse as well as all of the required plugins. I am able to run the entirety of the tutorial (https://wiki.eclipse.org/Graphical_Modeling_Framework/Tutorial/Part_1#Setup ) until the very last step where I need to open the mindmap example. The problem I have is that the mindmap does not appear in "examples", and there are also numerous errors in the new Eclipse runtime that pops up when I run the application. Does anyone have any insight on what could be wrong? I have the same issue when I use the tutorial solution that is available online.
Your reply made me realize that I had overlooked some things in the "Setup" part of the tutorial, so I went and installed what was missing. This made the error from my previous post go away, but I am still at a dead end because I now have a different error at the same step (generate diagram code). I think that there is something wrong with my eclipse environment because I don't see what could have possibly gone wrong. Besides, the solution to this tutorial can be found online, and I am unable to run it, which also makes me think that there is something wrong with my eclipse environment. I will try to start over from scratch and see if that helps.]]>Leonard Theisler2023-09-05T14:37:49-00:00Re: Help finishing the tutorial
https://www.eclipse.org/forums/index.php/mv/msg/1113578/1860815/#msg_1860815
Which tutorial are you refering to?
]]>Pierre-Charles David2023-09-04T14:42:42-00:00Help finishing the tutorial
https://www.eclipse.org/forums/index.php/mv/msg/1113578/1860814/#msg_1860814
I am a complete beginner and I will need to use gmf for my bachelor thesis. I have been following the tutorial but I run into a problem when I reach the part where I need to generate teh diagram code. I get a weird error that I have not been able to solve, and I have not seen anything similar online. Is there anyone that knows how to fix this or can point me in the right direction? It seems to be something relating to the compiler, so I think it is relevant to mention that I have set the compliance level to 1.5, but I have had the same issue when it was at 17.]]>Leonard Theisler2023-09-04T14:31:05-00:00Re: GMF Tooling Update
https://www.eclipse.org/forums/index.php/mv/msg/1111097/1860315/#msg_1860315
pavan kumar2023-07-28T06:10:27-00:00org.w3c.dom.events dependency issue with eclipse 2023-06(
https://www.eclipse.org/forums/index.php/mv/msg/1113403/1860280/#msg_1860280
I am getting following error. I see there are two versions of org.apache.batik.*
Looks like, GMF runtime and GMF tooling downloading different versions.
org.w3c.dom.events api is no more available in java11.
How can we use java deprecated api in java11.?
Chain 2:
org.eclipse.gmf.runtime.diagram.ui.printing.render [osgi.identity; type="osgi.bundle"; version:Version="1.9.0.202305230839"; osgi.identity="org.eclipse.gmf.runtime.diagram.ui.printing.render"]
require: (&(osgi.wiring.bundle=org.eclipse.gmf.runtime.draw2d.ui.render.awt)(&(bundle-version>=1.2.0)(!(bundle-version>=2.0.0))))
|
provide: osgi.wiring.bundle; bundle-version:Version="1.11.0.202305230839"; osgi.wiring.bundle="org.eclipse.gmf.runtime.draw2d.ui.render.awt"; singleton:="true"
org.apache.batik.transcoder [osgi.identity; type="osgi.bundle"; version:Version="1.16.0.v20221027-0840"; osgi.identity="org.apache.batik.transcoder"]
import: (&(osgi.wiring.package=org.apache.batik.bridge)(&(version>=1.16.0)(!(version>=2.0.0))))
|
export: osgi.wiring.package=org.apache.batik.bridge; uses:=org.w3c.dom.events
org.apache.batik.bridge [osgi.identity; type="osgi.bundle"; version:Version="1.16.0.v20230210-1249"; osgi.identity="org.apache.batik.bridge"]
import: (osgi.wiring.package=org.w3c.dom.events)
|
export: osgi.wiring.package: org.w3c.dom.events
org.w3c.dom.events [osgi.identity; type="osgi.bundle"; version:Version="3.0.0.draft20060413_v201105210656"; osgi.identity="org.w3c.dom.events"]
at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1852)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1845)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1786)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1750)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1672)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)]]>pavan kumar2023-07-26T13:53:46-00:00org.w3c.dom.events dependency issue with eclipse 2023-06
https://www.eclipse.org/forums/index.php/mv/msg/1113402/1860279/#msg_1860279
I am getting following error. I see there are two versions of org.apache.batik.*
Looks like, GMF runtime and GMF tooling downloading different versions.
org.w3c.dom.events api is no more available in java11.
How can we use java deprecated api in java11.?
Chain 2:
org.eclipse.gmf.runtime.diagram.ui.printing.render [osgi.identity; type="osgi.bundle"; version:Version="1.9.0.202305230839"; osgi.identity="org.eclipse.gmf.runtime.diagram.ui.printing.render"]
require: (&(osgi.wiring.bundle=org.eclipse.gmf.runtime.draw2d.ui.render.awt)(&(bundle-version>=1.2.0)(!(bundle-version>=2.0.0))))
|
provide: osgi.wiring.bundle; bundle-version:Version="1.11.0.202305230839"; osgi.wiring.bundle="org.eclipse.gmf.runtime.draw2d.ui.render.awt"; singleton:="true"
org.apache.batik.transcoder [osgi.identity; type="osgi.bundle"; version:Version="1.16.0.v20221027-0840"; osgi.identity="org.apache.batik.transcoder"]
import: (&(osgi.wiring.package=org.apache.batik.bridge)(&(version>=1.16.0)(!(version>=2.0.0))))
|
export: osgi.wiring.package=org.apache.batik.bridge; uses:=org.w3c.dom.events
org.apache.batik.bridge [osgi.identity; type="osgi.bundle"; version:Version="1.16.0.v20230210-1249"; osgi.identity="org.apache.batik.bridge"]
import: (osgi.wiring.package=org.w3c.dom.events)
|
export: osgi.wiring.package: org.w3c.dom.events
org.w3c.dom.events [osgi.identity; type="osgi.bundle"; version:Version="3.0.0.draft20060413_v201105210656"; osgi.identity="org.w3c.dom.events"]
at org.eclipse.osgi.container.Module.start(Module.java:463)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1852)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1845)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1786)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1750)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1672)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345)]]>pavan kumar2023-07-26T13:50:35-00:00Re: Unresolved Requirements
https://www.eclipse.org/forums/index.php/mv/msg/1113021/1859761/#msg_1859761
One way to potentially resolve this issue is to try to isolate your environment so that there's only one version of each package. You can try uninstalling one of the versions of 'org.apache.batik' to see if that resolves the conflict.
Also, check your target platform and make sure it contains the correct and consistent set of plugins. This is often a reason for such issues.
If the issue persists, you may need to manually resolve the dependencies, which can be time-consuming and complex, but usually works.]]>Kabiru Usman2023-06-26T07:36:38-00:00Re: GMF Tooling Update
https://www.eclipse.org/forums/index.php/mv/msg/1111097/1859381/#msg_1859381
I have encountered the same issue and would greatly appreciate any solution.]]>Lukas-Angelo Meier2023-06-03T08:42:58-00:00Re: Parent-child layout problem
https://www.eclipse.org/forums/index.php/mv/msg/46266/1859294/#msg_1859294
Merlin wrote on Thu, 06 September 2007 22:50
Hi, I am new with GMF and I am trying to get use of the layouts... but
somehow I am not able to do it right. What I want to achieve is the
following - one figure which children (two types of children) are
displayed left and right (according to the type) at the figure rand. I
thought using BorderLayout and two compartments for the childes, but I
can't get it right. The best I got was by using affixed parent side, bit
this solution seems not stable enough Child arrangement orders- when I resize the figure or add
more childes, it is not clear where the new child will appear - on top,
bottom or even on the opposite side of the figure - when there are more
childes.
This is what I want to achieve:
_____________
| |
|O O|
|O |
| |
|_____________|
Can someone please post an example how a parent can layout it's childes?
Some clues at least?
Thanks a lot, I am really stuck for some time...
Merlin
To achieve the desired layout with children displayed on the left and right sides of a figure, you can use a combination of layout managers. Here's an example using Java Swing's BorderLayout:
public class ParentLayoutExample {
public static void main(String[] args) {
JFrame frame = new JFrame("Parent Layout Example");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel parentPanel = new JPanel(new BorderLayout());
// Create child panels
JPanel leftChild = new JPanel();
JPanel rightChild = new JPanel();
// Set background color for clarity
leftChild.setBackground(java.awt.Color.GREEN);
rightChild.setBackground(java.awt.Color.YELLOW);
// Create the figure as a label
JLabel figureLabel = new JLabel("O");
figureLabel.setHorizontalAlignment(JLabel.CENTER);
// Add the figure label to the parent panel's center
parentPanel.add(figureLabel, BorderLayout.CENTER);
// Add the parent panel to the frame's content pane
frame.getContentPane().add(parentPanel);
frame.pack();
frame.setVisible(true);
}
}
In this example, we create a JPanel called parentPanel as the main container. Then, we create two child panels, leftChild and rightChild, and set their background colors for visual distinction. We add the child panels to the parent panel using BorderLayout.WEST and BorderLayout.EAST positions.
Next, we create a JLabel called figureLabel to represent the figure (in this case, the letter "O"). We set its horizontal alignment to CENTER and add it to the parent panel's center using BorderLayout.CENTER.
Finally, we add the parent panel to the frame's content pane, pack the frame to adjust its size, and make it visible.
This layout ensures that the children are displayed on the left and right sides of the figure, regardless of window resizing or the number of children added.]]>2023-05-27T23:30:58-00:00