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

Forum: P2 dev
 Topic: How to find IU(org.eclipse.equinox.executable_root) when headless building.
How to find IU(org.eclipse.equinox.executable_root) when headless building. [message #500122] Wed, 25 November 2009 00:04
Hiroki Kondo  is currently offline Hiroki Kondo
Messages: 16
Registered: July 2009
Junior Member
Hi,

I'd like to build my RCP using p2 technology.
So I added delta-pack to target environment and added to set p2 setting to build.properties like p2.gathering=true.

But I got the build log message bellow.(Is it error message?)
How to find IU about org.eclipse.equinox.executable?(I know this feature is included delta-pack.)

My build environment is
customized build script generated by plugin builder.
Ubuntu Linux 9.10.

-- start build log --
[java] customAssembly:
[java]
[java] generate.p2.metadata:
[java] Unable to find: Installable Unit [ id=org.eclipse.equinox.executable_root.gtk.linux.x86 ]
[java] Unable to find: Installable Unit [ id=org.eclipse.equinox.executable_root.carbon.macosx.x86 ]
[java] Unable to find: Installable Unit [ id=org.eclipse.equinox.executable_root.win32.win32.x86 ]
[java] [delete] Deleting directory /tmp/org.kompiro.jamcircle.builder/tmp/p2.branding
[java] [copy] Copying 1 file to /tmp/org.kompiro.jamcircle.builder/features/org.eclipse.pde. build.container.feature/product
[java] [eclipse.idReplacer] Could not find com.ibm.icu
[java] [eclipse.idReplacer] Could not find org.apache.bsf
[java] [eclipse.idReplacer] Could not find org.apache.commons.lang
[java] [eclipse.idReplacer] Could not find org.apache.commons.logging
[java] [eclipse.idReplacer] Could not find org.eclipse.compare.core
[java] [eclipse.idReplacer] Could not find org.eclipse.core.net
[java] [eclipse.idReplacer] Could not find org.eclipse.core.runtime
[java] [eclipse.idReplacer] Could not find org.eclipse.core.runtime.compatibility
[java] [eclipse.idReplacer] Could not find org.eclipse.core.runtime.compatibility.auth
[java] [eclipse.idReplacer] Could not find org.eclipse.core.variables
[java] [eclipse.idReplacer] Could not find org.eclipse.draw2d
[java] [eclipse.idReplacer] Could not find org.eclipse.equinox.app
[java] [eclipse.idReplacer] Could not find org.eclipse.equinox.common
[java] [eclipse.idReplacer] Could not find org.eclipse.equinox.preferences
[java] [eclipse.idReplacer] Could not find org.eclipse.equinox.registry
[java] [eclipse.idReplacer] Could not find org.eclipse.equinox.security
[java] [eclipse.idReplacer] Could not find org.eclipse.equinox.security.ui
[java] [eclipse.idReplacer] Could not find org.eclipse.gef
[java] [eclipse.idReplacer] Could not find org.eclipse.help
[java] [eclipse.idReplacer] Could not find org.eclipse.jface
[java] [eclipse.idReplacer] Could not find org.eclipse.jface.databinding
[java] [eclipse.idReplacer] Could not find org.eclipse.jface.text
[java] [eclipse.idReplacer] Could not find org.eclipse.osgi
[java] [eclipse.idReplacer] Could not find org.eclipse.swt
[java] [eclipse.idReplacer] Could not find org.eclipse.text
[java] [eclipse.idReplacer] Could not find org.eclipse.ui
[java] [eclipse.idReplacer] Could not find org.eclipse.ui.console
[java] [eclipse.idReplacer] Could not find org.eclipse.ui.forms
[java] [eclipse.idReplacer] Could not find org.eclipse.ui.workbench
[java] [eclipse.idReplacer] Could not find org.eclipse.ui.workbench.texteditor
[java] [eclipse.idReplacer] Could not find org.jivesoftware.smack
[java] [eclipse.idReplacer] Could not find org.jruby
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.debug
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.kanban.core
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.kanban.ui
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.rcp
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.scripting.core
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.scripting.ui
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.storage.core
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.storage.ui
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.xmpp.core
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.xmpp.kanban.ui
[java] [eclipse.idReplacer] Could not find org.kompiro.jamcircle.xmpp.ui
[java] [eclipse.idReplacer] Could not find org.mozilla.javascript
[java] [eclipse.idReplacer] Could not find org.sf.feeling.swt.win32.extension
[java] [p2.mirror] Problems resolving provisioning plan.
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.ui.cocoa [1.0.0.I20090525-2000].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.win32.win32.x86_64 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.wpf.win32.x86 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.gtk.linux.s390 [3.5.0.v3550b].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.gtk.linux.s390x [3.5.0.v3550b].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.gtk.solaris.sparc [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.gtk.solaris.x86 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.gtk.linux.ppc [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.gtk.linux.x86_64 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.cocoa.macosx [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.cocoa.macosx [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.cocoa.macosx.x86_64 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.motif.aix.ppc [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.motif.hpux.PA_RISC [3.5.0.HEAD].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.motif.hpux.ia64_32 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.motif.linux.x86 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.motif.solaris.sparc [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.swt.photon.qnx.x86 [3.5.1.v3555a].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.gtk.solaris.sparc [1.0.201.R35x_v20090720].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.gtk.solaris.x86 [1.0.201.R35x_v20090720].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.cocoa.macosx [1.0.1.R35x_v20090707].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.cocoa.macosx [1.0.1.R35x_v20090707].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.cocoa.macosx.x86_64 [1.0.1.R35x_v20090707].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.gtk.linux.ppc [1.0.200.v20090519].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.gtk.linux.s390 [1.0.100.v20090426-1530].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.gtk.linux.s390x [1.0.100.v20090426-1530].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.motif.linux.x86 [1.0.200.v20090520].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.gtk.linux.x86_64 [1.0.200.v20090519].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.motif.aix.ppc [1.0.200.v20090519].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.motif.hpux.ia64_32 [1.0.100.v20090519].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.motif.hpux.PA_RISC [1.0.100.v20090306-1900].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.wpf.win32.x86 [1.0.200.v20090519].
[java] [p2.mirror] Unable to satisfy dependency from org.eclipse.rcp.feature.group 3.5.1.R35x_v20090811-9SA0FxVFqE70OL1ARMrfcO6e7BA6 to org.eclipse.equinox.launcher.win32.win32.x86_64 [1.0.200.v20090519].
[java] [p2.mirror] Messages while mirroring artifact descriptors.

Regards,
Forum: Newcomers
 Topic: Vertical Collapse of ExpandableComposite
Vertical Collapse of ExpandableComposite [message #500123] Wed, 25 November 2009 00:27
Murthybhat   is currently offline Murthybhat
Messages: 16
Registered: July 2009
Junior Member
Hello,

I have a form editor with a tree viewer in a section. I have a requirement where the user chooses to minimizes the treeviewer section. The section should be collapsed vertically [Like a palette minimize].

Is it possible to realize this requirement of having a palette like composite/section in a SWT based fom editor.

Thanks in advance for any help or suggestion.


Regards,
Bhat



Forum: EMF
 Topic: [CDO] how to get released db connectors
Re: [CDO] how to get released db connectors [message #500125 is a reply to message #500093 ] Wed, 25 November 2009 01:04
Eike Stepper  is currently offline Eike Stepper
Messages: 1854
Registered: July 2009
Senior Member
Hi Mark,

For CDO 3.0 I recently wrote this note:

I expect all builds to be published again to the usual update sites as
soon as possible, i.e. EMF update site, helios site and galileo
maintenance site. Third party drivers will be available at
http://net4j.sourceforge.net/update , zips at
http://net4j.sourceforge.net/update/downloads . An all-in-one repository
is Cloudsmith's Galileo+ at http://download.cloudsmith.com/galileoplus .

Nightly builds will probably be available through hudson. The job names
will probably change as we're trying to move from Athena to Buckminster
and later b3, so have a look in this folder for new jobs:
https://build.eclipse.org/hudson/view/Modeling

Cheers
/Eike

----
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Mark Geib schrieb:
> I have seen other posting sregarding the fact that, other than derby,
> the db connectors were not included in the current release of emf. I
> have no CVS access from my place of work and I am wondering how or where
> to get these missing plugins. I have done all the testing I plan to do
> with derby and need to be able to use hibernate or mysql now.
>
> Can someone please give me pointers on how to these plugins, compatible
> with the current release version of emf.
>
> Thanks,
> Mark.
>
Forum: Eclipse Platform
 Topic: Customized .log file location
Re: Customized .log file location [message #500129 is a reply to message #496996 ] Wed, 25 November 2009 02:02
Daniel Krügler  is currently offline Daniel Krügler
Messages: 431
Registered: July 2009
Senior Member
Daniel Krügler wrote:
> It is an user-request of high priority for our RCP programs that
> the log files (primarily the .log file, but there are two different
> log files types as well from the Eclipse framework) should be positioned
> at a different location than the default location (workspace/.metadata).
>
> The important point is: The decision for this needs to support a
> *dynamic* and programmatic specification and cannot be provided as
> constants in the launching configuration.
>
> I would be very happy if someone could give me a pointer how this may be
> realized. During a class search related to logging I stumbled across
> FrameworkAdaptor, AdaptorHook, and BaseAdaptor, but it is unclear to me:
>
> a) Which of these needs to be implemented (if at all) and how that can
> be done in a way that restricts to the specification of the log file
> location (E.g. I don't want to re-implement BaseAdaptor, if possible)
>
> b) How to "inject" this implementation into the RCP such that it will be
> used (I use a feature based headless build, if this information is
> relevant).

I'm a bit surprised that no-one else seems to think that this is an
important feature. I have been asking this question over several
years and I got never a reply. So the only way to fix this seems
to be that the installation modifies the configuration file.
Personally I'm not happy with that solution but at least it is
a work-around.

- Daniel
Forum: GEF
 Topic: Draw a Line
Draw a Line [message #500132] Wed, 25 November 2009 02:24
Thomas   is currently offline Thomas
Messages: 21
Registered: October 2009
Junior Member
Hi,

i have got some problems with my gmf application. Now i need to draw a line on the Editor, but i cant imagine how. It should like in ms paint or like http://www.kiyut.com/products/sketsa/ this.

Are there some standart solutions, to make it easy?

Thanks

Thomas
Forum: CDT
 Topic: indexer can not identify size_t
indexer can not identify size_t [message #500133] Wed, 25 November 2009 02:27
Vincent  is currently offline Vincent
Messages: 5
Registered: July 2009
Junior Member
Hi all,

I am using Eclipse CDT quite a long time and indexer work almost perfect for me so far.

I recently found the indexer can not identify the type "size_t", so that "Open Declaration" function will be failed to find the function with size_t type parameters.

but I already set the paths for my project:
such as:
1. /usr/include/c++/4.2
2. /usr/include/c++/4.2/backward
3. /usr/include/c++/4.2/i486-linux-gnu
4. /usr/include

is there any wrong with my setting??

thanks!!
Forum: Equinox
 Topic: Redeploy RAP-Application on WebSphere and JBoss fails
icon5.gif  Redeploy RAP-Application on WebSphere and JBoss fails [message #500134] Wed, 25 November 2009 02:33
Stephan Strittmatter  is currently offline Stephan Strittmatter
Messages: 7
Registered: July 2009
Junior Member
First I thought it is a RAP problem, but I think it is a problem of servletbridge.

Redeploy of a RAP-application does not delete the prevous versions of libs.
See also the post on RAP-board:
http:// www.eclipse.org/forums/index.php?t=msg&th=158246&sta rt=0&S=46f550b125f6c7af64909ca778be880c

Does anybody know a solution/workaround?

OSGi-newbee will thank for support!
Forum: TMF (Xtext)
 Topic: Sharing imported dsl files witch custom URI
Re: Sharing imported dsl files witch custom URI [message #500131 is a reply to message #500094 ] Wed, 25 November 2009 02:21
Sven Efftinge  is currently offline Sven Efftinge
Messages: 505
Registered: July 2009
Senior Member
Hi Stefano,

> I can understand the whole concept of index but maybe I'm missing some
> crucial point.
> As you could have noticed from this and other threads of mine I have a
> couple of behaviors I would aim at, and that I resume here:
> - a main dsl file specifies the imported files (specified in the form of
> path\filename) and that's ok

Ok, so you use the importUri stuff for that, right?

> - all files in the same folder "see" each others model's elements
> without any "explicit " import statement inside those files

For that, you'll need some definition of what I call "the outer world".
In the UI this can be done by the builder, which remembers the exported
elements for each resource and remembers the "container" the resource
lives in.

> - the whole "pool" of elements, that I image to be the Index (entirely
> shared between files) will be updated/rebuild in a clever way (due to
> the large number of model elements I'm dealing with) only when necessary
> Could you suggest an approach.. in particular your thinking about the
> usability of index in this case.

That is what the new Xtext builder will do for you.

But I guess you'll have to wait at least for the next milestone. And
have to expect breaking changes between the following milestones (until M6).

Cheers,
Sven

--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
 Topic: Reference problem
Re: Reference problem [message #500136 is a reply to message #500065 ] Wed, 25 November 2009 02:45
Holger  is currently offline Holger
Messages: 6
Registered: November 2009
Junior Member
Hi Sebastian,

can I send you my grammars via email?
Of course, the solution can later be posted here.

Thanks, Holger
Forum: GMF (Graphical Modeling Framework)
 Topic: Problem with SVG figure
Re: Problem with SVG figure [message #500137 is a reply to message #498373 ] Wed, 25 November 2009 02:51
Alireza   is currently offline Alireza
Messages: 66
Registered: July 2009
Member
Hallo everybody,

If some body have used svg figures please share your experience with me, I have tries to use sample in BGMF_Tutorial_BPMN, but it does not work for me Sad

Thank you,
Best,
Alireza

Forum: UML2
 Topic: An Error running the zipfile for UML2 Profile
Re: An Error running the zipfile for UML2 Profile [message #500140 is a reply to message #496727 ] Wed, 25 November 2009 03:13
Williams  is currently offline Williams
Messages: 27
Registered: July 2009
Junior Member
Can someone give me a reply? I still get stuck with the problem. It seems the following statement returns null:

Model epo2Model = (Model) load(URI.createURI(args[0]).appendSegment(
"ExtendedPO2").appendFileExtension(UMLResource.FILE_EXTENSION));

Any suggestion? Thanks.
Will
Forum: Plugin Development Environment (PDE)
 Topic: Adding product version number in exported product zip file
Re: Adding product version number in exported product zip file [message #500127 is a reply to message #500030 ] Wed, 25 November 2009 01:44
Bjoern Berg  is currently offline Bjoern Berg
Messages: 9
Registered: November 2009
Junior Member
Hi Andrew,

as I mentioned in my post, I use a headless build, but don't have a clue how to get the product version number into my zip files name.

Bjoern
 Topic: I wanted to use a FilteredTree in my outline view.
I wanted to use a FilteredTree in my outline view. [message #500141] Wed, 25 November 2009 03:15
jaykei  is currently online jaykei
Messages: 1
Registered: November 2009
Junior Member
Hi. everyone.
I need some help for my plug-in.

I wanted to use a FilteredTree in my outline view.
So I created a subclass of ContentOutlinePage and override default treeviewer to FilteredTree's treeviewer.
After that, all I got is "An outline is not available." message.
At least I wanted to know why, but here's no error log at all.

If I set the treeviewer as normal treeviewer as commented code, below, I can see outline view as normal.

My codes are below. (codes which are not related to this subject are omitted.)
Could anybody help me out?
Is it impossible to use FilteredTree on outline view?

public class TestOutlinePage extends ContentOutlinePage {

	private TreeViewer treeViewer;

	public void createControl(Composite parent) {

		PatternFilter filter = new PatternFilter();
		FilteredTree tree = new FilteredTree(parent, SWT.MULTI | SWT.H_SCROLL
				| SWT.V_SCROLL, filter, false);
		treeViewer = tree.getViewer();
		// treeViewr = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);

		treeViewer.addSelectionChangedListener(this);
		treeViewer.setInput(Input);
		... 

	}

	@Override
	protected TreeViewer getTreeViewer() {
		return treeViewer;
	}

	@Override
	public Control getControl() {
		if (treeViewer == null) {
			return null;
		}
		return treeViewer.getControl();
	}

	@Override
	public ISelection getSelection() {
		if (treeViewer == null) {
			return StructuredSelection.EMPTY;
		}
		return treeViewer.getSelection();
	}
    
	@Override
	public void setFocus() {
 		treeViewer.getControl().setFocus();
	}
	
	@Override
	public void setSelection(ISelection selection) {
		if (treeViewer != null) {
			treeViewer.setSelection(selection);
		}
	}
}

[Updated on: Wed, 25 November 2009 03:17]

Forum: Dynamic Languages Toolkit (DLTK)
 Topic: Question regarding syntax coloring (+a question on launch configurations)
Re: Question regarding syntax coloring (+a question on launch configurations) [message #500142 is a reply to message #499764 ] Wed, 25 November 2009 03:04
Alex Panchenko  is currently offline Alex Panchenko
Messages: 183
Registered: July 2009
Senior Member
Hi Mikolaj,

PartitionScanner is used to split document into partitions, i.e. regions
where different formatting rules should be applied. E.g., keyword
"class" should be highlighted in the code partition, and should not be
highlighted in comments. That's why the partitions are used. The common
examples of partitions are code, strings and comments.

The next step is to specify syntax rules for each partition type.

For example in Ruby implementation there are RubyPartitionScanner,
RubyCodeScanner (for code partition) and scanners for other partitions.

Does it answer you question?

Regards,
Alex
Forum: Rich Client Platform (RCP)
 Topic: Referencing resources from other plugins in plugin.xml
Referencing resources from other plugins in plugin.xml [message #500139] Wed, 25 November 2009 02:55
Daniel Krügler  is currently offline Daniel Krügler
Messages: 431
Registered: July 2009
Senior Member
There is a very old issue still active

https://bugs.eclipse.org/bugs/show_bug.cgi?id=220195

which mentions the badly documented location syntax
e.g. for icons of the style

platform:/plugin/<pluginid>/icons/myicon.ico

which usually "just works", provided that the corresponding
plugin contains the resource myicon.ico at this location.
Indeed this works for the examples I was interested in
even though I agree with the bug reporter that this should
work consistently.

But I also remember that there was I much more fundamental issue
that suggested to introduce *symbolic* URL's for some standard
Eclipse resources (e.g. the shared images), which looks even
more appealing to me, because that approach would have the
effect, that the Eclipse platform could refactor the concrete
location of these officially shared resources, albeit still
being able to guarantee a stable "link" to them.

Unfortunately I don't find this bug any more :-(. Can someone
give me a pointer to that?

Thanks,

Daniel Krügler
Re: Referencing resources from other plugins in plugin.xml [message #500143 is a reply to message #500139 ] Wed, 25 November 2009 03:09
Daniel Krügler  is currently offline Daniel Krügler
Messages: 431
Registered: July 2009
Senior Member
Daniel Krügler wrote:
> There is a very old issue still active
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=220195
>
> which mentions the badly documented location syntax
> e.g. for icons of the style
>
> platform:/plugin/<pluginid>/icons/myicon.ico
>
> which usually "just works", provided that the corresponding
> plugin contains the resource myicon.ico at this location.
> Indeed this works for the examples I was interested in
> even though I agree with the bug reporter that this should
> work consistently.
>
> But I also remember that there was I much more fundamental issue
> that suggested to introduce *symbolic* URL's for some standard
> Eclipse resources (e.g. the shared images), which looks even
> more appealing to me, because that approach would have the
> effect, that the Eclipse platform could refactor the concrete
> location of these officially shared resources, albeit still
> being able to guarantee a stable "link" to them.
>
> Unfortunately I don't find this bug any more :-(. Can someone
> give me a pointer to that?

OK, I found the answer on my own:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=246224

- Daniel Krügler
 Topic: Add new plug-ins to a RCP
Re: Add new plug-ins to a RCP [message #500144 is a reply to message #499643 ] Wed, 25 November 2009 03:20
Sciscio is currently online Sciscio
Messages: 3
Registered: November 2009
Junior Member
If i add a *.jar of a plug-in in the «dropins» folder of eclipse, it works. But it doesn't if i create a folder «dropins» in my application and I put a plugin in it. Anyway, i will do some other attempt.

Is there any difference between a plugin for eclipse and a plugin for any other RCP application?
Forum: Buckminster
 Topic: Hudson-Buckminster No suitable provider
Re: Hudson-Buckminster No suitable provider [message #500124 is a reply to message #499949 ] Wed, 25 November 2009 01:03
Thomas Hallgren  is currently offline Thomas Hallgren
Messages: 1453
Registered: July 2009
Senior Member
On 2009-11-24 16:06, Johannes Utzig wrote:
> TW schrieb:
>> Hi I just visited the issue tracer to add the bug. Unfortunately there
>> is no option for me to generate a new issue I can only view existing
>> issues.
>> Could you possible add the bug to the issue tracer or tell me where I
>> can generate a new issue?
>>
>> Regards, TW
>
> Well, the plugin writes a correct path to the commands.txt file:
> import C:\hudson\jobs\rcp_target\workspace\com.example.target\targe t.mspec
>
It's a correct path according to a Windows cmd.exe. It's *not* a correct path in terms of the Buckminster shell that
interprets the script file. This shell is like a Linux/Unix shell and will use '\' as the escape character. The correct
path should read:

import C:\\hudson\\jobs\\rcp_target\\workspace\\com.example.target\ \target.mspec

This information is missing in the documentation. I'll add a bugzilla for that.

Regards,
Thomas Hallgren
Re: Hudson-Buckminster No suitable provider [message #500126 is a reply to message #500124 ] Wed, 25 November 2009 01:26
Thomas Hallgren  is currently offline Thomas Hallgren
Messages: 1453
Registered: July 2009
Senior Member
On 2009-11-25 07:03, Thomas Hallgren wrote:
> It's a correct path according to a Windows cmd.exe. It's *not* a correct
> path in terms of the Buckminster shell that interprets the script file.
> This shell is like a Linux/Unix shell and will use '\' as the escape
> character. The correct path should read:
>
> import
> C:\\hudson\\jobs\\rcp_target\\workspace\\com.example.target\ \target.mspec
>
> This information is missing in the documentation. I'll add a bugzilla
> for that.
>
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296081

- thomas
Re: Hudson-Buckminster No suitable provider [message #500128 is a reply to message #500126 ] Wed, 25 November 2009 01:51
TW   is currently offline TW
Messages: 16
Registered: November 2009
Junior Member
Hi Thomas,

does that mean that I have to wait for a bug fix to use ${workspace}?

If I understand your bugzilla report correctly I can create a workaround by writing a script and then execute that script.
The script itself can have the ${workspace} variable and is interpreted correctly on windows.



[Updated on: Wed, 25 November 2009 01:53]

Re: Hudson-Buckminster No suitable provider [message #500135 is a reply to message #500128 ] Wed, 25 November 2009 02:24
Thomas Hallgren  is currently offline Thomas Hallgren
Messages: 1453
Registered: July 2009
Senior Member
Hi Toby,

On 2009-11-25 07:51, TW wrote:
> Hi Thomas,
>
> does that mean that I have to wait for a bug fix or is there any
> workaround so that I can build my products and tragetplatform using the
> ${workspace} variable on windows?
>
Assuming that Johannes pass a -data ${WORKSPACE} to the buckminster invocation, it should be possible for you to write:

import ${osgi.instance.area}/com.example.target/target.mspec

Then again, since it seems property expansion is made of the actual command, I'm not sure that will work either.
Johannes needs to answer that.

Regards,
Thomas Hallgren
Re: Hudson-Buckminster No suitable provider [message #500145 is a reply to message #500128 ] Wed, 25 November 2009 03:18
Johannes Utzig  is currently offline Johannes Utzig
Messages: 136
Registered: July 2009
Senior Member
TW schrieb:
> Hi Thomas,
>
> does that mean that I have to wait for a bug fix or is there any
> workaround so that I can build my products and tragetplatform using the
> ${workspace} variable on windows?
>
>

Given the new information from Thomas on how the script file gets
interpreted, I should fix this in the hudson plugin.

There is two ways to do this:
either replace all \ with / during expansion, or treat all known
file-based hudson variables special (WORKSPACE and JAVA_HOME).

I'll think about what's the safer approach and work on a fix once I'm
back at home. I'm rather confident that I can release a new version
tonight. It takes about 24 hours for hudson to pick up new Plugin
versions in the update center, so hopefully you'll be able to build on
your windows machine by tomorrow.

https://hudson.dev.java.net/issues/show_bug.cgi?id=4947

Best regards,
Johannes
Forum: Standard Widget Toolkit (SWT)
 Topic: How to show another window when login button clicked?
Re: How to show another window when login button clicked? [message #500130 is a reply to message #500118 ] Wed, 25 November 2009 01:44
Praveen   is currently offline Praveen
Messages: 3
Registered: July 2009
Junior Member
Please verify whether the below snippet (or similar code) helps your case -

public static void main (String [] args) {
Display display = new Display ();
final Shell shell = new Shell (display);
final Shell shell2 = new Shell (display);
shell.setLayout(new FillLayout());
Button bt = new Button(shell,SWT.None);
bt.setText("Login");
shell.pack();
shell.open ();
bt.addListener(SWT.Selection, new Listener() {
@Override
public void handleEvent(Event event) {
shell2.setLayout(new FillLayout());
Label lbl = new Label(shell2,SWT.None);
lbl.setText("Another shell");
shell2.pack();
shell2.open ();
shell.close();
}
});
while (!shell.isDisposed () || !shell2.isDisposed()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
 Topic: missing first column of a table
Re: missing first column of a table [message #500138 is a reply to message #499950 ] Wed, 25 November 2009 02:51
Praveen   is currently offline Praveen
Messages: 3
Registered: July 2009
Junior Member
Stella wrote:
> I run on GNU/Linux x86_64. swt_3.4.1.v3449c.
> Thanks, Stella
I've verified that this problem is reproducible on Linux and opened Bug
296085 for addressing this issue.
 Topic: Table#getTopIndex returns negative value
icon5.gif  Table#getTopIndex returns negative value [message #500146] Wed, 25 November 2009 03:24
Pierre Schubert is currently online Pierre Schubert
Messages: 1
Registered: July 2009
Junior Member
Hi everyone,

I have a problem with DND in conjunction with a table.

It appears on my Mac (OS X 10.6.2 64 bit) with the swt.cocoa (3.5.1v3555a) plugin.

I've added a DropTarget (DND.DROP_COPY) to a table in a shell. When I try to drop something on it, the following exception will be thrown:

!ENTRY org.eclipse.ui 4 0 2009-11-25 08:49:40.661
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.IllegalArgumentException: Index out of bounds
	at org.eclipse.swt.SWT.error(SWT.java:3865)
	at org.eclipse.swt.SWT.error(SWT.java:3799)
	at org.eclipse.swt.SWT.error(SWT.java:3770)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:619)
	at org.eclipse.swt.widgets.Table.getItem(Table.java:1420)
	at org.eclipse.swt.dnd.DropTargetEffect.getItem(DropTargetEffect.java:107)
	at org.eclipse.swt.dnd.DropTargetEffect.getItem(DropTargetEffect.java:90)
	at org.eclipse.swt.dnd.DropTarget.setEventData(DropTarget.java:873)
	at org.eclipse.swt.dnd.DropTarget.draggingUpdated(DropTarget.java:280)
	at org.eclipse.swt.dnd.DropTarget.dropTargetProc(DropTarget.java:430)
	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend_bool(Native Method)
	at org.eclipse.swt.internal.cocoa.NSRunLoop.runMode(NSRunLoop.java:42)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:3905)
	at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2406)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	...

I've debugged the code and found out that the method Table#getTopIndex returns -1 at DropTargetEvent.class:106.

The result is, that the method Table#getItem will be called with -1 and an IllegalArgumentException (Index out of bounds) will be thrown.

The javadoc of the method Table#getTopIndex says:

Returns the zero-relative index of the item which is currently at the top of the receiver...

Therefore I conclude that something is wrong with #getTopIndex method.

If the table has initially one or more items, everything works just fine.

Thanks for every contribution.

Kind regards

Pierre Schubert