Can my Eclipse plugin use an Atelier project's credentials?

Suppose I want to create an Eclipse plugin designed to be added to Atelier, and my plugin needs to perform some processing on the server that the current Atelier project is configured to connect to.

Is there a way I can use the connection credentials that have already been entered by the user? I don't really want to make them enter these again into my own plugin.

  • + 1
  • 0
  • 367
  • 7
  • 1

Answers

Joyce answered this in a comment. I'm adding this as an answer so that the post no longer lists as "unanswered".

Comments

Hi John,

The credentials are kept in secure storage, so if you know your secure storage password you should be able to call the Eclipse APIs for secure storage. Michelle, another Atelier team member, is more familiar with this topic, but she is on vacation this week. I will let her know and she will reply to you soon.

Thanks,

Joyce

Joyce is correct - we plan to create an extention point that can be used by other plugins. Extension points allow Eclipse plugins to cooperate with other installed plugins. As a result, your plugin will have safe and reliable access to the server connection and all related information.

Alternatively, you can pull the password from secure storage directly. The internal keys and data format is subject to change, so use of this method should be temporary.

ISecurePreferences secureStore = SecurePreferencesFactory.getDefault().node("com.intersys.eclipse.connmgr");
ISecurePreferences connectionNode = secureStore.node("Connection Name");  // replace with connection name
String password = node.get("pass","default"); // replace default as necessary

 

Sounds good. Any estimate of when we'll get access to this?

We still plan to provide extension points, but customers have not requested this feature broadly. As a result, we have prioritized other features and bug fixes. You will be sure to see extension points made available as the product matures, though.

Hi John,

Out of curiosity - if you could share - what is your Plugin going to do?

Tani

Existing users of our Deltanji source code management tool, which runs natively inside Caché / Ensemble / HealthShare, may want to start using Atelier without having first to re-engineer their source control. I foresee a need for an Atelier user to be able to interact with a Deltanji dialog and then trigger a server-side action.