[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
|
[Wtp-wst-dev] Fw: IStructuredSelection
|
I am posting this for Brian Burns (bburns@xxxxxxxxxx)
----- Forwarded by Brian Burns/Cambridge/IBM on 12/05/2005 09:20 AM -----
Brian
Burns/Cambridge/I
BM To
"Web Standard Tools developer
12/05/2005 09:05 discussions."
AM <wtp-wst-dev@xxxxxxxxxxx>
cc
Subject
IStructuredSelection
Hi,
I have an IStructuredSelection from which I need to get an IModuleArtifact.
The IStructuredSelection represents a selection in the Package Explorer. I
use the method ServerPlugin.getModuleArtifact(Object) where I pass the
selection's first element as the parameter. For some reason it's returning
null. The getModuleArtifact function loads all the ModuleArtifactAdapters
and checks to see if the adapter is enabled for that object. I'm having
trouble understanding the ModuleArtifactAdapter.isEnabled(Object) method.
Could someone explain what this method does and what it takes for an
IStructuredSelection to be "enabled" ?
Regards,
Brian Burns