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

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: 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: 15894
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: 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: Eclipse Foundation
 Topic: Eclipse DemoCamps, Nov. 29-Dec. 5: Austria, Germany, Hungary, U.S.
Eclipse DemoCamps, Nov. 29-Dec. 5: Austria, Germany, Hungary, U.S. [message #499971] Tue, 24 November 2009 10:53
Lynn Gayowski  is currently offline Lynn Gayowski
Messages: 236
Registered: July 2009
Senior Member
Upcoming Eclipse DemoCamps for the week of November 29 - December 5 are:

Vienna, Austria - November 30
Bay Area, CA, U.S. - December 2
Budapest, Hungary - December 3
Karlsruhe, Germany - December 3
Hamburg, Germany - December 4

To register and to view other locations, check out the DemoCamp wiki. I hope you can join us!
Forum: M2M (model-to-model transformation)
 Topic: [ATL] Unique lazy rules with multiple arguments
[ATL] Unique lazy rules with multiple arguments [message #499815] Tue, 24 November 2009 04:46
Marcel   is currently offline Marcel
Messages: 32
Registered: July 2009
Member
Hello,

I am developing a transformation that uses lazy rules, of which some are unique.
These lazy rules take two model elements as argument, e.g. a and b.

I created a model for testing my transformation, that calls a lazy rule twice.
The model element for argument a is the same in both calls.
The model element for argument b is different.

The problem occurs with the unique lazy rules.
Two model elements should be created, one for each call since the arguments are not the same.
However, only one is created.

Do I misunderstand the way unique lazy rules with multiple arguments work or may something else be wrong?
 Topic: [ATL] lazy rules condition
Re: [ATL] lazy rules condition [message #499820 is a reply to message #499440 ] Tue, 24 November 2009 04:49
Marcel   is currently offline Marcel
Messages: 32
Registered: July 2009
Member
I have had the same problem.
Instead of putting the condition on the lazy rule, I made a selection before the lazy rule is called.
In this way, the selection is done on beforehand and you don't need a condition in the lazy rule.

I would also like to know why it appears that this condition is not evaluated.
 Topic: How ATL is different from Xtend
How ATL is different from Xtend [message #499897] Tue, 24 November 2009 08:44
kiran   is currently offline kiran
Messages: 1
Registered: October 2009
Junior Member
As i'm aware of xtend scripts in oaw that does m2m transformation.Also ATL supports the same. Since i'm new to ATL , can you please inform me the merits of ATL over xtend. When should i choose ATL over Oaw ?

It would be great if any one of you have faced performance problems when dealing with huge models

Thanks

Kiran
 Topic: [QVTo] Unrecognized variable
Re: [QVTo] Unrecognized variable [message #499805 is a reply to message #499672 ] Tue, 24 November 2009 04:11
C. Kopf  is currently offline C. Kopf
Messages: 6
Registered: November 2009
Junior Member
Hi Radek,

I will now check the ecore models in a text editor. I have also tried to use other elements of the Arsep3 package. Always the same, so I wonder wether there is an issue with the way i reffered to the package?! The URI is the one specified in the ecore model and shown in the metamodel explorer. I compared everything to the simpleUMLtoRDB-Example but I did not find a differenc yet. So lets see what may be found using a text-editor.

Well, actually I do not see a problem in contributing some of my results to QVTO. But I would prever to do this with a bigger one, for example the ArsepToOctp5 transformation. It will still take some time untill this will be finished, but when its done, well why not contributing it as an additive example, probably with a short How-To-Start. I am looking forward to it.
Re: [QVTo] Unrecognized variable [message #499837 is a reply to message #499805 ] Tue, 24 November 2009 05:51
C. Kopf  is currently offline C. Kopf
Messages: 6
Registered: November 2009
Junior Member
Well I found out the following:

The ecore model as is has several subpackages and a total "package-nesting-level" > 4.
Arrow
When using the same ecore-metamodel from the workspace location I can reach the element the way:

ARSEP::genericstructure::infrastructure::arsep::ARPart


Exclamation
the same does not work, when using the same ecore model from platform location. (I need it that way, because my tranformation should use the ecore model of an already existing eclipse-plugin.)
In the metamodel-explorer the URI of the element is shown in brackets (Arsep3.genericstructure.infrastructure.arsep.ARPart) but the subpackage structure is not shown anymore for the ecore metamodel at platform. (and the other way around for the same ecore model at workspace location)

Question
So the question is, how can I refer to the element (ARPart) when using the metamodel at the platform?

Thanks again for your help!

Chris

[Updated on: Tue, 24 November 2009 05:53]

Re: [QVTo] Unrecognized variable [message #499853 is a reply to message #499837 ] Tue, 24 November 2009 06:34
Eclipse User
Originally posted by: dvorak.radek.gmail.com

Hi Chris,

Comments below.

Regards,
/Radek


On Tue, 24 Nov 2009 11:51:32 +0100, C. Kopf
<christian.kopf@fokus.fraunhofer.de> wrote:

> Well I found out the following:
>
> The ecore model as is has several subpackages and a total
> "package-nesting-level" > 4.
> :arrow: When using the same ecore-metamodel from the workspace location
> I can reach the element the way:
>
> ARSEP::genericstructure::infrastructure::arsep::ARPart

In general, nested packages in EMF is not the best idea, try to
search for what the EMF folks have said about that ;)

When resolving qualified name using modeltype, the rest of the name path
is resolved against the package the modeltype declaration refers to.
You say you have 4 level nesting, so use
ARSEP::infrastructure::arsep::ARPart

Note, you can declare a model type for any package in the hierarchy, like

modeltype INFRA uses "specific uri for 'infrastructure' package".

This could help in reducing verbosity of your type references.

>
> :!: the same does not work, when using the same ecore model from
> platform location. (I need it that way, because my tranformation should
> use the ecore model of an already existing eclipse-plugin.)
> In the metamodel-explorer the URI of the element is shown in brackets
> (Arsep3.genericstructure.infrastructure.arsep.ARPart) but the subpackage
> structure is not shown anymore for the ecorer metamodel at platform.
>

Well, EMF does not generate Java code for empty packages so unless the
generated
subpackages custom modify its initialization code to refer to a dummy
parent package
(as OCL, QVT metamnodels do), the browser has no idea about them as they do
not get into the global registry.
If the package is loaded from an ecore file the hierarchical relationship
is clearly there.

> :?: So the question is, how can I refer to the element (ARPart) when
> using the metamodel at the platform?
>
> Thanks again for your help!
>
> Chris
>
>
Re: [QVTo] Unrecognized variable [message #499881 is a reply to message #499853 ] Tue, 24 November 2009 08:16
C. Kopf  is currently offline C. Kopf
Messages: 6
Registered: November 2009
Junior Member
Hi radek,

thanks again for your help, comments below again.

Eclipse User wrote on Tue, 24 November 2009 06:34
Originally posted by: dvorak.radek.gmail.com

Hi Chris,

Comments below.

Regards,
/Radek


On Tue, 24 Nov 2009 11:51:32 +0100, C. Kopf
<christian.kopf@fokus.fraunhofer.de> wrote:

> Well I found out the following:
>
> The ecore model as is has several subpackages and a total
> "package-nesting-level" > 4.
> Arrow When using the same ecore-metamodel from the workspace location
> I can reach the element the way:
>
> ARSEP::genericstructure::infrastructure::arsep::ARPart

In general, nested packages in EMF is not the best idea, try to
search for what the EMF folks have said about that Wink


Well i got that. Probably I should first of all use a different name for ist Wink "hierarchy-depth", sorry!
I do not get the permission to change the ecoremodel.
Quote:

When resolving qualified name using modeltype, the rest of the name path
is resolved against the package the modeltype declaration refers to.
You say you have 4 level nesting, so use
ARSEP::infrastructure::arsep::ARPart


Well i meant the hierarchy-depth is more than 4 ( > ) - dont mind.
Quote:

Note, you can declare a model type for any package in the hierarchy, like

modeltype INFRA uses "specific uri for 'infrastructure' package".

This could help in reducing verbosity of your type references.


That works, but only when using the metamodel from the platform, which is actually what I want, so this is fine so far. But is there no simple way to address the element? in my ecore model more than 40 (sub)packages exist, do I really need to specify a modeltype for each?
Quote:

>
> Exclamation the same does not work, when using the same ecore model from
> platform location. (I need it that way, because my tranformation should
> use the ecore model of an already existing eclipse-plugin.)
> In the metamodel-explorer the URI of the element is shown in brackets
> (Arsep3.genericstructure.infrastructure.arsep.ARPart) but the subpackage
> structure is not shown anymore for the ecorer metamodel at platform.
>

Well, EMF does not generate Java code for empty packages so unless the
generated
subpackages custom modify its initialization code to refer to a dummy
parent package
(as OCL, QVT metamnodels do), the browser has no idea about them as they do
not get into the global registry.
If the package is loaded from an ecore file the hierarchical relationship
is clearly there.

> Question So the question is, how can I refer to the element (ARPart) when
> using the metamodel at the platform?
>
> Thanks again for your help!
>
> Chris
>
>



well let me add some of the code, probably that'll make things clearer.

modeltype ARSEP uses Arsep3('http://as3.org/3.1.1');
modeltype oCTp uses oCTp5metamodel('http://www.svc17.de/compiler/octp5.ecore');


transformation ArsepToOctp5(in arsep : ARSEP, out octp : OCTP);

main() {
	arsep.objectsOfType(ARPart)->map arpackage2module();
}
// ...

Changing ARPart into ARSEP::genericstructure::infrastructure::arsep::ARPart did not help as said. It is still marked as "unrecognized variable".



and the part of the ecore file (as I mentioned above the file as is, is much bigger, with more than 40 subpackages included):

<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">
<ecore:EPackage name="ARSEP" nsURI="http://as3.org/3.1.1" nsPrefix="ar">
<eSubpackages name="genericstructure" nsURI="http://as3.org/3.1.1/gs" nsPrefix="ar">
  <eSubpackages name="infrastructure" nsURI="http://as3.org/3.1.1/gs/i" nsPrefix="ar">
   <eSubpackages name="arsep" nsURI="http://as3.org/3.1.1/gs/i/a" nsPrefix="ar">
	<eClassifiers xsi:type="ecore:EClass" name="ARPart">
            <eAnnotations source="Stereotype">
                <details key="Stereotype" value="splitable"/>
            </eAnnotations>
            <eStructuralFeatures xsi:type="ecore:EReference" name="subPackages" upperBound="-1"
                 containment="true">
<!-- ... -->
              <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
                <details key="documentation" value="Contained sub packages."/>
              </eAnnotations>
              <eAnnotations source="Stereotype">
                <details key="Stereotype" value="splitable"/>
              </eAnnotations>
            </eStructuralFeatures>
	</eClassifiers>
  </eSubpackages>
 </eSubpackages>
</eSubpackages>
</ecore:EPackage>
</xmi:XMI>


In the Metamodel-Explorer-View this part is shown (in platform) as follows:

- platform
....- Arsep
........- ARPart [arsep.genericstructure.infrastructure.arsep.ARPart]



Thanks a lot for your help and sorry for bothering you again!

[Updated on: Tue, 24 November 2009 08:39]

Re: [QVTo] Unrecognized variable [message #499960 is a reply to message #499881 ] Tue, 24 November 2009 10:12
Eclipse User
Originally posted by: dvorak.radek.gmail.com

Hi Chris,

Referring to your previous post, saying

>> When using the same ecore-metamodel from the workspace location I can
>> reach the element the way:
>> ARSEP::genericstructure::infrastructure::arsep::ARPart
>> :!: the same does not work, when using the same ecore model from
>> platform location. (I need it that way, because my tranformation should
>> use the ecore model of an already existing eclipse-plugin.)
>> In the metamodel-explorer the URI of the element is shown in brackets
>> (Arsep3.genericstructure.infrastructure.arsep.ARPart) but the
>> subpackage structure is not shown anymore for the ecorer metamodel at
>> platform.

Check please if the root package in your ecore file contains any
EClassifiers.
As I have mentioned, empty packages (not counting its subpackages) do not
have a generated Java package populated into package registry in the
running
platform.

That is most likely the reason why you have different resolution in
worskpace vs. platform.

Type references can be qualified - <modeltype>::<p1>::..::<pn>, where <p1>
is a
subpackage of the modeltype referenced package.

or simple - just a simple type name resolved with the scope of packages
referenced by declared
modeltypes. Though the spec says packages should be searched recursively,
the implementation
does not do that, a known issue. Raise an SCR if it's essential for you.


Regards,
/Radek


On Tue, 24 Nov 2009 14:16:45 +0100, C. Kopf
<christian.kopf@fokus.fraunhofer.de> wrote:

> Hi radek,
>
> thanks again for your help, comments below again.
>
> Eclipse User wrote on Tue, 24 November 2009 06:34
>> Originally posted by: dvorak.radek.gmail.com
>> Hi Chris,
>> Comments below.
>> Regards,
>> /Radek
>> On Tue, 24 Nov 2009 11:51:32 +0100, C. Kopf
>> <christian.kopf@fokus.fraunhofer.de> wrote:
>> > Well I found out the following:
>> >
>> > The ecore model as is has several subpackages and a total >
>> "package-nesting-level" > 4.
>> > :arrow: When using the same ecore-metamodel from the workspace
>> location > I can reach the element the way:
>> >
>> > ARSEP::genericstructure::infrastructure::arsep::ARPart
>> In general, nested packages in EMF is not the best idea, try to
>> search for what the EMF folks have said about that ;)
>> Well i got that. Probably I should first of all use a different name
>> for ist ;) "hierarchy-depth", sorry!
>> I do not get the permission to change the ecoremodel.
>> When resolving qualified name using modeltype, the rest of the name
>> path
>> is resolved against the package the modeltype declaration refers to.
>> You say you have 4 level nesting, so use
>> ARSEP::infrastructure::arsep::ARPart
>
> Well i meant the hierarchy-depth is more than 4 ( > ) - dont mind.
> Quote:
>> Note, you can declare a model type for any package in the hierarchy,
>> like
>> modeltype INFRA uses "specific uri for 'infrastructure' package".
>> This could help in reducing verbosity of your type references.
>
> That works, but only when using the metamodel from the platform, which
> is actually what I want, so this is fine so far. But is there no simple
> way to address the element? in my ecore model more than 40 (sub)packages
> exist, do I really need to specify a modeltype for each?
> Quote:
>> >
>> > :!: the same does not work, when using the same ecore model from >
>> platform location. (I need it that way, because my tranformation
>> should > use the ecore model of an already existing eclipse-plugin.)
>> > In the metamodel-explorer the URI of the element is shown in
>> brackets > (Arsep3.genericstructure.infrastructure.arsep.ARPart) but
>> the subpackage > structure is not shown anymore for the ecorer
>> metamodel at platform.
>> >
>> Well, EMF does not generate Java code for empty packages so unless
>> the generated
>> subpackages custom modify its initialization code to refer to a dummy
>> parent package
>> (as OCL, QVT metamnodels do), the browser has no idea about them as
>> they do
>> not get into the global registry.
>> If the package is loaded from an ecore file the hierarchical
>> relationship is clearly there.
>> > :?: So the question is, how can I refer to the element (ARPart)
>> when > using the metamodel at the platform?
>> >
>> > Thanks again for your help!
>> >
>> > Chris
>> >
>> >
>
>
>
> well let me add some of the code, probably that'll make things clearer.
>
> modeltype ARSEP uses Arsep3('http://as3.org/3.1.1');
> modeltype oCTp uses
> oCTp5metamodel('http://www.svc17.de/compiler/octp5.ecore');
>
>
> transformation ArsepToOctp5(in arsep : ARSEP, out octp : OCTP);
>
> main() {
> arsep.objectsOfType(ARPart)->map arpackage2module();
> }
> // ...
> Changing ARPart into
> ARSEP::genericstructure::infrastructure::arsep::ARPart did not help as
> said. It is still marked as "unrecognized variable".
>
>
>
> and the part of the ecore file (as I mentioned above the file as is, is
> much bigger, with more than 40 subpackages included):
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">
> <ecore:EPackage name="ARSEP" nsURI="http://as3.org/3.1.1" nsPrefix="ar">
> <eSubpackages name="genericstructure" nsURI="http://as3.org/3.1.1/gs"
> nsPrefix="ar">
> <eSubpackages name="infrastructure" nsURI="http://as3.org/3.1.1/gs/i"
> nsPrefix="ar">
> <eSubpackages name="arsep" nsURI="http://as3.org/3.1.1/gs/i/a"
> nsPrefix="ar">
> <eClassifiers xsi:type="ecore:EClass" name="ARPart">
> <eAnnotations source="Stereotype">
> <details key="Stereotype" value="splitable"/>
> </eAnnotations>
> <eStructuralFeatures xsi:type="ecore:EReference"
> name="subPackages" upperBound="-1"
> containment="true">
> <!-- ... -->
> <eAnnotations
> source="http://www.eclipse.org/emf/2002/GenModel">
> <details key="documentation" value="Contained sub
> packages."/>
> </eAnnotations>
> <eAnnotations source="Stereotype">
> <details key="Stereotype" value="splitable"/>
> </eAnnotations>
> </eStructuralFeatures>
> </eClassifiers>
> </eSubpackages>
> </eSubpackages>
> </eSubpackages>
> </ecore:EPackage>
> </xmi:XMI>
>
> In the Metamodel-Explorer-View this part is shown (in platform) as
> follows:
>
> - platform
> - Arsep
> - ARPart [arsep.genericstructure.infrastructure.arsep.ARPart]
>
>
>
> Thanks a lot for your help and sorry for bothering you again!
 Topic: How to register ATL Meta Model
How to register ATL Meta Model [message #499989] Tue, 24 November 2009 11:24
ralph.  is currently offline ralph.
Messages: 2
Registered: November 2009
Junior Member
Hi,

how can I register the ATL meta model in the EMF registry? I tried the following in the plugin.xml:

 <extension
         point="org.eclipse.emf.ecore.dynamic_package">
      <resource
            location="platform:/plugin/org.eclipse.m2m.atl.common/src/org/eclipse/m2m/atl/common/resources/ATL.ecore"
            uri="http://www.eclipse.org/gmt/2005/ATL">
      </resource>
   </extension>


But the ecore sample editor says:

Quote:

org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.eclipse.org/gmt/2005/ATL' not found. (platform:/resource/test/Families2Persons.ecore, 5, 59)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getPackageForURI(X MLHandler.java:2590)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.getFactoryForPrefi x(XMLHandler.java:2421)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createObjectByType (XMLHandler.java:1299)
at org.eclipse.emf.ecore.xmi.impl.XMLHandler.createTopObject(XM LHandler.java:1468)



Do you have any hint on registering the ATL Meta Model?

Thanks,

Ralph

[Updated on: Tue, 24 November 2009 11:25]

Forum: GEF
 Topic: Add sth.to the palette view
Re: Add sth.to the palette view [message #499808 is a reply to message #499542 ] Tue, 24 November 2009 04:20
Eclipse User
Originally posted by: ean.informatik.uni-kiel.de

Hello,

the palette is only available if you open an file associated with your
MainEditor. The way you initialize the palette seems correct for me. You
can try with a breakpoint that the method is called when you open a file
for your MainEditor.

best regards,
Eckhard

Alexander Mack schrieb:
> Hello,
> I am reading tutorials and articles about GEF. At the moment I am trying
> to program an simple GEF plugin for painting rectangles and ellipses...
> Now I want to add some items in the palette view. But unfortunately it
> does not work the way I like.
> Nothing will be displayed..
>
> I extend the GraphicalEditorWithPalette class in my MainEditor and have
> overwritten the getRootPalette function:
>
> protected PaletteRoot getPaletteRoot() {
> PaletteRoot root = new PaletteRoot();
> //root.add(new SelectionToolEntry());
> //root.add(new MarqueeToolEntry());
> PaletteGroup group = new PaletteGroup("tools");
> group.add(new SelectionToolEntry());
> group.add(new MarqueeToolEntry());
> root.add(group);
> return root;
> }
>
> The platte view always says that it is not availiable...
>
> I don't really know what the problem is so a would appreciate any help.
>
> Best regards
> Alex
 Topic: Custom SWT widgets in palette
Re: Custom SWT widgets in palette [message #500000 is a reply to message #498422 ] Tue, 24 November 2009 11:49
Eddie Galvez  is currently offline Eddie Galvez
Messages: 72
Registered: July 2009
Member
+1 -- for example, I was hoping I could at least put in an AbstractTreeEditPart, but it looks like the palette really wants things to start with a PaletteRoot and from there on only have PaletteEntrys?

Forum: DSDP - Target Management
 Topic: Getting remote connection
Re: Getting remote connection [message #500004 is a reply to message #498313 ] Tue, 24 November 2009 11:52
David McKnight  is currently offline David McKnight
Messages: 84
Registered: July 2009
Member
Hi Martin,

Assuming this IFile is a temp file in the RemoteSystemsTempFile project, you
can get at the remote information by using the SystemIFileProperties class.
For example:
SystemIFileProperties properties = new SystemIFileProperties(resource);

String ssStr = properties.getRemoteFileSubSystem();

ISubSystem ss = RSECorePlugin.getTheSystemRegistry().getSubSystem(ssStr);


Dave

"Martin Tauber" <martin.tauber@t-online.de> wrote in message
news:hdrhte$o2$2@build.eclipse.org...
> Hi Everybody,
>
> I have the following challange:
>
> I am using the rse filesystem. Now in my program I am using IFiles. Is
> there a way to find out which connection is used to access the real file
> (I would like to run a command on the remote host)
>
> Thanks
> Martin
Pages (9): [1  2  3  4  5  6  7  8  9    »]