Eclipse Community Forums
Forum Search:

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

Forum: Papyrus
 Topic: Exporting UML from Papyrus to other Tools like EA
Re: Exporting UML from Papyrus to other Tools like EA [message #1758301 is a reply to message #1695188] Mon, 27 March 2017 11:59
Daniel Dekkers is currently offline Daniel DekkersFriend
Messages: 1
Registered: March 2017
Junior Member
EAComposer is innovative and simple-to-use enterprise architecture software tool. Use it to create business driven technology strategies, roadmaps, reference architectures and to manage your architecture portfolio

  • Attachment: logo.jpg
    (Size: 15.21KB, Downloaded 1 time)
 Topic: Create a State Machine Diagram programmatically
Create a State Machine Diagram programmatically [message #1758309] Mon, 27 March 2017 14:44
Miguel Conceição is currently online Miguel ConceiçãoFriend
Messages: 2
Registered: March 2017
Junior Member
Hi there!

I'm trying to create a program that draws Papyrus UML diagrams based on textual input (in detail: a specification written in my Xtext DSL).

Let's say I have an handler that would execute this function when I press a button on my Eclipse Application... How can I accomplish this?

How do I add states and transitions to my ModelSet, for example?

Any help is greatly appreciated! Thank you!
Forum: Java Development Tools (JDT)
 Topic: How to show svg type images from java code?
How to show svg type images from java code? [message #1758290] Mon, 27 March 2017 08:24
Anand Deshpande is currently offline Anand DeshpandeFriend
Messages: 1
Registered: March 2017
Junior Member
Does Eclipse support loading svg images from java code?
I get error whenever i try to load svg images from java.
Forum: EMF
 Topic: [CDO] Client side ID generation
Re: [CDO] Client side ID generation [message #1758308 is a reply to message #1715524] Mon, 27 March 2017 14:24
Gergo Olah is currently online Gergo OlahFriend
Messages: 1
Registered: July 2009
Junior Member
Hi Eike,

I have same problem, but I'am using PostgreSQLAdapter which has MaxTableNameLength limitation (63) in CDO.

I have to use CLIENT side id generation, because i would like to use Repository synchronization ( and as i know it is a requirement for this).

Do you know any workaround? Or any bug is submitted about this issue?

Regards,
Gergo
Forum: JFace
 Topic: [ComboViewer]Cannot get the add image for one item when using ComboViewer
Re: [ComboViewer]Cannot get the add image for one item when using ComboViewer [message #1758279 is a reply to message #1758209] Mon, 27 March 2017 03:16
Devin Xin is currently offline Devin XinFriend
Messages: 3
Registered: March 2017
Junior Member

Hi Brian,
Thanks very much for your replay.

I also checked the sorce code of ComboViewer, you are right, for ComboViewer, there is no ability to decorate with images.

Best Regards,
Devin
Forum: Jubula
 Topic: Searching for AUT-Path-Parameter instead of AUT-Config
Re: Searching for AUT-Path-Parameter instead of AUT-Config [message #1758280 is a reply to message #921812] Mon, 27 March 2017 04:26
muthuk ponnusamy is currently offline muthuk ponnusamyFriend
Messages: 5
Registered: March 2017
Junior Member
How to get the <autid>????????</autid> <autconfig>???????</autcofig> Values...
 Topic: Measure memory usage and/or memory leaks
Re: Measure memory usage and/or memory leaks [message #1758281 is a reply to message #1112947] Mon, 27 March 2017 04:51
muthuk ponnusamy is currently offline muthuk ponnusamyFriend
Messages: 5
Registered: March 2017
Junior Member
Hi ,

I am also looking forward about Memory leaks using Jubula??

I would be really help full for me ...


Thanks in Advance...!!!

Muthu
Forum: Eclipse Titan
 Topic: TCCLibraries small issue
Re: TCCLibraries small issue [message #1758285 is a reply to message #1758208] Mon, 27 March 2017 06:46
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 499
Registered: January 2015
Senior Member
Hi Naum,

thank you ; we don't test on Fedora, but we have looked into this and we see other small issues like this so we will initiate a new round of review.

Until then , please do commit you changes; you may follow the workflow described here:

https://docs.google.com/presentation/d/1dhZ0BGf5QPZYsRVZN1GZGD698PhcSpjyh_27ZH53l2M/edit#slide=id.g12171771d8_0_28

(please change the repo names accordingly)

Best regards
Elemer





Forum: Unide
 Topic: Support for raw IO-Link process data
Re: Support for raw IO-Link process data [message #1758286 is a reply to message #1758173] Mon, 27 March 2017 08:02
Joachim Stilz is currently offline Joachim StilzFriend
Messages: 5
Registered: March 2017
Junior Member
Yes, looks good.
Forum: Sirius
 Topic: Properties sheets after updating EEF
Re: Properties sheets after updating EEF [message #1758288 is a reply to message #1758207] Mon, 27 March 2017 08:10
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 322
Registered: July 2009
Senior Member
The framework can not provide a default implementation, it will really depend on what your custom widget does. In most cases it will be calling setEnabled() on your own SWT controls, but if your widget (or parts of it) mostly displays information and do not provide actions to edit the underlying model, those parts can stay functional. "setEnabled(false)" means "update the widget to disallow operations that may modify the model". Only you can tell what this implies in terms of disabling/graying out/hiding some or all of the SWT controls you put in your custom widget.
 Topic: Handle EMF Float attributes with aql
Re: Handle EMF Float attributes with aql [message #1758289 is a reply to message #1758269] Mon, 27 March 2017 08:23
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 322
Registered: July 2009
Senior Member
Hi.

This looks like https://bugs.eclipse.org/bugs/show_bug.cgi?id=506213, which was fixed in AQL, but currently only available in milestone releases. The fix will be included in the next release for Oxygen (in June).

Regards,
Pierre-Charles
Forum: Papyrus for Real Time
 Topic: Attaching data with a timeout signal
Re: Attaching data with a timeout signal [message #1758292 is a reply to message #1758244] Mon, 27 March 2017 08:49
Peter Cigehn is currently offline Peter CigehnFriend
Messages: 28
Registered: September 2014
Junior Member
Hi,

I am not fully sure what it is that did not work. I guess is that since *rtdata is a void pointer, you need to explicitly cast to an int pointer yourself, if that is what you meant did not work.

*(int *)rtdata


I have attached an small example model which demonstrates how this works.

Hope this helps,

/Peter Cigéhn
Forum: Lua Development Tools
 Topic: LDT crashes immediately in debug mode
Re: LDT crashes immediately in debug mode [message #1758293 is a reply to message #1756421] Mon, 27 March 2017 09:52
Simon Bernard is currently offline Simon BernardFriend
Messages: 325
Registered: July 2009
Senior Member
This is not the whole log, isn't it ?
Forum: EMF "Technology" (Ecore Tools, EMFatic, etc)
 Topic: [Edapt] Migrating a file with multiple model namespaces
Re: [Edapt] Migrating a file with multiple model namespaces [message #1758296 is a reply to message #1758191] Mon, 27 March 2017 10:57
Matthias Juchmes is currently offline Matthias JuchmesFriend
Messages: 21
Registered: March 2015
Junior Member
If I want to have one common history file, then it seems to me that I need to have dependencies on the specific ecore files, but that doesn't work because it would introduce a circle (the specific ecore files depend on the common ecore file, of course). Maybe I can have the history file in a different bundle, but even then every specific product would have dependencies on all the specific models of the other products, including the rat tail that comes with it in some cases.

The other approach of having the common history with every specific history is cleaner dependency-wise, but has a higher maintenance effort.

So it looks like I have to live with some tradeoffs in any case, except if I missed something with the common history approach?
Forum: TMF (Xtext)
 Topic: What is the generated file ".File.dslbin"?
Re: What is the generated file ".File.dslbin"? [message #1758294 is a reply to message #1758169] Mon, 27 March 2017 09:53
Stephane Galland is currently offline Stephane GallandFriend
Messages: 75
Registered: July 2014
Location: Belfort, France
Member
Let the following files exist after my DSL compiler has ran:

  • src/mypackage/myscript.dsl
  • src-gen/mypackage/MyType.java
  • src-gen/mypackage/.MyType.java._trace
  • src-gen/mypackage/.myscript.dslbin
  • bin/mypackage/MyType.class


I want to create the binary and source Jar files. Am I right by putting the different files as:

  • In myprogram-1.0.jar:

    • mypackage/MyType.class

  • In myprogram-1.0-sources.jar:

    • mypackage/myscript.dsl
    • mypackage/MyType.java
    • mypackage/.MyType.java._trace
    • mypackage/.myscript.dslbin



Thank you.
Stéphane.
Re: What is the generated file ".File.dslbin"? [message #1758297 is a reply to message #1758294] Mon, 27 March 2017 11:02
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 67
Registered: January 2016
Location: Kiel
Member

Are you referencing any other elements from our dsl then the inferred JVMElements.
If not then I recommend to link to the *.class concepts in binaries.
The *.dslbin are merely an optimization for loading referenced resources in editors.
Re: What is the generated file ".File.dslbin"? [message #1758299 is a reply to message #1758297] Mon, 27 March 2017 11:29
Stephane Galland is currently offline Stephane GallandFriend
Messages: 75
Registered: July 2014
Location: Belfort, France
Member
The generated content from myscript.dsl, i.e. the MyType.java content does not have any reference to types outside the standard Java API.
The myprogram-1.0.jar library is supposed to be included into the classpath of a third party program.

Assuming that this third party program is also written in a Xtext-based editor, is it a good practice to put the ".dslbin" file into the binary archive and not in the source archive, in order to increase the speed of the Xtext-based editor? Assuming that the source archive is not be given to the editing environment.

Or, is the best practice to put the ".dslbin" file into the source archive, and "force" the third-party programmer to link the binary and source archives in its Eclipse IDE?

All the best.
Stéphane.
Forum: Remote Application Platform (RAP)
 Topic: How to remove padding value from perspective's page layout
Re: How to remove padding value from perspective's page layout [message #1758298 is a reply to message #1758247] Mon, 27 March 2017 11:24
Frank Gruendel is currently offline Frank GruendelFriend
Messages: 12
Registered: January 2014
Junior Member
If, for example, the left part of your view is a Composite, and if you have a theming css file somewhere, you can try this:

In your css file:

Composite.KeyStringOfYourChoice
{
padding: 0px 0px 0px 0px;
}

In your java file:

final Composite yourComposite = new Composite(composite, SWT.NONE);
yourComposite.setData(RWT.CUSTOM_VARIANT, "KeyStringOfYourChoice");

This will work fine for all controls whose padding values can be controlled via CSS. An excellent page for finding this out would be http://download.eclipse.org/rt/rap/doc/3.0/guide/reference/theming/index.html
 Topic: How to align text in a TreeViewer cell
Re: How to align text in a TreeViewer cell [message #1758300 is a reply to message #1757810] Mon, 27 March 2017 11:31
Frank Gruendel is currently offline Frank GruendelFriend
Messages: 12
Registered: January 2014
Junior Member
Thanks, Ivan! Knowing that something can not be fixed at the moment is almost as helpful as being told a fix, because one doesn"t have to spend any more time on figuring out how to do it Smile
Forum: Newcomers
 Topic: Trying to Inspect a Scrap Book Page
Trying to Inspect a Scrap Book Page [message #1758278] Mon, 27 March 2017 01:37
Cameron Yule is currently offline Cameron YuleFriend
Messages: 1
Registered: March 2017
Junior Member
I create a scrapbook page to test code but I cannot inspect, it is disabled in the program. Any advice?
 Topic: Can't install
Re: Can't install [message #1758282 is a reply to message #1758266] Mon, 27 March 2017 04:51
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 2830
Registered: July 2009
Senior Member

Have you done the things prescribed there?
 Topic: Cannot setup a glassfish server environment in Eclipse Neon.3
Re: Cannot setup a glassfish server environment in Eclipse Neon.3 [message #1758283 is a reply to message #1758262] Mon, 27 March 2017 04:54
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 2830
Registered: July 2009
Senior Member

Is this a recent enough Glassfish plug-in?
 Topic: p2 mechanism cannot work as expected
p2 mechanism cannot work as expected [message #1758287] Mon, 27 March 2017 08:09
Devin Xin is currently offline Devin XinFriend
Messages: 3
Registered: March 2017
Junior Member

Hi All,

Recently I use p2 mechanism(not use p2 UI) to install my own plug-in, we use one scripts to install our plugins and features into one folder, and then create one link file into the dropins folder. By using this way, the installation can work as expected, but sometime, when we do the upgrade for the installed plugins(after we did some bug fix for current plugin, we need to update the installed version), it seems this way cannot work as expected, the eclipse still cache the old installed plugin, and after starting the eclipse, the installed plugin don't include the fixed feature.

After checking the bundles.info, I saw the newest plugin already been listed in this file. it's so strange.

And we also update our plugin version everytime when doing the installation.

As the page(please see https://wiki.eclipse.org/Equinox/p2/Getting_Started) said,
p2 supports the notion of watched directories. A watched directory is a place where a user or script can drop files and have them discovered by p2. it means p2 know which plugin should be used when starting eclipse? or anything wrong with my operation?

BTW, everytime, I must delete the ".eclipse" folder to let it work, this is so inconvenience.
As I understand, when using the p2 mechanism, this issue shouldn't happen anymore.
am I wrong?

Thanks for your help and time.
Best Regards,
Devin
 Topic: starting a new language editor
starting a new language editor [message #1758304] Mon, 27 March 2017 12:31
srikanth d is currently offline srikanth dFriend
Messages: 1
Registered: March 2017
Junior Member
Hi,

I am new to eclipse.
But i understand we can create IDEs for any language which we want to for example perl or python.

I too want to create a new IDE.
Do we have any guidelines or start booster or step by step procedure to achieve this in eclipse?

An example would be greatly appreciated.

Thanks,
Srikanth
Forum: Rich Client Platform (RCP)
 Topic: E3: Add a button to an EditorPart tool bar under some conditions
E3: Add a button to an EditorPart tool bar under some conditions [message #1758305] Mon, 27 March 2017 12:52
Djak Mising name is currently offline Djak Mising nameFriend
Messages: 13
Registered: November 2010
Junior Member
Hi,
I can't manage to add (or dsiplay) a tool bar button to an EditorPart tool bar under some conditions. The test I need to do is an instance of a member of a class ChartEditorPart that extends EditorPart.
If the following test is true:

editor.getComposite() instanceof JFCComposite


the button must be added to the tool bar otherwise the button must be hidden.
I'm tried to use org.eclipse.core.expressions.propertyTesters but I didn't manage to do that. Here is my menu contribution:

  <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="toolbar:AdvancedChartEditorToolBar">
         <command
               commandId="OpenJFCChartPropertiesEditor"
               icon="icons/silk_chart_edit.png"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <or>
                  <reference
                        definitionId="IsJFCComposite">
                  </reference>
               </or>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>


And some tests to use a property tester but I can't manage to access the EditorPart in the class of the tester:

<extension
         point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.txm.chartsengine.jfreechart.rcp.testers.IsJFCComposite"
            id="org.txm.chartsengine.jfreechart.rcp.testers.IsJFCComposite"
            namespace="org.txm.chartsengine.jfreechart.rcp.testers"
            properties="IsJFCComposite"
            type="java.lang.Object">
      </propertyTester>
   </extension>
   <extension
         point="org.eclipse.core.expressions.definitions">
      <definition
            id="IsJFCComposite">
         <test
               forcePluginActivation="true"
               property="org.txm.chartsengine.jfreechart.rcp.testers.IsJFCComposite">
         </test>
      </definition>
   </extension>


Do you think it is the most simple approach?

Any help would be very appreciated Smile

[Updated on: Mon, 27 March 2017 12:55]

Report message to a moderator

Forum: 4DIAC - Framework for Distributed Industrial Automation and Control
 Topic: Communication return codes enhancement proposal
Re: Communication return codes enhancement proposal [message #1758291 is a reply to message #1758223] Mon, 27 March 2017 08:26
Adrian Orive is currently offline Adrian OriveFriend
Messages: 18
Registered: March 2017
Junior Member
Alois Zoitl wrote on Fri, 24 March 2017 17:00
I think there is a misunderstanding with INIT- of the server. On INIT- the server should disconnect not only the client but also close any open accepting code, fully shutdown the communication and send an INIT-. The quite code is only need for the IP layer in case the client disconnected. Then another client should be able to connect without special notifications on the FB's interface.


I do understand this. When the client gets disconnected the external event is returning e_InitTerminated. The problem is that this check is being done outside the switch case structure, so when the server receives an INIT- itself he is also being quiet when he shouldn't. The fastest solution would be introducing this part inside the external events section.

Alois Zoitl wrote on Fri, 24 March 2017 19:22
I was shortly considering if we could replace your rCloseConnection with the destructor and save as an additional function call in commfb but I think the call order and vtable wouldn't be correct so the option you presented is sofar the best option. The only thing what I noticed is that if you give a default implementation of closeConnection in ComLayer the empty close connection would not be needed at all in asn1 and raw layer. Not sure what implication this then has.


Forcing layer implementations to declare the closeConnection and the openConnection may be desirable, even if they are empty, as this uniforms the API and makes the developer a bit more aware of what he can do. But the other approach (giving a default empty implementation) could also be useful removing the need of some lines of code in certain layers implementation. I think this topic is highly subjective. I don't see a clear winner myself.

Alois Zoitl wrote on Fri, 24 March 2017 19:22
Just one final thought on gerrit. The advantage what I learned reviewing contribution via gerrit in the last half year is that even if the code needs changes we can directly discuss with comments in the patch and then decie if it should be merged or a new commit overriding the old one is needed. SO maybe we should give it a try for your next suggestion.


I uploaded this suggestion too (first time using Gerrit, so if there's something wrong please tell me).
Re: Communication return codes enhancement proposal [message #1758295 is a reply to message #1758171] Mon, 27 March 2017 10:49
Adrian Orive is currently offline Adrian OriveFriend
Messages: 18
Registered: March 2017
Junior Member
Adrian Orive wrote on Fri, 24 March 2017 09:13

  1. Swap to a three enums scheme: connection, send and receive


As a proof of concept I have used this code to check how the following lines could be traslated as they were previously acting over a common type:
if(e_Nothing != eResp){
    STATUS() = scm_sResponseTexts[eResp & 0xF];
    QO() = !(eResp & scg_unComNegative);

    if(scg_unINIT & eResp){
        sendOutputEvent(scm_nEventINITOID);
    }
    else{
        sendOutputEvent(scm_nReceiveNotificationEventID);
    }
}


The checks are still easy to write and understand as they are and in my opinion they do not need to override some operator as I was suggesting before using three enums.

I also added an error return code for peer terminations for the IP layer. I think that the modbus and opc modules also return e_InitTerminated on peer problems right now so they should also swap to the new ones.
Re: Communication return codes enhancement proposal [message #1758306 is a reply to message #1758295] Mon, 27 March 2017 13:17
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 259
Registered: January 2014
Senior Member
Thanks for submitting to gerrit this realy helps us to review the code and we get also an inital check if you have signed the Eclispe Contributor asignment. I noticed that you commited your change to the 1.8.x branch. This branch is for maintaining the 1.8. releases. As your proposed change is quite a big one I would find it better that we do this in the development branch, which is the branch for working on the next release. Normally Gerrit allows to move commits between branches. Therefore I have to aks you that you put your changes into the development branch and push them again to gerrit. Sorry for the inconvinience.

Reviewing your code a again stumbled across the rCloseConnection function, which has a rather unnice name. Do you have an idea if we can give it a better name?

I some got the idea if we should move the layer creation and deletion process completly to the comfb. so the rCloseConnection wouldn't be needed. But I'm not sure if this is a good idea. What do you think?

Yes your code snipped shows that the changes on that level are not disturbing and rather easy to handle. I noticed two minor things:

  1. scm_sResponseTexts[eResp & 0xF] shouldn't you use scm_sResponseTexts[eResp & scg_unCodeMask]
  2. with the new codeing guidlines you can ommit the type specifier for your variable names. This makes the code nicer to read and easer to maintain. For example scm_sResponseTexts would get scmResponseTexts, scg_unCodeMask would get scgCodeMask.






Current Time: Mon Mar 27 14:49:15 GMT 2017

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

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