<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
aah - good catch ;)<br>
<br>
/max<br>
<br>
Alexey Kazakov wrote:
<blockquote cite="mid:4A93AA96.9010809@exadel.com" type="cite">
<meta content="text/html; charset=GB2312" http-equiv="Content-Type">
Don't forget to node.flush();<br>
<br>
Denny Xu wrote:
<blockquote cite="mid:4A93A976.3040206@redhat.com" type="cite">
<pre wrap="">Max Rydahl Andersen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">that is also my understanding.
Rob, could you show the *exact* code you have done which doesn't store
it ?
</pre>
</blockquote>
<pre wrap=""><!---->Rob seems to be sleeping ;)
here is this code:
String qualifier =
ESBProjectCorePlugin.getDefault().getDescriptor().getUniqueIdentifier();
IScopeContext context = new ProjectScope(project);
IEclipsePreferences node = context.getNode(qualifier);
if (node != null)
node.putDouble(IJBossESBFacetDataModelProperties.ESB_PROJECT_VERSION, 2.0);
when retrieve the value:
IProject p = getProject();
String qualifier =
ESBProjectCorePlugin.getDefault().getDescriptor().getUniqueIdentifier();
IScopeContext context = new ProjectScope(p);
IEclipsePreferences node = context.getNode(qualifier);
if (node != null) {
double d =
node.getDouble(IJBossESBFacetDataModelProperties.ESB_PROJECT_VERSION, 1.0);
Denny
</pre>
<blockquote type="cite">
<pre wrap="">/max
Alexey Kazakov wrote:
</pre>
<blockquote type="cite">
<pre wrap="">We use exactly the same method, which you mentioned, to store Seam
project settings in .setting folder.
See
org.jboss.tools.seam.ui.preferences.SeamSettingsPreferencePage.storeSettings()
Rob Stryker wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi All:
I previously thought using an project-scoped preference eclipse
preference node would properly store the data in your project so that
the preference is a per-project setting and so that also these
preferences can be shared.
This is not the case, as from this article:
* /Project scope/. This scope stores values that are specific to a
single project in your workspace, such as code formatter and
compiler settings. Note that this scope is provided by the
org.eclipse.core.resources plug-in, which is not included in the
Eclipse Rich Client Platform. This scope will not exist in
applications that don’t explicitly include the resources plug-in.
Settings saved in the following method, while on a project-scope, are
still saved in the workspace, which means they're not persisted to cvs /
svn / etc.
IScopeContext context = new ProjectScope(project);
IEclipsePreferences node = context.getNode(qualifier);
if (node != null)
node.putDouble(IJBossESBFacetDataModelProperties.ESB_PROJECT_VERSION, 2.0);
Does anyone know how to actually put some settings inside the .settings
folder of a project the way JDT and WTP do? Thanks.
_______________________________________________
jbosstools-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
</blockquote>
<pre wrap="">_______________________________________________
jbosstools-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
</blockquote>
<pre wrap="">------------------------------------------------------------------------
_______________________________________________
jbosstools-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</blockquote>
</body>
</html>