Re: Use MultiView APIs
geertjan wielenga <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Organization | Oracle Corporation |
| Message-ID | <[email protected]> |
Well, you're going to need to provide a lot of information -- otherwise I can't help. What must I do to see the problem myself? When I open the window, I am asked for a user and password and various things -- I don't know what to fill in there, so I cannot reproduce the problem. Pretend you're me and provide the info I need, assuming that I know nothing at all about your problem, up to the point where I can actually see the problem myself. Gj On 14-7-2016 20:40, Nuwan Sameera wrote: > Hi, > > I tried with this change. But same error occurred. How I change 505. > Error given from that line. > > Thanks and Regards, > Nuwan Sameera > > On Thu, Jul 14, 2016 at 11:59 PM, geertjan wielenga > <[email protected] <mailto:[email protected]>> > wrote: > > > Possibly this is all you need -- change the class signature to this: > > public final class ResourceExplorerTopComponent extends > CloneableTopComponent > > Gj > > > On 14-7-2016 20:11, Nuwan Sameera wrote: >> Hi, >> >> Thank you. My source codes available in [1] >> >> [1] >> https://github.com/NuwanSameera/syncope/blob/master/netbeans-plugin/src/main/java/org/apache/syncope/netbeans/plugin/view/ResourceExplorerTopComponent.java >> >> Line 479 - 581 >> >> Please check and support to solve issue. >> >> I need to open empty editor and editor with content. >> >> Regards, >> Nuwan Sameera. >> >> >> On Thu, Jul 14, 2016 at 11:27 PM, geertjan wielenga >> <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> Is the source code on GitHub or somewhere like that? Would be >> happy to help you, but need more context than the below, >> i.e., ideally the full source code. >> >> Gj >> >> >> On 14-7-2016 19:30, Nuwan Sameera wrote: >>> Hi all, >>> >>> I am developing netbeans plugin for apache syncope. I need >>> to open editors in different tabs in same instance like >>> SOURCE and HISTORY. I am tried to using following code. >>> >>> MultiViewDescription[] descriptionArray = new >>> MultiViewDescription[0]; >>> descriptionArray[0] = new MultiViewDescription() { >>> @Override >>> public int getPersistenceType() { >>> return 0; >>> } >>> >>> @Override >>> public String getDisplayName() { >>> return "Test 1"; >>> } >>> >>> @Override >>> public Image getIcon() { >>> return null; >>> } >>> >>> @Override >>> public HelpCtx getHelpCtx() { >>> return null; >>> } >>> >>> @Override >>> public String preferredID() { >>> return "A"; >>> } >>> >>> @Override >>> public MultiViewElement createElement() { >>> return new >>> MultiViewEditorElement(Lookup.EMPTY); *//GIVEN RUNTIME ERROR >>> * >>> } >>> }; >>> >>> TopComponent ctc = >>> MultiViewFactory.createMultiView(descriptionArray, >>> descriptionArray[0]); >>> ctc.open(); >>> ctc.requestActive(); >>> >>> *//GIVEN RUNTIME ERROR Line give *|IllegalArgumentException >>> <http://download.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true> >>> saying |||CloneableEditorSupport| >>> <http://bits.netbeans.org/8.0/javadoc/org-openide-text/org/openide/text/CloneableEditorSupport.html?is-external=true> >>> is not present in provided |Lookup| >>> <http://bits.netbeans.org/8.0/javadoc/org-openide-util/org/openide/util/Lookup.html?is-external=true>. >>> >>> | >>> |I search method to create Lookup object with >>> ClonableEditorSupport. I don't found suitable solution. >>> >>> | >>> |Please help me. >>> >>> | >>> |Thanks and Regards. | >>> -- >>> Nuwan Sameera. >>> Undergraduate, >>> Electronic and Telecommunication Engineering, >>> University of Moratuwa. >> >> >> >> >> -- >> Nuwan Sameera. >> Undergraduate, >> Electronic and Telecommunication Engineering, >> University of Moratuwa. > > > > > -- > Nuwan Sameera. > Undergraduate, > Electronic and Telecommunication Engineering, > University of Moratuwa.