Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem with PropertyDialogAction
Problem with PropertyDialogAction [message #225121] Fri, 03 March 2006 15:28
Eclipse UserFriend
Originally posted by: masbif.gmail.com

Hi to all
I have a plugin in which I' ve defined a property page for java.io.File.
I' ve also added a action to context menu that show a property dialog on
the selected java.io.File. The follow is the run method:
public void run() {
PropertyDialogAction propertyDialogAction=new
PropertyDialogAction(getViewSite(),viewer); }

When the action is launched nothing property dialog is showed. Someone can
tell me why?
Moreover if I invoke some method of PropertyDialogAction,
for example:
propertyDialogAction.run(); or propertyDialogAction.createDialog();

I get :
Unhandled event loop exception
Reason: java.io.File
while if I invoke
propertyDialogAction.isApplicableForSelection();

nothing exception is showed.

In the .log file I find the follow:

!ENTRY org.eclipse.jdt.ui 4 0 2006-03-03 08:31:44.953
!MESSAGE Error in JDT Core during reconcile
!STACK 1
Java Model Exception: Java Model Status [ADAMS does not exist]
at
org.eclipse.jdt.internal.core.JavaElement.newNotPresentExcep tion(JavaElement.java:468)
at
org.eclipse.jdt.internal.core.JavaModelManager.getPerProject InfoCheckExistence(JavaModelManager.java:1223)
at
org.eclipse.jdt.internal.core.JavaProject.getPerProjectInfo( JavaProject.java:1792)
at
org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspa th(JavaProject.java:1930)
at
org.eclipse.jdt.internal.core.JavaProject.buildStructure(Jav aProject.java:332)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openabl e.java:233)
at
org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(Jav aElement.java:488)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:232)
at
org.eclipse.jdt.internal.core.JavaElement.getElementInfo(Jav aElement.java:218)
at
org.eclipse.jdt.internal.core.JavaProject.getJavaProjectElem entInfo(JavaProject.java:1520)
at
org.eclipse.jdt.internal.core.JavaProject.newNameLookup(Java Project.java:2426)
at org.eclipse.jdt.internal.core.SearchableEnvironment.
(SearchableEnvironment.java:60)
at org.eclipse.jdt.internal.core.SearchableEnvironment.
(SearchableEnvironment.java:74)
at org.eclipse.jdt.internal.core.CancelableNameEnvironment.
(CancelableNameEnvironment.java:26)
at
org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.p rocess(CompilationUnitProblemFinder.java:148)
at
org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.p rocess(CompilationUnitProblemFinder.java:214)
at
org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation. executeOperation(ReconcileWorkingCopyOperation.java:79)
at
org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaMod elOperation.java:718)
at
org.eclipse.jdt.internal.core.JavaModelOperation.runOperatio n(JavaModelOperation.java:777)
at
org.eclipse.jdt.internal.core.CompilationUnit.reconcile(Comp ilationUnit.java:1081)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y$1.run(JavaReconcilingStrategy.java:98)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y.reconcile(JavaReconcilingStrategy.java:82)
at
org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrateg y.reconcile(JavaReconcilingStrategy.java:147)
at
org.eclipse.jdt.internal.ui.text.CompositeReconcilingStrateg y.reconcile(CompositeReconcilingStrategy.java:86)
at
org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStr ategy.reconcile(JavaCompositeReconcilingStrategy.java:94)
at
org.eclipse.jface.text.reconciler.MonoReconciler.process(Mon oReconciler.java:75)
at
org.eclipse.jdt.internal.ui.text.JavaReconciler.process(Java Reconciler.java:339)
at
org.eclipse.jface.text.reconciler.AbstractReconciler$Backgro undThread.run(AbstractReconciler.java:204)
!SUBENTRY 1 org.eclipse.jdt.core 4 969 2006-03-03 08:31:44.953
!MESSAGE ADAMS does not exist
Previous Topic:Building Plugins With Maven2
Next Topic:Multiple versions of Eclipse using same source code
Goto Forum:
  


Current Time: Tue Nov 12 22:19:45 GMT 2024

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

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

Back to the top