Eclipse Community Forums
Forum Search:

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

Forum: C / C++ IDE (CDT)
 Topic: Where is ${COMMAND} defined (indexer uses it)
Where is ${COMMAND} defined (indexer uses it) [message #1764015] Wed, 24 May 2017 04:05
Andrew Voelkel is currently offline Andrew VoelkelFriend
Messages: 4
Registered: September 2016
Junior Member
I've been generally very confused about how to set up build variables that are more global than project level, so that I can create platform independent projects.

I've noticed that the ARM indexer wants to use the ${COMMAND} variable for its gcc/g++ command when indexing, but it doesn't seem to work. In order to find out why, I'd like to know who is supposed to be defining ${COMMAND} and how I could find out its value in the project properties, but I can't figure out either.

Can someone help me?

Very confused ...

- Andy
Forum: Paho
 Topic: Paho MQTT C Client Issue
Re: Paho MQTT C Client Issue [message #1764016 is a reply to message #1763982] Wed, 24 May 2017 04:57
Vicky Sharma is currently offline Vicky SharmaFriend
Messages: 2
Registered: May 2017
Junior Member
Hi Ian ,

Actually the below code execution was taking place inside onConnect callback and got stuck for mutex lock.I changed my logic and it resolved my problem on my device(imx6 board).

But i am not sure why it was running when i tried it on linux.

if ((rc = MQTTAsync_sendMessage(client, topicName, &pubmsg, &opts)) !=
MQTTASYNC_SUCCESS) {
ERROR("Failed to start sendMessage, return code %d\n", rc);
}

// Check it the client is connected.For application restart case.
if(MQTTAsync_isConnected(client) == true){
// Wait for final response if client is disconnected at the time of
// event.
MQTTAsync_waitForCompletion(client, opts.token, 10000L);
}

Thanks
Forum: Plugin Development Environment (PDE)
 Topic: Getting Eclipse Preference Page values Programmatically
Re: Getting Eclipse Preference Page values Programmatically [message #1764018 is a reply to message #1763533] Wed, 24 May 2017 05:46
saravanakumar Mohanasundaram is currently offline saravanakumar MohanasundaramFriend
Messages: 10
Registered: February 2017
Junior Member
Hello All,
I got a answer.

Go to the work space location and then move to this location : .metadata\.plugins\org.eclipse.core.runtime\.settings.
In that folder you can find the file: org.eclipse.wst.xml.ui.prefs

Node Id : org.eclipse.wst.xml.ui
Key1: xml_content_assist_default_page_sort_order
Key2: xml_content_assist_own_page_sort_order

Value : org.eclipse.wst.xml.ui.proposalCategory.xmlTemplates\u0000org.eclipse.wst.xml.ui.proposalCategory.xmlTags\u0000

In the above value, you can the order of category

Use this following code:
Preferences prefs = (Preferences) InstanceScope.INSTANCE
				.getNode(Node Id);
prefs.put(Key1,
				value);
prefs.put(Key2,
				value);



Regards,
saravanakumar

[Updated on: Wed, 24 May 2017 05:51]

Report message to a moderator

Forum: TMF (Xtext)
 Topic: Xtext : Personalize Description
Re: Xtext : Personalize Description [message #1764021 is a reply to message #1763989] Wed, 24 May 2017 06:56
Pascal Lacabanne is currently online Pascal LacabanneFriend
Messages: 10
Registered: November 2016
Junior Member
Thank you. You save me, it works.
Forum: Papyrus for Real Time
 Topic: rtBound signal is not shown in message list
Re: rtBound signal is not shown in message list [message #1764022 is a reply to message #1763965] Wed, 24 May 2017 07:31
Peter Cigehn is currently offline Peter CigehnFriend
Messages: 38
Registered: September 2014
Member
Mojtaba Bagherzadeh wrote on Tue, 23 May 2017 12:53
Thanks a lot, setting the language fixed the problem.


Good! Keep in mind also that the default language for the model also controls the behavior of the code snippet view where you enter the action code. The code snippet view ensures that the opaque behaviors for transition effect, entry and exit for states, and opaque expressions for guards, have the correct language set based on the default language for the model (something that you as a user really should not have to bother about).

So the default language setting is pretty fundamental for several tooling aspects, not only for ensuring that rtBound/rtUnbound are available for selection when creating a transition trigger.

So the tip is that for any new models that you create with 0.9, always use the "UML-RT for C++" template, since then you get the default language set to C++ "automagically".

/Peter Cigéhn
Forum: Newcomers
 Topic: Confusing Property Types
Re: Confusing Property Types [message #1764017 is a reply to message #1763948] Wed, 24 May 2017 05:12
Philip Schröder is currently offline Philip SchröderFriend
Messages: 19
Registered: January 2017
Junior Member
That is exactly why I asked the staff here afterwards to move the topic.
I didn't find any possible way to move it or delete and recreate it.

Do you know how to do it?

Best regards

Philip.

[Updated on: Wed, 24 May 2017 05:13]

Report message to a moderator

Re: Confusing Property Types [message #1764024 is a reply to message #1764017] Wed, 24 May 2017 07:57
Ed Merks is currently online Ed MerksFriend
Messages: 28442
Registered: July 2009
Senior Member
I'm not sure there is a way to do that. I don't know how in any case. Just create a new posting...
Forum: 4DIAC - Framework for Distributed Industrial Automation and Control
 Topic: Set up Unit Test project in VS
Set up Unit Test project in VS [message #1764025] Wed, 24 May 2017 07:59
Marc Jakobi is currently online Marc JakobiFriend
Messages: 18
Registered: April 2017
Junior Member
Hi.

I am attempting to set up a Unit Test project using the Microsoft Unit Testing Framework for C++, with which I intend to validate function blocks against data stored in CSV files.

I have created a project in VS and set the following additional include directories:


  • ...\FORTE\src\stdfblib\events;
  • ...\FORTE\src\modules\mqtt_paho;
  • ...\FORTE\src\core\utils;
  • ...\FORTE\src\core\datatypes;
  • ...\FORTE\src\core\cominfra;
  • ...\FORTE\src\core;
  • ...\FORTE\src\arch\win32;
  • ...\FORTE\src\arch;
  • ...\FORTE\src\.;
  • ...\FORTE\bin\win32;
  • ...\FORTE\bin\win32\src_gen;
  • ...\FORTE\src\modules\PVprog;


When building the solution, I get the following error in the forte_any header: "Endianess is not defined!" (if I #include any of my FB classes).

This is where I am currently stuck. Are there any other directories I need to include or is this a different issue? (I am relatively new to Visual Studio).

Thanks in advance for any support!

[Updated on: Wed, 24 May 2017 08:04]

Report message to a moderator

Forum: Java Development Tools (JDT)
 Topic: LDAP server startup logs
LDAP server startup logs [message #1764014] Wed, 24 May 2017 02:50
KEDAR SIRSHIKAR is currently offline KEDAR SIRSHIKARFriend
Messages: 6
Registered: April 2017
Junior Member
I am trying to start LDAP server in eclipse but it is not getting started. I want to rectify what went wrong. May I know where can I refer the logs generated?
I have views for Modification, Error and Search logs but those are not helpful in this particular case.
Re: LDAP server startup logs [message #1764023 is a reply to message #1764014] Wed, 24 May 2017 07:56
Ed Merks is currently online Ed MerksFriend
Messages: 28442
Registered: July 2009
Senior Member
I'm not sure which Eclipse project provides an LDAP server but it's not the JDT project. Best to determine where this technology originates and ask on that project's forum.
 Topic: Eclipse wrong formatting of Override non-Javadoc
Eclipse wrong formatting of Override non-Javadoc [message #1764020] Wed, 24 May 2017 06:40
Sverre Moe is currently offline Sverre MoeFriend
Messages: 30
Registered: September 2012
Member
Eclipse is messing up code with format

Take this piece of code: This is how eclipse would add the non-Javadoc with ALT+SHIFT+J
            /* (non-Javadoc)
             * @see javafx.util.StringConverter#fromString(java.lang.String)
             */
            @Override
            public Number fromString(String string) {


Try formatting this piece of code and it messes it up: CTRL+SHIFT+F
            /*
             * (non-Javadoc)
             * 
             * @see javafx.util.StringConverter#fromString(java.lang.String)
             */
            @Override
            public Number fromString(String string) {


How can I avoid this? The problem is you get unnecessary whitepace that messes up git diff.

[Updated on: Wed, 24 May 2017 06:42]

Report message to a moderator

Re: Eclipse wrong formatting of Override non-Javadoc [message #1764026 is a reply to message #1764020] Wed, 24 May 2017 08:06
Ed Merks is currently online Ed MerksFriend
Messages: 28442
Registered: July 2009
Senior Member
You'd have to change Java Formatter preferences on the Comments tab; probably you don't want "Blank line before Javadoc tags" enabled.



Current Time: Wed May 24 08:07:18 GMT 2017

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

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