- This topic has 13 replies, 7 voices, and was last updated 16 years ago by Loyal Water.
-
AuthorPosts
-
gesibaMemberAfter designing a custom panel and adding it to Matisse-Palette I#m not able to drag it into an other form/panel. Other custom widgets, such as derived Textboxes work perfectly, the problem only seem to occur on JPanels.
Trying to use a base-panel and adding a custom creation code instantiating the custom panel leads to the strange result, that properties set on the custom panel itself (such as background) are applied, whereas components put on this panel are left out.
In short: I’m simply not able to use any custom created panels in Matisse Form Builder.
Installation Summary:
*** Date:
Wednesday, August 13, 2008 11:17:26 AM CEST** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_11*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.1 GA
Build id: 6.5.1-GA-20080715*** Eclipse details:
MyEclipse Enterprise WorkbenchVersion: 6.5.1 GA
Build id: 6.5.1-GA-20080715Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Programme\MyEclipse 6.5\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\Programme\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\Programme\MyEclipse 6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
136c_70
-clean
-vm
C:\Programme\MyEclipse 6.5\jre\bin\javaw.exe
Loyal WaterMemberAre there any errors logged under <workspace>/.metadata/.log file when you add the custom widget?
gesibaMemberHere is the content from the .log-File:
!SESSION 2008-08-13 09:42:46.953 ———————————————–
eclipse.buildId=M20080221-1800
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_AT
Command-line arguments: -os win32 -ws win32 -arch x86 -clean!ENTRY org.eclipse.update.configurator 2008-08-13 09:43:23.875
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/com.ibm.icu_3.6.1.v20070906.jar Bundle “com.ibm.icu” version “3.6.1.v20070906” has already been installed from: update@plugins/com.ibm.icu_3.6.1.v20070906.jar!ENTRY org.eclipse.update.configurator 2008-08-13 09:43:24.000
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/javax.servlet.jsp_2.0.0.v200706191603.jar Bundle “javax.servlet.jsp” version “2.0.0.v200706191603” has already been installed from: update@plugins/javax.servlet.jsp_2.0.0.v200706191603.jar!ENTRY org.eclipse.update.configurator 2008-08-13 09:43:24.016
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/javax.servlet_2.4.0.v200706111738.jar Bundle “javax.servlet” version “2.4.0.v200706111738” has already been installed from: update@plugins/javax.servlet_2.4.0.v200706111738.jar!ENTRY org.eclipse.update.configurator 2008-08-13 09:43:24.219
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/org.apache.commons.el_1.0.0.v200706111724.jar Bundle “org.apache.commons.el” version “1.0.0.v200706111724” has already been installed from: update@plugins/org.apache.commons.el_1.0.0.v200706111724.jar!ENTRY org.eclipse.help.base 4 0 2008-08-13 09:52:29.901
!MESSAGE An error occured while pre-processing help XHTML document “/org.springframework.bundle.spring.doc/spring-form.tld.html” for search indexing
!STACK 0
org.xml.sax.SAXParseException: The entity “nbsp” was referenced, but not declared.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.eclipse.help.internal.dynamic.DocumentReader.read(DocumentReader.java:56)
at org.eclipse.help.internal.dynamic.XMLProcessor.process(XMLProcessor.java:49)
at org.eclipse.help.internal.xhtml.DynamicXHTMLProcessor.process(DynamicXHTMLProcessor.java:76)
at org.eclipse.help.internal.search.XHTMLSearchParticipant.preprocess(XHTMLSearchParticipant.java:58)
at org.eclipse.help.search.XMLSearchParticipant.addDocument(XMLSearchParticipant.java:301)
at org.eclipse.help.internal.search.HTMLSearchParticipant.addDocument(HTMLSearchParticipant.java:51)
at org.eclipse.help.internal.search.SearchIndex.addDocument(SearchIndex.java:219)
at org.eclipse.help.internal.search.IndexingOperation.addDocuments(IndexingOperation.java:246)
at org.eclipse.help.internal.search.IndexingOperation.addNewDocuments(IndexingOperation.java:158)
at org.eclipse.help.internal.search.IndexingOperation.execute(IndexingOperation.java:105)
at org.eclipse.help.internal.search.LocalSearchManager.updateIndex(LocalSearchManager.java:624)
at org.eclipse.help.internal.search.LocalSearchManager.ensureIndexUpdated(LocalSearchManager.java:598)
at org.eclipse.help.internal.search.federated.IndexerJob.run(IndexerJob.java:27)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!ENTRY org.eclipse.help.base 4 0 2008-08-13 09:52:32.604
!MESSAGE An error occured while pre-processing help XHTML document “/org.springframework.bundle.spring.doc/spring.tld.html” for search indexing
!STACK 0
org.xml.sax.SAXParseException: The entity “nbsp” was referenced, but not declared.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.eclipse.help.internal.dynamic.DocumentReader.read(DocumentReader.java:56)
at org.eclipse.help.internal.dynamic.XMLProcessor.process(XMLProcessor.java:49)
at org.eclipse.help.internal.xhtml.DynamicXHTMLProcessor.process(DynamicXHTMLProcessor.java:76)
at org.eclipse.help.internal.search.XHTMLSearchParticipant.preprocess(XHTMLSearchParticipant.java:58)
at org.eclipse.help.search.XMLSearchParticipant.addDocument(XMLSearchParticipant.java:301)
at org.eclipse.help.internal.search.HTMLSearchParticipant.addDocument(HTMLSearchParticipant.java:51)
at org.eclipse.help.internal.search.SearchIndex.addDocument(SearchIndex.java:219)
at org.eclipse.help.internal.search.IndexingOperation.addDocuments(IndexingOperation.java:246)
at org.eclipse.help.internal.search.IndexingOperation.addNewDocuments(IndexingOperation.java:158)
at org.eclipse.help.internal.search.IndexingOperation.execute(IndexingOperation.java:105)
at org.eclipse.help.internal.search.LocalSearchManager.updateIndex(LocalSearchManager.java:624)
at org.eclipse.help.internal.search.LocalSearchManager.ensureIndexUpdated(LocalSearchManager.java:598)
at org.eclipse.help.internal.search.federated.IndexerJob.run(IndexerJob.java:27)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!ENTRY org.eclipse.help.base 4 4 2008-08-13 09:52:35.386
!MESSAGE Help documentation could not be indexed completely.
!SUBENTRY 1 org.eclipse.help.base 4 4 2008-08-13 09:52:35.386
!MESSAGE Exception occurred while adding document /org.springframework.bundle.spring.doc/spring-form.tld.html to index.
!STACK 0
java.io.IOException: Read error
at java.io.FileInputStream.read(Native Method)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.help.search.XMLSearchParticipant.addDocument(XMLSearchParticipant.java:302)
at org.eclipse.help.internal.search.HTMLSearchParticipant.addDocument(HTMLSearchParticipant.java:51)
at org.eclipse.help.internal.search.SearchIndex.addDocument(SearchIndex.java:219)
at org.eclipse.help.internal.search.IndexingOperation.addDocuments(IndexingOperation.java:246)
at org.eclipse.help.internal.search.IndexingOperation.addNewDocuments(IndexingOperation.java:158)
at org.eclipse.help.internal.search.IndexingOperation.execute(IndexingOperation.java:105)
at org.eclipse.help.internal.search.LocalSearchManager.updateIndex(LocalSearchManager.java:624)
at org.eclipse.help.internal.search.LocalSearchManager.ensureIndexUpdated(LocalSearchManager.java:598)
at org.eclipse.help.internal.search.federated.IndexerJob.run(IndexerJob.java:27)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.help.base 4 4 2008-08-13 09:52:35.386
!MESSAGE Exception occurred while adding document /org.springframework.bundle.spring.doc/spring.tld.html to index.
!STACK 0
java.io.IOException: Read error
at java.io.FileInputStream.read(Native Method)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.eclipse.help.search.XMLSearchParticipant.addDocument(XMLSearchParticipant.java:302)
at org.eclipse.help.internal.search.HTMLSearchParticipant.addDocument(HTMLSearchParticipant.java:51)
at org.eclipse.help.internal.search.SearchIndex.addDocument(SearchIndex.java:219)
at org.eclipse.help.internal.search.IndexingOperation.addDocuments(IndexingOperation.java:246)
at org.eclipse.help.internal.search.IndexingOperation.addNewDocuments(IndexingOperation.java:158)
at org.eclipse.help.internal.search.IndexingOperation.execute(IndexingOperation.java:105)
at org.eclipse.help.internal.search.LocalSearchManager.updateIndex(LocalSearchManager.java:624)
at org.eclipse.help.internal.search.LocalSearchManager.ensureIndexUpdated(LocalSearchManager.java:598)
at org.eclipse.help.internal.search.federated.IndexerJob.run(IndexerJob.java:27)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!ENTRY org.eclipse.core.resources 2 1 2008-08-13 09:56:01.796
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘Gekas’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 09:56:01.796
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘Auszugsdatum und letzte Folge’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 09:56:01.796
!MESSAGE Skipping builder ‘com.ibm.etools.webtools.additions.linksbuilder’ for project ‘Gems’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 09:56:01.796
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘HavisBlackBoard’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 09:56:01.812
!MESSAGE Skipping builder ‘com.ibm.etools.iseries.perspective.projectBuilder’ for project ‘Klassen’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 09:56:02.030
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘GIBA’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 09:56:02.046
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘Zuordnungen_Save’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.ui 4 0 2008-08-13 10:08:42.170
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.eclipse.jdt.core.dom.Initializer)
at org.eclipse.swt.SWT.error(SWT.java:3563)
at org.eclipse.swt.SWT.error(SWT.java:3481)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:132)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.ClassCastException: org.eclipse.jdt.core.dom.Initializer
at org.eclipse.jdt.internal.core.CreateMethodOperation.rename(CreateMethodOperation.java:101)
at org.eclipse.jdt.internal.core.CreateTypeMemberOperation.generateElementAST(CreateTypeMemberOperation.java:99)
at org.eclipse.jdt.internal.core.CreateMethodOperation.generateElementAST(CreateMethodOperation.java:78)
at org.eclipse.jdt.internal.core.CreateTypeMemberOperation.verify(CreateTypeMemberOperation.java:202)
at org.eclipse.jdt.internal.core.JavaModelOperation.executeNestedOperation(JavaModelOperation.java:368)
at org.eclipse.jdt.internal.core.CopyElementsOperation.processElement(CopyElementsOperation.java:182)
at org.eclipse.jdt.internal.core.MultiOperation.processElements(MultiOperation.java:163)
at org.eclipse.jdt.internal.core.MultiOperation.executeOperation(MultiOperation.java:90)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:720)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1797)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:785)
at org.eclipse.jdt.internal.core.JavaModel.rename(JavaModel.java:285)
at org.eclipse.jdt.internal.core.SourceRefElement.rename(SourceRefElement.java:263)
at org.netbeans.modules.form.JavaCodeGenerator.renameEventHandler(JavaCodeGenerator.java:3218)
at org.netbeans.modules.form.JavaCodeGenerator.access$19(JavaCodeGenerator.java:3209)
at org.netbeans.modules.form.JavaCodeGenerator$FormListener$1.run(JavaCodeGenerator.java:3906)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
… 23 more
!SESSION 2008-08-13 10:30:34.492 ———————————————–
eclipse.buildId=M20080221-1800
java.version=1.5.0_11
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_AT
Command-line arguments: -os win32 -ws win32 -arch x86 -clean!ENTRY org.eclipse.update.configurator 2008-08-13 10:30:39.914
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/com.ibm.icu_3.6.1.v20070906.jar Bundle “com.ibm.icu” version “3.6.1.v20070906” has already been installed from: update@plugins/com.ibm.icu_3.6.1.v20070906.jar!ENTRY org.eclipse.update.configurator 2008-08-13 10:30:39.945
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/javax.servlet.jsp_2.0.0.v200706191603.jar Bundle “javax.servlet.jsp” version “2.0.0.v200706191603” has already been installed from: update@plugins/javax.servlet.jsp_2.0.0.v200706191603.jar!ENTRY org.eclipse.update.configurator 2008-08-13 10:30:39.961
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/javax.servlet_2.4.0.v200706111738.jar Bundle “javax.servlet” version “2.4.0.v200706111738” has already been installed from: update@plugins/javax.servlet_2.4.0.v200706111738.jar!ENTRY org.eclipse.update.configurator 2008-08-13 10:30:40.023
!MESSAGE Could not install bundle ../myeclipse/eclipse/plugins/org.apache.commons.el_1.0.0.v200706111724.jar Bundle “org.apache.commons.el” version “1.0.0.v200706111724” has already been installed from: update@plugins/org.apache.commons.el_1.0.0.v200706111724.jar!ENTRY org.eclipse.core.resources 2 1 2008-08-13 10:48:21.966
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘Gekas’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 10:48:21.981
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘Auszugsdatum und letzte Folge’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 10:48:21.981
!MESSAGE Skipping builder ‘com.ibm.etools.webtools.additions.linksbuilder’ for project ‘Gems’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 10:48:21.981
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘HavisBlackBoard’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 10:48:21.997
!MESSAGE Skipping builder ‘com.ibm.etools.iseries.perspective.projectBuilder’ for project ‘Klassen’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 10:48:22.497
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘GIBA’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.eclipse.core.resources 2 1 2008-08-13 10:48:22.591
!MESSAGE Skipping builder ‘com.ibm.etools.common.migration.MigrationBuilder’ for project ‘Zuordnungen_Save’. Either the builder is missing from the install, or it belongs to a project nature that is missing or disabled.!ENTRY org.maven.ide.eclipse 4 0 2008-08-13 10:59:57.698
!MESSAGE Error on adding indexing context central
!STACK 0
java.io.FileNotFoundException: C:\Dokumente und Einstellungen\schober\IBM\MyEclipse\.metadata\.plugins\org.maven.ide.eclipse\nexus\central\_1a.cfs (Das System kann die angegebene Datei nicht finden)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(Unknown Source)
at org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:506)
at org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:536)
at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:445)
at org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:70)
at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:277)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:262)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:230)
at org.apache.lucene.index.DirectoryIndexReader$1.doBody(DirectoryIndexReader.java:73)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:636)
at org.apache.lucene.index.DirectoryIndexReader.open(DirectoryIndexReader.java:63)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:209)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:192)
at org.sonatype.nexus.index.context.DefaultIndexingContext.getIndexReader(DefaultIndexingContext.java:301)
at org.sonatype.nexus.index.context.DefaultIndexingContext.getIndexSearcher(DefaultIndexingContext.java:315)
at org.sonatype.nexus.index.context.DefaultIndexingContext.checkAndUpdateIndexDescriptor(DefaultIndexingContext.java:172)
at org.sonatype.nexus.index.context.DefaultIndexingContext.prepareIndex(DefaultIndexingContext.java:152)
at org.sonatype.nexus.index.context.DefaultIndexingContext.<init>(DefaultIndexingContext.java:127)
at org.sonatype.nexus.index.DefaultNexusIndexer.addIndexingContext(DefaultNexusIndexer.java:99)
at org.maven.ide.eclipse.internal.index.NexusIndexManager.addIndex(NexusIndexManager.java:113)
at org.maven.ide.eclipse.LazyRuntime.loadIndexConfiguration(LazyRuntime.java:167)
at org.maven.ide.eclipse.LazyRuntime.<init>(LazyRuntime.java:103)
at org.maven.ide.eclipse.MavenPlugin.getRuntime(MavenPlugin.java:336)
at org.maven.ide.eclipse.MavenPlugin.access$0(MavenPlugin.java:333)
at org.maven.ide.eclipse.MavenPlugin$2.resourceChanged(MavenPlugin.java:136)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:282)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:276)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:311)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1018)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1806)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:73)
at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:63)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(TextFileDocumentProvider.java:450)
at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:761)
at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:4735)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSave(CompilationUnitEditor.java:1216)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationUnitEditor.java:1269)
at com.genuitec.eclipse.dehory.DehoryEditor.doSave(DehoryEditor.java:767)
at org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:6798)
at org.eclipse.ui.Saveable.doSave(Saveable.java:212)
at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:339)
at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:185)
at org.eclipse.ui.internal.SaveableHelper$4.run(SaveableHelper.java:266)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2451)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:274)
at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:253)
at org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHelper.java:196)
at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:136)
at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1345)
at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3202)
at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3215)
at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:73)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:429)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:821)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:879)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:568)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1141)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:975)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:971)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1285)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3772)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3672)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2265)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3291)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)!ENTRY org.eclipse.ui.workbench 4 0 2008-08-13 11:07:06.362
!MESSAGE WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.PropertySheet while still in the middle of activating part com.genuitec.eclipse.dehory.formeditor
!STACK 0
java.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.PropertySheet while still in the middle of activating part com.genuitec.eclipse.dehory.formeditor
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3352)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2946)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:229)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:943)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1273)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2366)
at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2176)
at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:4282)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3738)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4364)
at org.eclipse.swt.internal.win32.OS.ShowWindow(Native Method)
at org.eclipse.swt.widgets.Control.showWidget(Control.java:2332)
at org.eclipse.swt.widgets.Control.setVisible(Control.java:3092)
at org.eclipse.ui.part.PageBook.showPage(PageBook.java:113)
at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:964)
at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:746)
at org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:188)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3402)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2946)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265)
at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98)
at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:311)
at org.eclipse.ui.internal.EditorPane.setFocus(EditorPane.java:127)
at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:846)
at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:829)
at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:139)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:131)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:84)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:706)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)!ENTRY org.eclipse.core.jobs 4 2 2008-08-13 11:07:19.909
!MESSAGE An internal error occurred during: “Initializing Quick Diff”.
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
at org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer.handleChanged(DocumentLineDiffer.java:879)
at org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer$2.run(DocumentLineDiffer.java:656)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!ENTRY org.eclipse.core.jobs 4 2 2008-08-13 11:10:05.209
!MESSAGE An internal error occurred during: “Initializing Quick Diff”.
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95)
at org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer.handleChanged(DocumentLineDiffer.java:879)
at org.eclipse.ui.internal.texteditor.quickdiff.DocumentLineDiffer$2.run(DocumentLineDiffer.java:656)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Loyal WaterMemberCan you please send me a sample project that I can use to reproduce this issue at my end. You can hit the *pm* button at th bottom of my post and mail me the project.
gesibaMember@support-nipun wrote:
Can you please send me a sample project that I can use to reproduce this issue at my end. You can hit the *pm* button at th bottom of my post and mail me the project.
Hi, I sent it 2 weeks ago…
Loyal WaterMembergesiba,
I got the project that you had sent me and I had replied to you mail as well. I wanted to know if the project originally a MyEclipse project (i.e was it created using MyEclipse?). You have run into a known issue that the dev team is already working on. The will try to get the fix out in the 7.0 release. Sorry for the inconvenience.
HossUKParticipantI am having the same problem, very annoying. Tried in 7.0.0 M2 Release and still no Joy. Can Support confirm that it will be sorted in 7.0.0 GA Release.
Loyal WaterMemberI am having the same problem, very annoying. Tried in 7.0.0 M2 Release and still no Joy. Can Support confirm that it will be sorted in 7.0.0 GA Release.
We are trying to get this into the 7.0 release. I’ll confirm in the next two days whether this will make it to the 7.0 release.
Schalk LotzMemberI seem to have run into the same problem. Started in MyEclipse 6.5, and still exist in 7.0.0 as HossUK said. All my old references to these custom components are now red squares, which as soon as I try to edit the form changes to “org.netbeans.modules.form.InvalidComponent();” components.
awaiting correction patiently
donghuizzMemberHey I have the same problem. There is no way I can add a custom JPanel to another form. Very annoying. My projects have been stuck because of this. I just need a place, in a Matisse form, to display a picture. I had planned to put a custom JPanel in the form, and write paintComponent() in the custom JPanel to show the picture. Is there anyway to achieve my goal without waiting for the next MyEclipse release?
SelcoEngMemberI am having similar problems, but I have noticed a specific behavior. When I click a custom JPanel and cross over into the form area, the IDE apparently attempts to instantiate the JPanel. All is well as long as I don’t reference other classes in my project during instantiation. I finally added a try catch to what I knew to be the offending code (calls to a class that holds image icons), and the panel now adds to the frame, without the icons. I don’t see any messages in .log, but I suspect the problem is either a class not found or unable to instantiate. It’s acting like a classpath issue or a class loader issue. BTW, when I “Run” the form, everything works perfectly. However, I would prefer to see things in the designer.
I’m on Eclipse 3.4, MyEclipse 7.0-M2-20080915.
Loyal WaterMemberGuys,
I have already filed this issue for the dev team. Im sorry for the inconvenience cause. Could one of you’ll please send me a simple project that exhibits the behavior.Thanks.
steve@bfdpMemberSorry, I am e-mail challenged today. Here are three classes and a .form file. Please copy them out, and they should demonstrate the problem. The images are 40×40 pixel .png, the content doesn’t matter. The sources are in a package called “test”, the images are in “test/resources”.
ImageIconHelper.java
package test; import java.io.File; import java.net.URL; import javax.swing.ImageIcon; /** * */ public class ImageIconHelper { /** */ private static final ImageIcon RUNNING; /** */ private static final ImageIcon COMPLETE; /** */ private static final ImageIcon FAULT; static { final URL directoryURL; final File resourcesDirectory; /* * Locate the image directory */ directoryURL = ClassLoader.getSystemClassLoader() .getResource("test/resources"); try { resourcesDirectory = new File(directoryURL.toURI()); } catch (Throwable t) { t.printStackTrace(); throw new RuntimeException("Unable to find resources directory."); } /* * Load images */ RUNNING = new ImageIcon(resourcesDirectory.getAbsolutePath() + "/running.png"); COMPLETE = new ImageIcon(resourcesDirectory.getAbsolutePath() + "/complete.png"); FAULT = new ImageIcon(resourcesDirectory.getAbsolutePath() + "/fault.png"); } /** * Get the rUNNING * * @return the rUNNING */ public static ImageIcon getRunning() { return RUNNING; } /** * Get the cOMPLETE * * @return the cOMPLETE */ public static ImageIcon getComplete() { return COMPLETE; } /** * Get the fAULT * * @return the fAULT */ public static ImageIcon getFault() { return FAULT; } }
Legend.java
package test; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.LayoutManager; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; /** * */ public class Legend extends JPanel { /** */ private static final long serialVersionUID = 5776215325220278533L; /** * @param args * the command line arguments */ public static void main(final String args[]) { final JFrame frame = new JFrame("Test IconLegendPanel"); frame.setLayout(new GridBagLayout()); frame.add(new JLabel(), new GridBagConstraints(0, 0, 0, 0, 1d, 1d, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); frame.add(new Legend(), new GridBagConstraints(1, 0, 0, 0, 0d, 0d, GridBagConstraints.NORTH, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0)); frame.add(new JLabel(), new GridBagConstraints(2, 0, 0, 0, 1d, 1d, GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0)); frame.setMinimumSize(new Dimension(1225, 100)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); java.awt.EventQueue.invokeLater(new Runnable() { public void run() { frame.setVisible(true); } }); } private BaseLabel running; private BaseLabel complete; private BaseLabel fault; /** * Constructor */ public Legend() { super(); initComponents(); } /** * Constructor * * @param pArg0 */ public Legend(boolean pArg0) { super(pArg0); initComponents(); } /** * Constructor * * @param pArg0 */ public Legend(LayoutManager pArg0) { super(pArg0); initComponents(); } /** * Constructor * * @param pArg0 * @param pArg1 */ public Legend(LayoutManager pArg0, boolean pArg1) { super(pArg0, pArg1); initComponents(); } /** * This method is called from within the constructor to initialize the form. */ private void initComponents() { running = new BaseLabel(); complete = new BaseLabel(); fault = new BaseLabel(); JLabel spacer = null; final GridBagConstraints labelConstraints = new GridBagConstraints(); GridBagConstraints spacerConstraints = null; labelConstraints.gridy = 1; /* * Set panel properties */ setBackground(new java.awt.Color(0, 0, 0)); setLayout(new GridBagLayout()); /* * Add spacers */ for (int i = 0; i < 3; i++) { spacer = new JLabel(""); spacer.setOpaque(true); spacerConstraints = new GridBagConstraints(); spacerConstraints.gridy = 0; spacerConstraints.insets = new Insets(0, 30, 0, 30); add(spacer, spacerConstraints); } /* * Set label properties */ running.setText("Running"); running.setToolTipText("Batch running normally"); add(running, labelConstraints); complete.setText("Complete"); complete.setToolTipText("Batch complete"); add(complete, labelConstraints); fault.setText("Fault"); fault.setToolTipText("Batch stopped by critical fault"); add(fault, labelConstraints); /* * Assign icons */ // This try catch is necessary to allow the object to instantiate in Matisse try { running.setIcon(ImageIconHelper.getRunning()); complete.setIcon(ImageIconHelper.getComplete()); fault.setIcon(ImageIconHelper.getFault()); } catch (Throwable t) { t.printStackTrace(); } } private class BaseLabel extends JLabel { /** * For serialization */ private static final long serialVersionUID = 9198893038354886961L; /** * Constructor */ public BaseLabel() { setFont(new Font("Small Fonts", Font.BOLD, 11)); setForeground(Color.WHITE); setHorizontalTextPosition(CENTER); setVerticalTextPosition(BOTTOM); } } }
MainFrame.java (generated from MainFrame.form)
/* * MainFrame.java Created on __DATE__, __TIME__ */ package test; /* * @author __USER__ */ public class MainFrame extends javax.swing.JFrame { /** Creates new form MainFrame */ public MainFrame() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ //GEN-BEGIN:initComponents // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; legend1 = new test.Legend(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setMinimumSize(new java.awt.Dimension(300, 150)); getContentPane().setLayout(new java.awt.GridBagLayout()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; getContentPane().add(legend1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(jLabel1, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; getContentPane().add(jLabel2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(jLabel3, gridBagConstraints); pack(); }// </editor-fold> //GEN-END:initComponents /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new MainFrame().setVisible(true); } }); } //GEN-BEGIN:variables // Variables declaration - do not modify private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private test.Legend legend1; // End of variables declaration//GEN-END:variables }
MainFrame.form
<?xml version="1.0" encoding="UTF-8" ?> <Form version="1.3" maxVersion="1.5" type="org.netbeans.modules.form.forminfo.JFrameFormInfo"> <Properties> <Property name="defaultCloseOperation" type="int" value="3"/> <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> <Dimension value="[300, 150]"/> </Property> </Properties> <SyntheticProperties> <SyntheticProperty name="formSizePolicy" type="int" value="1"/> </SyntheticProperties> <AuxValues> <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/> <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/> <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,2,26,0,0,3,62"/> </AuxValues> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> <SubComponents> <Component class="test.Legend" name="legend1"> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> <GridBagConstraints gridX="1" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> </Constraint> </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabel1"> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="1.0" weightY="0.0"/> </Constraint> </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabel2"> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> <GridBagConstraints gridX="2" gridY="0" gridWidth="1" gridHeight="1" fill="2" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="1.0" weightY="0.0"/> </Constraint> </Constraints> </Component> <Component class="javax.swing.JLabel" name="jLabel3"> <Constraints> <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> <GridBagConstraints gridX="0" gridY="1" gridWidth="3" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="1.0" weightY="1.0"/> </Constraint> </Constraints> </Component> </SubComponents> </Form>
Note the try/catch at the bottom of Legend. Removing it prevents the class from instantiating in Matisse at all. If it is present, Legend instantiates, but the images are missing.
MainFrame “run”s fine. The problem in Matisse seems to be an inability to load ImageIconHelper, which I assume has something to do with the classpath.
Loyal WaterMemberThanks for this information. I’ll send it across to the dev team.
-
AuthorPosts