Today's Messages (ON)  | Unanswered Messages (OFF)

Forum: Dynamic Languages Toolkit (DLTK)
 Topic: Removal of working set from Project creation wizard in build S-2.0M3-200911101155
icon14.gif  Re: Removal of working set from Project creation wizard in build S-2.0M3-200911101155 [message #499779 is a reply to message #499583 ] Tue, 24 November 2009 00:04
Nitin Bohara  is currently offline Nitin Bohara
Messages: 11
Registered: July 2009
Junior Member
Thanks Alex.
Forum: Service Component Architecture (SCA) Tools
 Topic: WS binding vs. propagated WS binding
WS binding vs. propagated WS binding [message #499840] Tue, 24 November 2009 06:00
Eclipse User
Originally posted by: michael.gebhart.googlemail.com

Hi,

assuming, I have one SCA assembly with one component. Now, I wanna
expose the functionality of the component as web service. I have two
ways to do this:

1. Creating a WS binding for the component
2. Creating a WS binding for the component and propgating it as service
for the entire SCA assembly.

What is the difference between these two possibiliites? In both cases
the component functionality can be accessed via a web service interface.

Usually, interfaces that should be accessible from external, the service
should be propagated to the SCA assembly. But when using a WS binding,
this is not necessary. So, what is the difference at a logical level?

Best regards

Michael
Forum: Service Oriented Architecture Tools Platform (STP)
 Topic: SoaML Support
SoaML Support [message #499846] Tue, 24 November 2009 06:13
Eclipse User
Originally posted by: michael.gebhart.googlemail.com

Hi,

is there a support for SoaML planned? I could imagine some GUI support
for creating models based on the SoaML UML profile.

Best regards

Michael
Forum: BPEL Designer
 Topic: Name of the diagram type used by BPEL-Designer
Re: Name of the diagram type used by BPEL-Designer [message #499848 is a reply to message #499507 ] Tue, 24 November 2009 06:19
Eclipse User
Originally posted by: DAB268.gmx.de

grid.qian schrieb:
> What do you means?
> what diagram do you want to know?
> This is a bpel editor screenshot.

The editor shows an opened BPEL document as a diagram. That's the type
of diagram I wanted to know the name of.
Forum: Buckminster dev
 Topic: Setup / tear down for JUnit plugin tests
Setup / tear down for JUnit plugin tests [message #499871] Tue, 24 November 2009 07:17
Michal Ruzicka  is currently offline Michal Ruzicka
Messages: 13
Registered: July 2009
Junior Member
Hi,
This is a re-post of my previous post to eclipse.tools.buckminster, as
this newsgroup is probably the more appropriate.

I'm having problems with running JUnit plug-in tests which happen to
need GUI in a headless environment with Buckminster's junit command.

The problem is that there is no X server running at the time when the
framework supposed to execute the tests is launched. This naturally
results in an early exit of the framework before any tests are executed.

I was able to solve the problem for plain (non plug-in) JUnit tests by
starting / stopping Xvfb (a virtual framebuffer X server which runs
entirely in background without any need for real display or input
devices) in @BeforeClass / @AfterClass annotated methods.
This solution unfortunately does not work for the JUnit plug-in tests as
the framework (and GUI) is attempted to be started earlier than the
@BeforeClass / @AfterClass methods from any test class are called.

A working solution would be to add some kind of setup / tear down
functionality to the Buckminster's junit command. I'm willing to
implement it but I'd like to discuss possible options first. So here are
some question for you to comment on:

1) Should the implementation just allow to specify a command to execute
prior to launching the tests, or should it rather require a java class
implementing the setup / tear down functionality.

2) If the class is required, should it implement an interface devised
for the setup / tear down purpose, or should it rather use annotations
(perhaps the JUnit 4 @BeforeClass / @AfterClass annotations)?

3) If the class is required, then specifying it means specifying the
class itself plus the classpath where the class is found. A classpath is
much easier specified in an ant script that on a command line which
leads me to the question: Shouldn't there be a <bukminster.junit> ant
task companion to the Buckminster's junit command?

4) In case the ant task was implemented, should the junit command be
extended to support the setup / tear down at all given that using it
(specifying the classpath) would be a hassle anyway?

Thanks in advance for your comments,
regards,
Michal
Forum: JFace
 Topic: Automatic testing of cell editing
Automatic testing of cell editing [message #499873] Tue, 24 November 2009 07:53
Jesper Eskilson  is currently offline Jesper Eskilson
Messages: 18
Registered: July 2009
Junior Member
I'm trying to implement an automatic test of cell-editing. I started
using #editElement() method, but where do I go from there?

--
/Jesper
Forum: Eclipse Platform
 Topic: How to enable status line in a tabbed property sheet?
How to enable status line in a tabbed property sheet? [message #499828] Tue, 24 November 2009 04:49
user  is currently offline user
Messages: 178
Registered: July 2009
Senior Member
Hi,

In my application, I'm using a
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPa ge for
displaying and modifying the properties of EMF model elements. It has a
single "Advanced" section which extends
org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on and
displays the EMF model element properties in a simple table, very much
in the same way as if I used a conventional
org.eclipse.ui.views.properties.PropertySheetPage.

I want to use the status line to output information on the selected
property or error messages when a wrong value is entered for a given
property (e.g. when the property value type is Integer but the user
enters an alphanumerical string). The problem is that this works out of
the box when using a PropertySheetPage but not at all in case of a
TabbedPropertySheetPage.

I've debugged a little bit and found out the following:

The status line is managed by
org.eclipse.ui.views.properties.PropertySheetViewer. When using a
PropertySheetPage, the PropertySheetViewer#statusLineManager field is
initialized via a call to #setStatusLineManager() from
PropertySheetPage#makeContributions(). The latter is indirectly called
from PropertySheetPage#setActionBars(). This means when the
PropertySheetPage is put in place and setActionBars() is called, the
status line manager gets initialized correctly and is available for
outputting information and error messages.

However, when using a TabbedPropertySheetPage, neither
PropertySheetPage#setActionBars() nor
PropertySheetPage#makeContributions() gets invoked. Consequently the
PropertySheetViewer#statusLineManager stays uninitialized and any
attempt at sending content to the status line has not effect.

I've tried to work around the problem by adding an ISelectionListener to
my "Advanced" section, in which I invoked
PropertySheetPage#setActionBars() (via the AdvancedPropertySection#page
field). As a result the status line gets alive but the tool bar
contributions in the master workbench part which the properties view is
connected to get duplicated at each selection change... What would help
here is to have a method PropertySheetPage#setStatusLineManager() such
that the status line manager can be initialized independent of the
IMenuManager and IToolBarManager the master workbench part. I could then
implement a line like this in the ISelectionListener in my "Advanced"
section.

Anyhow, I believe that the fact of having no status line manager when
using TabbedPropertySheetPages instead of PropertySheetPage is a general
problem which maybe should be resolved by underlying Eclipse Platform
classes but not at application level. This would simplify life for
application writers and make that the behavior becomes more consistent.

What is your opinion regarding this? Or is there simply something which
I've completely missed and status line support in
TabbedPropertySheetPages works out of the box?

Stephan
 Topic: How to enable status line in a tabbed property sheet?
How to enable status line in a tabbed property sheet? [message #499829] Tue, 24 November 2009 04:56
Stephan Eberle  is currently offline Stephan Eberle
Messages: 3
Registered: July 2009
Junior Member
Sorry for the invalid domain sender id in my previous post - I'm
therefore sending it again, this time with everything correctly
initialized...



Hi,

In my application, I'm using a
org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPa ge for
displaying and modifying the properties of EMF model elements. It has a
single "Advanced" section which extends
org.eclipse.ui.views.properties.tabbed.AdvancedPropertySecti on and
displays the EMF model element properties in a simple table, very much
in the same way as if I used a conventional
org.eclipse.ui.views.properties.PropertySheetPage.

I want to use the status line to output information on the selected
property or error messages when a wrong value is entered for a given
property (e.g. when the property value type is Integer but the user
enters an alphanumerical string). The problem is that this works out of
the box when using a PropertySheetPage but not at all in case of a
TabbedPropertySheetPage.

I've debugged a little bit and found out the following:

The status line is managed by
org.eclipse.ui.views.properties.PropertySheetViewer. When using a
PropertySheetPage, the PropertySheetViewer#statusLineManager field is
initialized via a call to #setStatusLineManager() from
PropertySheetPage#makeContributions(). The latter is indirectly called
from PropertySheetPage#setActionBars(). This means when the
PropertySheetPage is put in place and setActionBars() is called, the
status line manager gets initialized correctly and is available for
outputting information and error messages.

However, when using a TabbedPropertySheetPage, neither
PropertySheetPage#setActionBars() nor
PropertySheetPage#makeContributions() gets invoked. Consequently the
PropertySheetViewer#statusLineManager stays uninitialized and any
attempt at sending content to the status line has not effect.

I've tried to work around the problem by adding an ISelectionListener to
my "Advanced" section, in which I invoked
PropertySheetPage#setActionBars() (via the AdvancedPropertySection#page
field). As a result the status line gets alive but the tool bar
contributions in the master workbench part which the properties view is
connected to get duplicated at each selection change... What would help
here is to have a method PropertySheetPage#setStatusLineManager() such
that the status line manager can be initialized independent of the
IMenuManager and IToolBarManager the master workbench part. I could then
implement a line like this in the ISelectionListener in my "Advanced"
section.

Anyhow, I believe that the fact of having no status line manager when
using TabbedPropertySheetPages instead of PropertySheetPage is a general
problem which maybe should be resolved by underlying Eclipse Platform
code but not at application level. This would simplify life for
application writers and make that the behavior becomes more consistent.

What is your opinion about this? Or is there simply something which I've
completely missed and status line on TabbedPropertySheetPages works out
of the box?
 Topic: Unknown source in stack trace
icon5.gif  Unknown source in stack trace [message #499826] Tue, 24 November 2009 04:59
Alexandra Niculai  is currently offline Alexandra Niculai
Messages: 12
Registered: July 2009
Junior Member
Hi

I have a java project that uses swt. Whenever an exception is thrown I can see the line number for my code. The problem is that for the source inside the swt.jar, I can't see the exact line where the exception ocurrs, even if I did attach the source and I can look at the source code of swt. I always get something like this on the stack trace:
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)


I have checked all the boxes in Windows/Preferences/Java/Compiler Classfile Generation, but that didn't solve my problem.
Could anyone please help me? Thank you.

Greetings
Alexandra.
 Topic: Programmatically add tabs to a TabbedPropertySheet
Re: Programmatically add tabs to a TabbedPropertySheet [message #499874 is a reply to message #499047 ] Tue, 24 November 2009 07:55
fir0  is currently offline fir0
Messages: 3
Registered: November 2009
Junior Member
After creating Property Tabs dynamically, i also needed to use generic filters. I did not found much about this problem but i dicovered a solution which works for me:

Let the Filter implement IExecutableExtension so you can config the filter by using "<filterclass>:<configurationinformation>" in the filter attribute of a propertySection.

Maybe this sometimes helps someone who got a similar problem.

Regards,

Robert
Forum: OCL
 Topic: how to define operations?
Re: how to define operations? [message #499838 is a reply to message #499595 ] Tue, 24 November 2009 05:45
Edward Willink  is currently offline Edward Willink
Messages: 207
Registered: July 2009
Senior Member
Hi Joel

The missing "I" makes no difference. I have absolutely no idea what your
new/original question is, or whether my previous answer was helpful.

Regards

Ed Willink

Joel Greenyer wrote:
> sorry, there is an "I" missing: my question is if I use
> OCLHelper.defineOperation() to process these expressions?
>
> Joel Greenyer wrote:
>> Hi Ed,
>> thanks for your answer.
>> ...and process that expression via OCLHelper.defineOperation()?
>>
>> Ed Willink wrote:
>>> Hi Joel
>>>
>>> From Warmer and Kleppe's book
>>>
>>> context CustomerCard::getTransactions(until:Date, from:Date) :
>>> Set(Transaction)
>>> body: self.transactions->select( i_Transaction : Transaction |
>>> i_Transaction.date.isAfter(from)
>>> and i_Transaction.date.isBefore(until) )
>>>
>>> The full example may be found
>>>
>>> /org.eclipse.qvt.declarative.examples.ocl.royalandloyal/ocls rc/RoyalAndLoyal/RoyalAndLoyal.ocl
>>>
>>>
>>> which may be found in /cvsroot/modeling
>>> org.eclipse.m2m/org.eclipse.qvt.declarative/examples
>>>
>>> I'm working on the QVT Declarative build right now, so watch
>>> http://wiki.eclipse.org/MDT/OCL/FAQ#OCL_Editor for a more friendly
>>> installation process.
>>>
>>> Regards
>>>
>>> Ed Willink
>>>
>>>
>>>
>>> Joel Greenyer wrote:
>>>> Hi,
>>>> I'd like to define an operation for a certain class context via OCL.
>>>>
>>>> I see in org.eclipse.ocl.ecore.tests.DefExpressionTest examples of
>>>> how to invoke the OCLHelper.defineOperation() method. In the
>>>> DefExpressionTest class, the context is set via helper.setContext()
>>>> prior to defining the operation.
>>>>
>>>> Is there a way to specify the context textually, as one expression
>>>> together with the operation definition? Or is there another way to
>>>> retrieve the context class from a textual expression? The problem
>>>> is that I cannot hard code the context classifier as it is done in
>>>> the DefExpressionTest class.
>>>>
>>>> Could anyone please provide an example expression and/or small code
>>>> snippet in how to do that?
>>>> Thanks for helping.
>>>>
>>>> Joel
Re: how to define operations? [message #499875 is a reply to message #499585 ] Tue, 24 November 2009 07:48
Christian W. Damus  is currently offline Christian W. Damus
Messages: 134
Registered: July 2009
Senior Member
--=-Ryv4AKQdpC0aUJ2IxmIZ
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi, Joel,

The OCLHelper API is intended primarily for the processing of OCL
constraints, definitions, and queries that are embedded in a model,
where the contextual classifier/operation/etc. is determined by the
placement of the expression.

For specification of OCL constraints and definitions with the textual
syntax of the context, that is typically done in *.ocl resources and
parsed using the parse(...) methods of the org.eclipse.ocl.OCL class and
its specializations. This "loads" the constraints defined in the *.ocl
into one environment; the parsed results can be retrieved if necessary
from the OCL facade instance, but in the case of definitions, they will
be available in the environment for any subsequent OCL expressions to
use.

Since you evidently have the JUnit test suite on hand, look for uses of
the OCL class such as in (I hope this is the name) OCLDocumentTest.

HTH,

Christian


On Mon, 2009-11-23 at 13:29 +0100, Joel Greenyer wrote:

> Hi Ed,
> thanks for your answer.
> ...and process that expression via OCLHelper.defineOperation()?
>
> Ed Willink wrote:
> > Hi Joel
> >
> > From Warmer and Kleppe's book
> >
> > context CustomerCard::getTransactions(until:Date, from:Date) :
> > Set(Transaction)
> > body: self.transactions->select( i_Transaction : Transaction |
> > i_Transaction.date.isAfter(from)
> > and i_Transaction.date.isBefore(until) )
> >
> > The full example may be found
> >
> > /org.eclipse.qvt.declarative.examples.ocl.royalandloyal/ocls rc/RoyalAndLoyal/RoyalAndLoyal.ocl
> >
> >
> > which may be found in /cvsroot/modeling
> > org.eclipse.m2m/org.eclipse.qvt.declarative/examples
> >
> > I'm working on the QVT Declarative build right now, so watch
> > http://wiki.eclipse.org/MDT/OCL/FAQ#OCL_Editor for a more friendly
> > installation process.
> >
> > Regards
> >
> > Ed Willink
> >
> >
> >
> > Joel Greenyer wrote:
> >> Hi,
> >> I'd like to define an operation for a certain class context via OCL.
> >>
> >> I see in org.eclipse.ocl.ecore.tests.DefExpressionTest examples of how
> >> to invoke the OCLHelper.defineOperation() method. In the
> >> DefExpressionTest class, the context is set via helper.setContext()
> >> prior to defining the operation.
> >>
> >> Is there a way to specify the context textually, as one expression
> >> together with the operation definition? Or is there another way to
> >> retrieve the context class from a textual expression? The problem is
> >> that I cannot hard code the context classifier as it is done in the
> >> DefExpressionTest class.
> >>
> >> Could anyone please provide an example expression and/or small code
> >> snippet in how to do that?
> >> Thanks for helping.
> >>
> >> Joel

--=-Ryv4AKQdpC0aUJ2IxmIZ
Content-Type: text/html; charset="utf-8"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1">
</HEAD>
<BODY>
Hi, Joel,<BR>
<BR>
The OCLHelper API is intended primarily for the processing of OCL constraints, definitions, and queries that are embedded in a model, where the contextual classifier/operation/etc. is determined by the placement of the expression.<BR>
<BR>
For specification of OCL constraints and definitions with the textual syntax of the context, that is typically done in *.ocl resources and parsed using the parse(...) methods of the org.eclipse.ocl.OCL class and its specializations.&nbsp; This &quot;loads&quot; the constraints defined in the *.ocl into one environment; the parsed results can be retrieved if necessary from the OCL facade instance, but in the case of definitions, they will be available in the environment for any subsequent OCL expressions to use.<BR>
<BR>
Since you evidently have the JUnit test suite on hand, look for uses of the OCL class such as in (I hope this is the name) OCLDocumentTest.<BR>
<BR>
HTH,<BR>
<BR>
Christian<BR>
<BR>
<BR>
On Mon, 2009-11-23 at 13:29 +0100, Joel Greenyer wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Hi Ed,
thanks for your answer.
....and process that expression via OCLHelper.defineOperation()?

Ed Willink wrote:
&gt; Hi Joel
&gt;
&gt; From Warmer and Kleppe's book
&gt;
&gt; context CustomerCard::getTransactions(until:Date, from:Date) :
&gt; Set(Transaction)
&gt; body: self.transactions-&gt;select( i_Transaction : Transaction |
&gt; i_Transaction.date.isAfter(from)
&gt; and i_Transaction.date.isBefore(until) )
&gt;
&gt; The full example may be found
&gt;
&gt; /org.eclipse.qvt.declarative.examples.ocl.royalandloyal/ocls rc/RoyalAndLoyal/RoyalAndLoyal.ocl
&gt;
&gt;
&gt; which may be found in /cvsroot/modeling
&gt; org.eclipse.m2m/org.eclipse.qvt.declarative/examples
&gt;
&gt; I'm working on the QVT Declarative build right now, so watch
&gt; <A HREF="http://wiki.eclipse.org/MDT/OCL/FAQ#OCL_Editor">http://wiki.eclipse.org/MDT/OCL/FAQ#OCL_Editor</A> for a more friendly
&gt; installation process.
&gt;
&gt; Regards
&gt;
&gt; Ed Willink
&gt;
&gt;
&gt;
&gt; Joel Greenyer wrote:
&gt;&gt; Hi,
&gt;&gt; I'd like to define an operation for a certain class context via OCL.
&gt;&gt;
&gt;&gt; I see in org.eclipse.ocl.ecore.tests.DefExpressionTest examples of how
&gt;&gt; to invoke the OCLHelper.defineOperation() method. In the
&gt;&gt; DefExpressionTest class, the context is set via helper.setContext()
&gt;&gt; prior to defining the operation.
&gt;&gt;
&gt;&gt; Is there a way to specify the context textually, as one expression
&gt;&gt; together with the operation definition? Or is there another way to
&gt;&gt; retrieve the context class from a textual expression? The problem is
&gt;&gt; that I cannot hard code the context classifier as it is done in the
&gt;&gt; DefExpressionTest class.
&gt;&gt;
&gt;&gt; Could anyone please provide an example expression and/or small code
&gt;&gt; snippet in how to do that?
&gt;&gt; Thanks for helping.
&gt;&gt;
&gt;&gt; Joel
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>

--=-Ryv4AKQdpC0aUJ2IxmIZ--
Forum: e4
 Topic: XWT + DataBinding + TableViewer Issue
Re: XWT + DataBinding + TableViewer Issue [message #499868 is a reply to message #499727 ] Tue, 24 November 2009 07:44
Walter  is currently offline Walter
Messages: 48
Registered: July 2009
Member
Thanks Yves Yang. It works.

"Yves YANG" <yves.yang@soyatec.com> wrote in message
news:hees2r$r1j$1@build.eclipse.org...
> Hi Walter,
>
> It is about the "data context".
>
>> <Label text="Price:" />
>> <Label text="{Binding path=price}"/>
> It expects the data context as an object (not a collection) with an
> attribute "price".
>
> As for TableViewer, it expects to have a collection to bind in ti "input".
> In your code, the "input" specification is missing. If the data context is
> a collection, you just need to indicate the input to use the data context
> like this:
> input="{Binding}"
>
> If the data context of TableViewer is not a collection, you need to
> indicate the collection viw path
> input="{Binding path=orders}"
>
> Regarding the table header, you need to add
> <TableViewer.table headerVisible="true">
> </TableViewer.table>
>
> By defualt, it is false.
>
> In general, I support you have a collection of Transaction. You want to
> display the price when a transaction gets selected. It is the pure
> Master/Detail presentation pattern. I suggest you llok at this example:
> org.eclipse.e4.xwt.tests.jface.tableviewer.master.detail/Tab leViewer_MasterDetail.xwt:
> The code is attached here. You can more examples in e4 CVS.
>
> Regards
> Yves YANG
> "Walter Prabhakar" <kwchess@gmail.com> wrote in message
> news:he916r$np$1@build.eclipse.org...
>> Hi,
>>
>> When using Databinding in XWT using an object ( Transaction.java ) I am
>> able to show the value of "price"
>> <Label text="Price:" />
>> <Label text="{Binding path=price}"/>
>>
>> However, if I need to show the price in tableviewer
>> <TableViewer>
>> <TableViewer.columns>
>> <TableViewerColumn width="150" text="Price"
>> displayMemberPath="price" />
>> </TableViewer.columns>
>> <TableViewer.control.layoutData>
>> <GridData horizontalAlignment="FILL" verticalAlignment="FILL"
>> grabExcessVerticalSpace="true"
>> grabExcessHorizontalSpace="true" />
>> </TableViewer.control.layoutData>
>> </TableViewer>
>>
>> The Data ( price ) is not rendered in the Table. Even the columns are
>> not
>> shown.
>>
>> I tried the following
>> 1) XWT.load(parent, url, ( Transaction ) ( getT [ 0 ] ) ); => Shows up
>> correctly in Label but not in Table
>> 2) XWT.load(parent, url, getT( ) ) ; => Doesnot show in Label (
>> correct
>> behaviour ? ) and does not show in Table
>> 3) XWT.load(parent, url, getTinList ( ) ) ; => Here the object passed is
>> a
>> List => similar behaviour as in 2).
>>
>> I had tried even with
>> <TableViewer input="{Binding Path=transaction}">
>>
>> Any help is much appreciated.
>>
>> Thanks,
>> Best Regards,
>> Walter G. Prahakar.
>>
>
>
>
 Topic: XWT + TableTreeViewer
XWT + TableTreeViewer [message #499870] Tue, 24 November 2009 07:45
Walter  is currently offline Walter
Messages: 48
Registered: July 2009
Member
Is there a support planned for TableTreeViewer ?

- Walter.
 Topic: Tookit Model plugins
Re: Tookit Model plugins [message #499899 is a reply to message #499742 ] Tue, 24 November 2009 08:48
Paul Webster  is currently offline Paul Webster
Messages: 4727
Registered: July 2009
Location: Ottawa
Senior Member
Do you have errors in your error log? <workspace>/.metadata/.log or the Error Log view

How did you install TM? Did you install EMF as well?

I grabbed one of the M2 e4 SDKs and I can see 2 TM views plus the TM editor.

PW


Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
Forum: DTP
 Topic: Status of ODA driver for EMF/CDO and BIRT
Status of ODA driver for EMF/CDO and BIRT [message #499902] Tue, 24 November 2009 08:56
Joel Rosi-Schwartz  is currently offline Joel Rosi-Schwartz
Messages: 274
Registered: July 2009
Senior Member
Hi,

I recently posted a topic on the EMF forum entitled [CDO] EMF ODA driver for BIRT The consensus of opinion is that the Ecore_ODA_Driver should work just fine, but none of the responders have actually tested it or know of anybody who has tested it. A few ifs where also noted as in this comment from Victor:

Quote:
Regarding compatibility with CDO, I can only agree with Eike: as long as
the driver honors EMF APIs and don't make excessive use of EMF's
internals, CDO should properly work, the same way it works well with
things like GMF, EMF Query or MDT OCL.


As this is functionality is essential for the ORMF project I need to find out for certain. If anybody here has experience with using the Ecore ODA Driver along with CDO I would very much appreciate hearing about your experience.

Many thanks,
Joel
Forum: Faceted Project Framework
 Topic: Library Provider Framework
Re: Library Provider Framework [message #499906 is a reply to message #484822 ] Tue, 24 November 2009 09:05
Keith Chong  is currently offline Keith Chong
Messages: 36
Registered: July 2009
Member
Hi Konstantin,

I have extended the wtp-user-library-provider and the libraryProviderActionPanels. I see my 'panel' in my

org.eclipse.wst.common.project.facet.ui.FacetsPropertyPage

and

org.eclipse.wst.common.project.facet.ui.wizardPages (which extends DataModelWizardPage)

The wizardPage's constructor creates the IDataModel and passes it to super.

Do you know how I can get the IDataModel from the actionPanel? I need to access its properties.

[Updated on: Tue, 24 November 2009 09:16]

Forum: Papyrus
 Topic: Papyrus and Amalgam
Re: Papyrus and Amalgam [message #499818 is a reply to message #499740 ] Tue, 24 November 2009 04:48
Vlad Varnica  is currently offline Vlad Varnica
Messages: 172
Registered: July 2009
Senior Member
Quote:
The number of models/metamodels doesn't matter ... If you have only one big fat model/metamodel, how is this easier to handle? Usually, the complexity comes from your business domain and all you have to do is try to simplify as much as possible but no more than that Smile


This is exactly what should not be done !! The more models the more complexity and needs for transformation. I have seen a merge of projects being stuck for more than 200 days just trying to merge models and multiple projects. We have done the job in 10 minutes with a very big model Shocked

UML modeling has failed because of multiples models and transformation. It is not time to run away to another technology (e.g. DSL ) but be responsible and assume our mistakes (e.g. UML profiles developed since 2002 at the OMG). It is always the same old story saying that "it failed so I leave immediately and start something new". This is when it fails that the job start and that the technology is getting mature !!

Quote:
I certainly don't plan for such thing, EMF modeling is quite easy and for sure it doesn't take hundreds of billable days to finish modeling stage. Also, on my vision, once you finish the modeling stage, the project is pretty much finished as well.


EMF is not easy and could become a nightmare if you don't invest a lot of time. We needed more than 24 months just to train young engineer to use EMF the right way. D
o you have 24 months ? I don't think so therefore the best is to immediately call an EMF consultant at the beginning of the project because your project will certainly fail without him.

Once the modeling stage is finished you have about 70% of your code. You still need to add manually 30%. The problem I see is that if you add the code manually to change classifiers then you can not generate again your code from EMF. Again, don't forget to ask because what you think is easy is certainly not !! Your team manually codding should also understand where to code because the EMF code generation is sometimes very complex and add hundred of classifiers. This is a good approach to divide object of your project but the complexity is increasing.

For example within Omondo a developer is not allowed to code alone before 18 months and understanding the full architecture. Even after the initial EMF model is so complex that we never 100% certain where are going all the calls and why ? This is the advantage of code generation and also the main disadvantage.
Re: Papyrus and Amalgam [message #499914 is a reply to message #499818 ] Tue, 24 November 2009 09:09
Ed Merks  is currently offline Ed Merks
Messages: 15892
Registered: July 2009
Senior Member
Vlad,

Comments below.

Vlad Varnica wrote:
> Quote:
>> The number of models/metamodels doesn't matter ... If you have only
>> one big fat model/metamodel, how is this easier to handle? Usually,
>> the complexity comes from your business domain and all you have to do
>> is try to simplify as much as possible but no more than that Smile
>
>
> This is exactly what should not be done !!
So you keep asserting, but reality flies in the face of this...
> The more models the more complexity and needs for transformation.
You keep talking about transformations as a bad thing, but a guy has to
wonder what you imagine people doing with their models. Make a pretty
picture from it and then stare at that? In the end models are used to
do something useful. They're analyzed or interpreted or something is
generated from them. For example, I define a modeling of XML Schema so
I can read, write, and manipulate schema instances. How exactly will
profiled UML help with this task?
> I have seen a merge of projects being stuck for more than 200 days
> just trying to merge models and multiple projects.
Merging seems to be another one of your obsessions. I'm not sure why.
> We have done the job in 10 minutes with a very big model 8o
> UML modeling has failed because of multiples models and transformation.
UML's complexity hasn't helped nor has over zealous promotion. And, as
I said earlier, I'm not sure what you expect people to do with their
models. Transforming them is often the entire reason for their existance.
> It is not time to run away to another technology (e.g. DSL ) but be
> responsible and assume our mistakes (e.g. UML profiles developed since
> 2002 at the OMG).
I don't believe the mistake lies in exploring technologies other than UML.
> It is always the same old story saying that "it failed so I leave
> immediately and start something new". This is when it fails that the
> job start and that the technology is getting mature !!
UML is very good for some things, perhaps even for a great many things,
but it's not ideal for all things. Anyone who argues otherwise will be
met with skepticism at best...
>
> Quote:
>> I certainly don't plan for such thing, EMF modeling is quite easy and
>> for sure it doesn't take hundreds of billable days to finish modeling
>> stage. Also, on my vision, once you finish the modeling stage, the
>> project is pretty much finished as well.
>
>
> EMF is not easy and could become a nightmare if you don't invest a lot
> of time.
Yet you need to use it to use UML. There's no avoiding that...
> We needed more than 24 months just to train young engineer to use EMF
> the right way. D
Your vacuous assertions are so tiresome...
> o you have 24 months ? I don't think so therefore the best is to
> immediately call an EMF consultant at the beginning of the project
> because your project will certainly fail without him.
I appreciate the advertisement for my paid services, but experience
tells me there are a great many successful projects that have never paid
a dime for consulting. Sometimes they're successful without ever having
asked a newsgroup question. Perhaps you should be less inclined to
project your failures onto others.
>
> Once the modeling stage is finished you have about 70% of your code.
> You still need to add manually 30%. The problem I see is that if you
> add the code manually to change classifiers then you can not generate
> again your code from EMF.
Hello? It's a merging generator. We do this ourselves constantly.
> Again, don't forget to ask because what you think is easy is certainly
> not !! Your team manually codding should also understand where to code
> because the EMF code generation is sometimes very complex and add
> hundred of classifiers.
That depends on the complexity of the model, not the complexity of the
generator.
> This is a good approach to divide object of your project but the
> complexity is increasing.
This is another one of those ungrammatical sentences from which meaning
cannot be derived.
> For example within Omondo a developer is not allowed to code alone
> before 18 months and understanding the full architecture. Even after
> the initial EMF model is so complex that we never 100% certain where
> are going all the calls and why ? This is the advantage of code
> generation and also the main disadvantage.
It should come as no surprised that life is a trade-off of pros and cons.
Forum: Gemini
 Topic: Details of OSGi Web Container sub-project
Re: Details of OSGi Web Container sub-project [message #499827 is a reply to message #499637 ] Tue, 24 November 2009 05:00
Adrian Colyer  is currently offline Adrian Colyer
Messages: 14
Registered: July 2009
Junior Member
Hi Greg,
In this context, think of "RFC 66" and "Web Container specification" as synonymous, and the "Gemini Web Container project" simply as the RI for this specification (nothing broader).

In brief, the model is that a web container extender listens for lifecycle events from bundles which are specially denoted as "Web Application Bundles". These are just standard bundles with additional headers in the manifest and/or contain a WEB-INF/web.xml file. When such a bundle transitions to the active state, the extender creates a servlet context for the bundle and deploys it into a servlet container. In the RI, the embedded servlet container is Tomcat, but there is nothing special about it from the perspective of the spec., and Jetty could just as easily be used for example.

In addition, a URL handler is defined supporting the "webbundle:" url scheme. This allows traditionally packaged JEE war files to be deployed as Web Application Bundles.

Regards, Adrian.
Re: Details of OSGi Web Container sub-project [message #499931 is a reply to message #499637 ] Tue, 24 November 2009 09:46
Andy Wilkinson  is currently offline Andy Wilkinson
Messages: 1
Registered: July 2009
Junior Member
Greg, in our implementation of RFC66 there is a ServletContainer abstraction behind which any servlet container-specific logic is hidden. As Adrian mentioned above we already have a Tomcat-specific implementation.

The RFC66 RI gets hold of its ServletContainer implementation via the OSGi service registry so using a different servlet container with the RI would entail replacing the Tomcat-specific bundle with one that publishes a ServletContainer implementation backed by, e.g., Jetty.

Regards,
Andy
Forum: Subversive
 Topic: Commit fails with strange error message
Re: Commit fails with strange error message [message #499804 is a reply to message #499706 ] Tue, 24 November 2009 04:05
Igor Burilo  is currently offline Igor Burilo
Messages: 185
Registered: July 2009
Senior Member
Hello Lars,

There's already a corresponding bug in tracker
https://bugs.eclipse.org/bugs/show_bug.cgi?id=293588 which is fixed in
0.7.8.I20091106-1900 build. Please update to latest Subversive (this will
resolve the problem for you).

> Hi,
>
> If I try to commit I receive the following error message:
>
> Some of selected resources were not committed.
> svn: Error while dispatching event:
> org.eclipse.team.svn.core.connector.ISVNProgressMonitor.repo
> rtError(Ljava/lang/String;)V
>
> Any idea how to solve this?
>
> Best regards, Lars
Re: Commit fails with strange error message [message #499879 is a reply to message #499804 ] Tue, 24 November 2009 07:59
Lars Vogel  is currently offline Lars Vogel
Messages: 513
Registered: July 2009
Senior Member
Hi Igor,

thanks for the fast reply. Should this change already be available on
the update sites? If I check for updates Eclipse does not offer any
update for svn.

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter



Igor Burilo wrote:
> Hello Lars,
>
> There's already a corresponding bug in tracker
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=293588 which is fixed in
> 0.7.8.I20091106-1900 build. Please update to latest Subversive (this will
> resolve the problem for you).
>
>> Hi,
>>
>> If I try to commit I receive the following error message:
>>
>> Some of selected resources were not committed.
>> svn: Error while dispatching event:
>> org.eclipse.team.svn.core.connector.ISVNProgressMonitor.repo
>> rtError(Ljava/lang/String;)V
>>
>> Any idea how to solve this?
>>
>> Best regards, Lars
>
>
Re: Commit fails with strange error message [message #499934 is a reply to message #499879 ] Tue, 24 November 2009 09:36
Jörg Thönnes  is currently offline Jörg Thönnes
Messages: 111
Registered: July 2009
Senior Member
Hi Lars,

On 11/24/09 13:59, Lars Vogel wrote:
> thanks for the fast reply. Should this change already be available on
> the update sites? If I check for updates Eclipse does not offer any
> update for svn.

If you use this update site, you should get the recent builds using "Check for updates...":

http://download.eclipse.org/technology/subversive/0.7/weekly -site/

I recommend to use this site, it changes every week or two and always contains the latest bug fixes,
features (and bugs ;-) ).

Cheers, Jörg
Re: Commit fails with strange error message [message #499935 is a reply to message #499934 ] Tue, 24 November 2009 09:49
Lars Vogel  is currently offline Lars Vogel
Messages: 513
Registered: July 2009
Senior Member
Hi Jörg,

I had bad experience in the past with the weekly-side. I would rather
wait until the fix is in the standard update site.

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter

Jörg Thönnes wrote:
> Hi Lars,
>
> On 11/24/09 13:59, Lars Vogel wrote:
>> thanks for the fast reply. Should this change already be available on
>> the update sites? If I check for updates Eclipse does not offer any
>> update for svn.
>
> If you use this update site, you should get the recent builds using "Check for updates...":
>
> http://download.eclipse.org/technology/subversive/0.7/weekly -site/
>
> I recommend to use this site, it changes every week or two and always contains the latest bug fixes,
> features (and bugs ;-) ).
>
> Cheers, Jörg
Forum: UML2
 Topic: Problems with uml2 3.0.0 Profiles and typesystem.uml2
Re: Problems with uml2 3.0.0 Profiles and typesystem.uml2 [message #499937 is a reply to message #499726 ] Tue, 24 November 2009 09:55
Andre Albert  is currently offline Andre Albert
Messages: 2
Registered: July 2009
Junior Member
It seems to be that all UML types do not have a type name.
While debugging the PrimitiveTypes (such as pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String) objects do have null as name but not "String" or similar.
Besides eStorage each property of PrimitiveTypeImpl has a null value

Is there a reason why uml primitive types or uml metaclasses are not initialized properly.

Is this rather a problem of xpand workflows?

thanks
Forum: Standard Widget Toolkit (SWT)
 Topic: Problem with ScrolledComposite drawing a long list of Labels
Re: Problem with ScrolledComposite drawing a long list of Labels [message #499792 is a reply to message #499640 ] Tue, 24 November 2009 02:48
Eclipse User
Originally posted by: stefan.noebauer.kgu-consulting.de

I tryed the Gallary Composite of Eclipse Nebula. Why is that Composite
working with a very long list of items? Or is that component not using the
scrolled Composite?


Am 23.11.2009, 16:23 Uhr, schrieb Grant Gayed <grant_gayed@ca.ibm.com>:

> Hi,
>
> Yes, there is a width/height limit of 32767, and
> "parent.computeSize(SWT.DEFAULT, SWT.DEFAULT)" indicates that the
> snippet's
> height is exceeding this. Unfortunately this limit is imposed by the OS,
> and there's no workaround other than to re-work the UI layout to not
> require
> as much height or height.
>
> Grant
>
>
> "Stefan Nöbauer" <stefan.noebauer@kgu-consulting.de> wrote in message
> news:op.u3ue1pmg011itz@kgu04.kgu-intern.local...
>> Hi,
>>
>> I Have a problem with the Scrolled Composite listing a long list of
> labels.
>>
>> I used the snippet166 with small changes to verify that same
>> phenomenon. I
>> tried to add 2000 Labels to the Composite but only about 1800 where
>> drawn.
>> Is there a limit on the scrolled Composite?
>>
>> I use RCP 3.3.2.
>>
>>
>> My Code Sample:
>>
>> public class Snippet166 {
>>
>> public static void main(String[] args) {
>> Display display = new Display();
>> Shell shell = new Shell(display);
>> shell.setLayout(new FillLayout());
>>
>> final ScrolledComposite scrollComposite = new
>> ScrolledComposite(shell,
>> SWT.V_SCROLL | SWT.BORDER);
>>
>> final Composite parent = new Composite(scrollComposite,
> SWT.NONE);
>> for (int i = 0; i <= 2000; i++) {
>> Label label = new Label(parent, SWT.BORDER);
>> label.setText(String.valueOf(i));
>> }
>>
>> parent.pack();
>>
>> RowLayout layout = new RowLayout(SWT.VERTICAL);
>> layout.wrap = true;
>> parent.setLayout(layout);
>>
>> scrollComposite.setContent(parent);
>> scrollComposite.setExpandVertical(true);
>> scrollComposite.setExpandHorizontal(true);
>> scrollComposite.addControlListener(new ControlAdapter() {
>> @Override
>> public void controlResized(ControlEvent e) {
>> Rectangle r = scrollComposite.getClientArea();
>> scrollComposite.setMinSize(parent.computeSize(r.width,
>> SWT.DEFAULT));
>> }
>> });
>>
>> shell.open();
>> while (!shell.isDisposed()) {
>> if (!display.readAndDispatch()) {
>> display.sleep();
>> }
>> }
>> display.dispose();
>> }
>> }
>>
>>
>>
>> --
>> Erstellt mit Operas revolutionärem E-Mail-Modul:
> http://www.opera.com/mail/
>
>


--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Re: Problem with ScrolledComposite drawing a long list of Labels [message #499940 is a reply to message #499792 ] Tue, 24 November 2009 09:44
Grant Gayed  is currently offline Grant Gayed
Messages: 1413
Registered: July 2009
Senior Member
I don't know how Gallery Composite is implemented, but my guess is that it
draws the content on an as-needed basis when it's scrolled into the
viewport, rather than creating a huge scrollable composite up-front with all
of the content. Controls can have conceptual bounds of > 32767 (eg.- large
Trees will often exceed this), but their physically-allocated bounds cannot
exceed this size. So when I said that there was no workaround available, I
guess this ignored the possibility of implementing a custom solution. An
example of this, though for a different problem than yours, is
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet48.java?view=co ,
where the scrollbar max sizes are set large to reflect the image's bounds,
but the Canvas' physical size does not exceed that of its parent Shell.

Grant


"Stefan N
 Topic: add toolbar to section
Re: add toolbar to section [message #499941 is a reply to message #499635 ] Tue, 24 November 2009 09:46
Grant Gayed  is currently offline Grant Gayed
Messages: 1413
Registered: July 2009
Senior Member
You may get more response if you ask this on the eclipse.platform.ua
newsgroup, since that is where Section comes from.

Grant


"Ido" <idoprz@gmail.com> wrote in message
news:hee9e0$vup$1@build.eclipse.org...
> Hello,
>
> I want to add a toolbar to a section in SWT.
> There is an example i saw in the PDE manifest editor.
>
> How can i add this toolbar or buttons?
> maybe i need to use a different control?
>
> Thank you,
> Ido
 Topic: freezing swt gui
Re: freezing swt gui [message #499942 is a reply to message #499731 ] Tue, 24 November 2009 09:48
Grant Gayed  is currently offline Grant Gayed
Messages: 1413
Registered: July 2009
Senior Member
I think Control.setRedraw() is what you want here. If not then please
follow up.

Grant


<larsk7@gmail.com> wrote in message news:heeuc4$e5s$1@build.eclipse.org...
> Is there a way to "freeze" the update of the gui while I am making some
changes and then after a while make the gui to update again? Is there maybe
a way so I can make the program so I have to update the gui manually by
running some function?
> I hope that someone understands what I want to do.
 Topic: Scrolling problem of TreeViewer while DND
icon12.gif  Re: Scrolling problem of TreeViewer while DND [message #499842 is a reply to message #446023 ] Tue, 24 November 2009 06:07
venkateshaare   is currently offline venkateshaare
Messages: 1
Registered: November 2009
Junior Member
Hi Shaiju!

I am new to Eclipse RCP.I am trying to build a treeviewer sample with my model.But I am having problem in building model for the treeviewer itself.

Can u send me some samples.So that I can move further.

I am trying to build tree with different objects as root and children as shown below,

Company
| ---Department
| |------Employee
|----Department
|------Employee

Thanks,
Venkatesh
Re: Scrolling problem of TreeViewer while DND [message #499943 is a reply to message #499842 ] Tue, 24 November 2009 09:49
Grant Gayed  is currently offline Grant Gayed
Messages: 1413
Registered: July 2009
Senior Member
FYI: You'll find some TreeViewer examples at
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.s nippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippet s/viewers/ .

Grant


"venkateshaare" <venkateshrjp.85@gmail.com> wrote in message
news:hegepu$gld$1@build.eclipse.org...
> Hi Shaiju!
>
> I am new to Eclipse RCP.I am trying to build a treeviewer sample with my
model.But I am having problem in building model for the treeviewer itself.
>
> Can u send me some samples.So that I can move further.
>
> I am trying to build tree with different objects as root and children as
shown below,
>
> Company
> | ---Department
> | |------Employee
> |----Department
> |------Employee
>
> Thanks,
> Venkatesh
 Topic: missing first column of a table
missing first column of a table [message #499859] Tue, 24 November 2009 07:10
Stella   is currently offline Stella
Messages: 31
Registered: July 2009
Member
Hi, I create table like in the snippet below and the first column of the table is missing. Any suggestions will be appreciated. Thanks.
import org.eclipse.swt.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;

/**
 * Displays a table
 */
public class TableTest {
	private boolean isPacked = false;
	Table table = null;
	
  public static void main(String[] args) {
    new TableTest().run();
  }

  public void run() {
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());
    table = new Table(shell, SWT.BORDER | SWT.SINGLE | SWT.VIRTUAL);
    for (int i = 0; i < 5; i++) {
      TableColumn column = new TableColumn(table, SWT.NONE);
      column.setText("Column" + Integer.toString(i));
    }
	table.setHeaderVisible(true);
	table.setLinesVisible(true);
	table.setItemCount(10);
	table.addListener(SWT.SetData, new Listener () {
	      public void handleEvent (Event event) {
	          TableItem item = (TableItem) event.item;
	          int index = table.indexOf(item);
	          for (int j = 0; j < 5; j++) {
	              item.setText(j, "(" + index + "," + j + ")");
	          }
	          if (! isPacked) {
	        	  isPacked = true;
	        	  for (int i =0; i < table.getColumnCount(); i++) {
	        		  System.out.println("Pack column " + i);
	        		  table.getColumn(i).pack();
	        	  }
	          }
	      }
	  }); 
	
    shell.pack();
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
    display.dispose();
  }
}
Re: missing first column of a table [message #499944 is a reply to message #499859 ] Tue, 24 November 2009 09:53
Grant Gayed  is currently offline Grant Gayed
Messages: 1413
Registered: July 2009
Senior Member
Columns 0-4 all show when I run your snippet on Windows 2000. Which
platform and swt version are you using?

Grant


"Stella" <stella_levin2003@yahoo.com> wrote in message
news:hegifa$56d$1@build.eclipse.org...
> Hi, I create table like in the snippet below and the first column of the
table is missing. Any suggestions will be appreciated. Thanks.
>
> import org.eclipse.swt.*;
> import org.eclipse.swt.layout.*;
> import org.eclipse.swt.widgets.*;
>
> /**
> * Displays a table
> */
> public class TableTest {
> private boolean isPacked = false;
> Table table = null;
>
> public static void main(String[] args) {
> new TableTest().run();
> }
>
> public void run() {
> Display display = new Display();
> Shell shell = new Shell(display);
> shell.setLayout(new FillLayout());
> table = new Table(shell, SWT.BORDER | SWT.SINGLE | SWT.VIRTUAL);
> for (int i = 0; i < 5; i++) {
> TableColumn column = new TableColumn(table, SWT.NONE);
> column.setText("Column" + Integer.toString(i));
> }
> table.setHeaderVisible(true);
> table.setLinesVisible(true);
> table.setItemCount(10);
> table.addListener(SWT.SetData, new Listener () {
> public void handleEvent (Event event) {
> TableItem item = (TableItem) event.item;
> int index = table.indexOf(item);
> for (int j = 0; j < 5; j++) {
> item.setText(j, "(" + index + "," + j + ")");
> }
> if (! isPacked) {
> isPacked = true;
> for (int i =0; i < table.getColumnCount(); i++) {
> System.out.println("Pack column " + i);
> table.getColumn(i).pack();
> }
> }
> }
> });
>
> shell.pack();
> shell.open();
> while (!shell.isDisposed()) {
> if (!display.readAndDispatch()) {
> display.sleep();
> }
> }
> display.dispose();
> }
> }
>
Re: missing first column of a table [message #499950 is a reply to message #499859 ] Tue, 24 November 2009 10:10
Stella   is currently offline Stella
Messages: 31
Registered: July 2009
Member
I run on GNU/Linux x86_64. swt_3.4.1.v3449c.
Thanks, Stella
Forum: GMF (Graphical Modeling Framework)
 Topic: Infinite Compartment
Re: Infinite Compartment [message #499797 is a reply to message #499768 ] Tue, 24 November 2009 03:36
Aurelien Pupier  is currently offline Aurelien Pupier
Messages: 90
Registered: July 2009
Location: Grenoble, FRANCE
Member
Hi,

you have to use Child reference and pointing the "referenced child" to an existing node mapping (in your case the same in which the child reference is defined)

Regards,

Aurelien Pupier
 Topic: GMF - How to create domain model and diagram in one file instead of two?
Re: GMF - How to create domain model and diagram in one file instead of two? [message #499811 is a reply to message #499568 ] Tue, 24 November 2009 04:36
SC   is currently offline SC
Messages: 2
Registered: November 2009
Junior Member
Thanks very much, this worked.
 Topic: Extending the diagram from another plugin project?
Re: Extending the diagram from another plugin project? [message #499807 is a reply to message #499714 ] Tue, 24 November 2009 04:22
Vlad Varnica  is currently offline Vlad Varnica
Messages: 172
Registered: July 2009
Senior Member
Hi Bastian,

We had a similar problem last year with the use of EMF. The problem we faced was that the jar packaging makes it impossible to change the code.
It is also better not to modify the code of existing plugins because after if Eclipse change then you can't upgrade. We have for example upgraded from Eclipse 3.3 to Eclipse 3.4 a customer project which has completely redone GMF for specific needs. The result was that its plugin was a real nightmare to upgrade to Eclipse 3.4 and the company lost 20% of existing features during the upgrade.

The solution was for us to paste and copy the code of the plugin inside our own source code, fix the problem and call our method and not EMF method inside our plugin.
It did the job !!
Re: Extending the diagram from another plugin project? [message #499858 is a reply to message #499807 ] Tue, 24 November 2009 07:00
Ed Merks  is currently offline Ed Merks
Messages: 15892
Registered: July 2009
Senior Member
Vlad,

Comments below.

Vlad Varnica wrote:
> Hi Bastian,
>
> We had a similar problem last year with the use of EMF. The problem we
> faced was that the jar packaging makes it impossible to change the code.
He's not asking to change the code. Extension is about reusing
libraries as they are provided...
>
> It is also better not to modify the code of existing plugins because
> after if Eclipse change then you can't upgrade. We have for example
> upgraded from Eclipse 3.3 to Eclipse 3.4 a customer project which has
> completely redone GMF for specific needs.
And was this modified version made publicly available in compliance with
the EPL?
> The result was that its plugin was a real nightmare to upgrade to
> Eclipse 3.4 and the company lost 20% of existing features during the
> upgrade.
As if anyone should need to have explained to them the problems with
modifying code provided by others...
>
> The solution was for us to paste and copy the code of the plugin
> inside our own source code, fix the problem and call our method and
> not EMF method inside our plugin.
> It did the job !!
Of course you'd never consider contributing a fix to the base, but
others do thank goodness.
Re: Extending the diagram from another plugin project? [message #499952 is a reply to message #499858 ] Tue, 24 November 2009 10:04
No Real Name  is currently offline No Real Name
Messages: 4
Registered: September 2009
Junior Member
Yes, Ed is right. I want to reuse the diagram project like a library and
therefore my separate plugin project needs to be registered at each
diagram instance. Does anybody else knows a solution for this?

Bastian

Ed Merks schrieb:
> Vlad,
>
> Comments below.
>
> Vlad Varnica wrote:
>> Hi Bastian,
>>
>> We had a similar problem last year with the use of EMF. The problem we
>> faced was that the jar packaging makes it impossible to change the code.
> He's not asking to change the code. Extension is about reusing
> libraries as they are provided...
>>
>> It is also better not to modify the code of existing plugins because
>> after if Eclipse change then you can't upgrade. We have for example
>> upgraded from Eclipse 3.3 to Eclipse 3.4 a customer project which has
>> completely redone GMF for specific needs.
> And was this modified version made publicly available in compliance with
> the EPL?
>> The result was that its plugin was a real nightmare to upgrade to
>> Eclipse 3.4 and the company lost 20% of existing features during the
>> upgrade.
> As if anyone should need to have explained to them the problems with
> modifying code provided by others...
>>
>> The solution was for us to paste and copy the code of the plugin
>> inside our own source code, fix the problem and call our method and
>> not EMF method inside our plugin.
>> It did the job !!
> Of course you'd never consider contributing a fix to the base, but
> others do thank goodness.
Pages (7): [1  2  3  4  5  6  7    »]