Today's Messages (off)
| Unanswered Messages (on)
| Forum: Newcomers |
|---|
| Topic: how to access the subclass from the superclass |
|---|
| how to access the subclass from the superclass [message #1060560] |
Sun, 26 May 2013 17:42 |
Fatima Salhi Messages: 2 Registered: May 2013 |
Junior Member |
|
|
hi everyone
Here are some of my EMF meta model:

I want to retrieve the names of all primitives
here is my java code:
Systeme s = (Systeme)resource.getContents().get(0);
//Component
EList<Component> list1 = s.getComponente();
Iterator i1 = list1.iterator();
while (i1.hasNext()){
Component c =(Component) i1.next();
java.lang.System.out.println(c.getNom());
}
but this code displays the names of all the Component elements
how can I access the Primitive class from the Component class?
|
|
| | Topic: .product file write error |
|---|
| .product file write error [message #1060522] |
Sun, 26 May 2013 00:27 |
Kumail Haider Messages: 4 Registered: April 2013 |
Junior Member |
|
|
I am trying to export my osgi project using the eclipse export manager. In my .product file after defining the dependencies and the launch preferences, I click on the 'run an instance' option in the overview tab but it keeps saying that I can't write the .config file to my workspace. I have attached the log from my workspace. Appreciate any help!
Attachment: error.log
(Size: 1.81KB, Downloaded 6 times)
|
|
| | Topic: I have lost the Menue Iteam Team |
|---|
| | Topic: Debugging Error - Conflicting handlers for org.eclipse.wst.sse |
|---|
| Debugging Error - Conflicting handlers for org.eclipse.wst.sse [message #1060454] |
Fri, 24 May 2013 13:51 |
Kathy Piast Messages: 2 Registered: May 2013 |
Junior Member |
|
|
I'm a little baffled as I have used eclipse to debug PHP with XDebug on other machines. I am not setup up a new machine and when I try to use the debugger I get the following error:
eclipse.buildId=M20130204-1200
java.version=1.7.0_21
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA
Command-line arguments: -os win32 -ws win32 -arch x86_64
Error
Sat May 25 13:28:14 EDT 2013
Conflicting handlers for org.eclipse.wst.sse.ui.toggle.comment: {org.eclipse.wst.sse.ui.internal.handlers.ToggleLineCommentHandler@18e2184c} vs {org.eclipse.php.internal.ui.actions.PHPToggleLineCommentHandler@23a93257}
Any words of wisdom?
Kate
|
|
| | Topic: Open project path |
|---|
| Open project path [message #1060318] |
Fri, 24 May 2013 02:51 |
Mazaeva Darya Messages: 2 Registered: May 2013 |
Junior Member |
|
|
I am developing a plug-in that allows you to create external application and C-projects in it.How to get currently open project path programmatically in plug-in.
|
|
| | Topic: How to cancel prompt box: "Undefined variable" ? |
|---|
| How to cancel prompt box: "Undefined variable" ? [message #1060299] |
Thu, 23 May 2013 23:34 |
jduie dkd Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I use eclipse and pydev, I have canceled:
1, perferences-general-editors-text editor-annotation: error, spelling errors and warning
2, perferences-pydev-editor: hover, and code analysis(including undefined)
But when cursor stay on some function name, there's still a prompt box: "Undefined Variable:function-name press f2 for focus". How to cancel it? Thank you!
|
|
| | Topic: Looking for Eclipse IDE for C/C++ Developers version from 3.8.0 to 4.0.0 |
|---|
| | Topic: Is the XSL 'document' function implemented/supported? |
|---|
| Is the XSL 'document' function implemented/supported? [message #1060279] |
Thu, 23 May 2013 15:53 |
Paul Carew Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I'm trying to write an XSL transformation that reaeds/transforms an Android layout file to HTML.
Android layout files reference other 'value' xml files for specific values, e.g. strings.xml
I tried using the xsl document funxtion to open the strings.xml file to extract a string value.
However, nothing seems to happen. No errors and no results from the access.
Here is the code snippets:
This is the xsl line that tries to open the strings file and get a value.
<xsl:value-of select="document('../values/strings.xml')/String[@name=substring-after(@android:text,'/')]" />
I also tried placing the strings.xml file in the same directory as the xsl file, but that didn't make any difference.
Any help/insight would be greatly appreciated.
Paul.
|
|
| | Topic: OSGi Application name is null in VisualVM |
|---|
| OSGi Application name is null in VisualVM [message #1060009] |
Wed, 22 May 2013 10:16 |
Stephen Ranger Messages: 2 Registered: November 2012 |
Junior Member |
|
|
When I start my OSGi Application and look at it in VisualVM, the name of the process is "null"
How are you supposed to name your process? I can't find any information regarding this issue. Any help would be appreciated. Thanks!
|
|
| | Topic: Documentation print topic and all subtopics problem |
|---|
| | Topic: With Perl - An internal error occurred during: "Toggle Line Breakpoint (epic)" |
|---|
| With Perl - An internal error occurred during: "Toggle Line Breakpoint (epic)" [message #1059683] |
Tue, 21 May 2013 04:20 |
matan ostrovsky Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I installed:
1. win 7.
2. strawberry Perl.
3. Eclipse (classic) Version: 4.2.2
Build id: M20130204-1200
4. Update the last jave ver. 1.7.0_21
5. install Active Perl
6. copy epic package to C:\eclipse\plugins
in this order.
A. I open a perl file.
B. I try to toggle a break point and I go tthe above problem/excption
Can someone please help?!?!?
Thanks alot.
Matan
|
|
| | Forum: Sapphire |
|---|
| Topic: Element ordering not according to XSD (with several files) |
|---|
| Element ordering not according to XSD (with several files) [message #1060658] |
Mon, 27 May 2013 10:42 |
kon f Messages: 33 Registered: March 2012 |
Member |
|
|
Hey,
I found this post. I extended the example being able to include several xsd files (useful if the schema is big and needs to be spread over several xsd files). I use include because I want to contribute to the same namespace.
On the given example, I just moved the type definition to a separate xsd file.
schema.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.roded.com/xsdtestcase" xmlns="http://www.roded.com/xsdtestcase">
<xs:include schemaLocation="type.xsd" />
<xs:element name="XSDTestCaseModel" type="XSDTestCaseModelType" />
</xs:schema>
type.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.roded.com/xsdtestcase" xmlns="http://www.roded.com/xsdtestcase"
elementFormDefault="qualified">
<xs:complexType name="XSDTestCaseModelType">
<xs:sequence>
<xs:element name="ValueA" type="xs:string"></xs:element>
<xs:element name="ValueB" type="xs:string"></xs:element>
<xs:element name="ValueC" type="xs:string"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
IXSDTestCaseModel
package com.modelity.eclipse.structures.sapphire.report.xsdtestcase;
import org.eclipse.sapphire.modeling.IModelElement;
import org.eclipse.sapphire.modeling.ModelElementType;
import org.eclipse.sapphire.modeling.Value;
import org.eclipse.sapphire.modeling.ValueProperty;
import org.eclipse.sapphire.modeling.annotations.GenerateImpl;
import org.eclipse.sapphire.modeling.annotations.Label;
import org.eclipse.sapphire.modeling.xml.annotations.XmlNamespace;
import org.eclipse.sapphire.modeling.xml.annotations.XmlSchema;
@GenerateImpl
@XmlNamespace(uri = "http://www.roded.com/xsdtestcase")
@XmlSchema(namespace = "http://www.roded.com/xsdtestcase", location = "http://www.roded.com/xsdtestcase/1.0")
public interface IXSDTestCaseModel extends IModelElement {
ModelElementType TYPE = new ModelElementType(IXSDTestCaseModel.class);
// *** ValueA ***
@Label(standard = "ValueA")
ValueProperty PROP_VALUE_A = new ValueProperty(TYPE, "ValueA");
Value<String> getValueA();
void setValueA(String value);
// *** ValueB ***
@Label(standard = "ValueB")
ValueProperty PROP_VALUE_B = new ValueProperty(TYPE, "ValueB");
Value<String> getValueB();
void setValueB(String value);
// *** ValueA ***
@Label(standard = "ValueC")
ValueProperty PROP_VALUE_C = new ValueProperty(TYPE, "ValueC");
Value<String> getValueC();
void setValueC(String value);
}
plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.ui.editors">
<editor
id="com.modelity.eclipse.structures.sapphire.report.xsdtestcase.IXSDTestCaseModel"
name="test case xsd"
filenames="xsdtestcase.xml"
default="true">
<class class="org.eclipse.sapphire.ui.swt.xml.editor.SapphireEditorForXml">
<parameter name="sdef" value="com.modelity.eclipse.structures.sapphire.report.xsdtestcase.testcasemodel"/>
</class>
</editor>
</extension>
<extension
point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution>
<system
systemId="http://www.roded.com/xsdtestcase/1.0"
uri="schema/schema.xsd">
</system>
</catalogContribution>
</extension>
</plugin>
Am I doing something wrong? Thank you!
Kon
|
|
| | Topic: Heterogeneous list with no common property |
|---|
| Heterogeneous list with no common property [message #1060618] |
Mon, 27 May 2013 06:59 |
kon f Messages: 33 Registered: March 2012 |
Member |
|
|
Hey,
I'm trying to implement a list storing different types. The gallery examples presents a running implementation. I copied the example and adjusted it for my requirements that slightly differ. My sub types do not have any attributes in common. So my base type does not contain any property, as it is for IChildElement interface. IChildElement contains the StringValue property that is inherited to all subtypes and used to shown in the UI (table).
@GenerateImpl
public interface Base extends IModelElement {
ModelElementType TYPE = new ModelElementType(Empty.class);
}
Text, Image and Pdf extend Base.
@Type(base = Base.class, possible = { Text.class, Image.class, Pdf.class })
@XmlListBinding
(
path = "description",
mappings =
{
@XmlListBinding.Mapping(element = "text", type = Text.class),
@XmlListBinding.Mapping(element = "image", type = Image.class),
@XmlListBinding.Mapping(element = "pdf", type = Pdf.class)
}
)
ListProperty PROP_DESCRIPTION = new ListProperty(TYPE, "Description");
ModelElementList<Empty> getDescription();
The table that shows the types in the UI just executes the toString() method from java.lang.Object and prints the memory address from org.eclipse.sapphire.ui.renderers.swt.DefaultListPropertyEditorRenderer$TableRow. Is there a straightforward way I could provide a label/content provider? I provided editing support in the detail area, but it would be nice if the user could directly change one property of a certain subtype in the table (that I would had to define per type e.g. for Image the URI and for Text the content). Is that possible?
Thank you!
Kon
|
|
| | Forum: Web Tools Project (WTP) |
|---|
| Topic: [JSDT] Please make InferredType.java implements Interface. |
|---|
| [JSDT] Please make InferredType.java implements Interface. [message #1060635] |
Mon, 27 May 2013 08:28 |
Byunghyun Yu Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I want customizing InferredType.java,
But now InferredType.java don`t have Interface class,
so i cannot implement InferredType.java.
Please make InferredType.java`s interface.
And I put some image for your understanding,
If you cant understand, leave a comment,
and then I will write more logically.
thank you Nitin..
Attachment: tset.jpg
(Size: 195.35KB, Downloaded 4 times)
|
|
| | Topic: Web Service Client creation problem with Apache CXF |
|---|
| Web Service Client creation problem with Apache CXF [message #1060455] |
Fri, 24 May 2013 14:22 |
Marco Bertini Messages: 1 Registered: May 2013 |
Junior Member |
|
|
I'm having serious problems with my (initial) attempts to work with Eclipse, CXF and web service wizards.
I've successfully deployed a web service to a Glassfish server 3.1.2. Now I'm trying to create a client using the Eclipse Juno SR2 wizard for Web Service Client creation within a Dynamic Web project created for a Glassfish server 3.1.2. I can see the WSDL file from a web browser, I can create a client when using the AXIS runtime, but when I try to create the client with CXF 2.x runtime (either CXF 2.6.8 and 2.7.5) I get (http edited to obey eclipse.org forum rules about links in posts):
==
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -client -d /Users/bertini/Documents/presentazioni/lezioni/SOA/workspace/TestServiceClientGlassfish/.cxftmp/src -classdir /Users/bertini/Documents/presentazioni/lezioni/SOA/workspace/TestServiceClientGlassfish/target/classes -p http_://testservice.csiaf.unifi.it/=it.unifi.csiaf.testservice -impl -validate -exsh false -dns true -dex true -wsdlLocation http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl -verbose -defaultValues -fe jaxws -db jaxb -wv 1.1 http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl
wsdl2java - Apache CXF 2.6.8
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/bertini/glassfish3/glassfish/modules/weld-osgi-bundle.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/apache-cxf-2.6.8/lib/slf4j-jdk14-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http_://www.slf4j.org/codes.html#multiple_bindings for an explanation.
WSDLToJava Error: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl
Caused by : WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory
org.apache.cxf.tools.common.ToolException: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl
Caused by : WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:420)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
Caused by: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl
Caused by : WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory
at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:97)
at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuilder.java:69)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:82)
at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:59)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:198)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)
... 4 more
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: java.lang.RuntimeException: Cannot create a secure XMLInputFactory
at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:243)
at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:192)
at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:78)
... 10 more
Caused by: java.lang.RuntimeException: Cannot create a secure XMLInputFactory
at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(StaxUtils.java:299)
at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(StaxUtils.java:254)
at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1423)
at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:1317)
at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:233)
... 12 more
==
If I try to execute the wsdl2java script from command line it works and the messages are:
/usr/local/apache-cxf-2.6.8/bin/wsdl2java -client -d /Users/bertini/Documents/presentazioni/lezioni/SOA/workspace/gf/.cxftmp/src -classdir /Users/bertini/Documents/presentazioni/lezioni/SOA/workspace/gf/build/classes -p http_://testservice.csiaf.unifi.it/=it.unifi.csiaf.testservice -impl -validate -exsh false -dns true -dex true -wsdlLocation http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl -verbose -defaultValues -fe jaxws -db jaxb -wv 1.1 http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -client -d /Users/bertini/Documents/presentazioni/lezioni/SOA/workspace/gf/.cxftmp/src -classdir /Users/bertini/Documents/presentazioni/lezioni/SOA/workspace/gf/build/classes -p http_://testservice.csiaf.unifi.it/=it.unifi.csiaf.testservice -impl -validate -exsh false -dns true -dex true -wsdlLocation http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl -verbose -defaultValues -fe jaxws -db jaxb -wv 1.1 http_://localhost:8888/TestServiceGlassfish/TeamsService?wsdl
wsdl2java - Apache CXF 2.6.8
I've also seen that the code is correctly generated.
Apparently there's some problem with my Eclipse+CXF combo, but I can't figure what is causing the issue. ANy help ?
|
|
| | Forum: scout |
|---|
| Topic: Marketplace entries? |
|---|
| | Forum: Dynamic Languages Toolkit (DLTK) |
|---|
| Topic: next version |
|---|
| next version [message #1060633] |
Mon, 27 May 2013 08:17 |
Kevin Hagel Messages: 9 Registered: December 2012 |
Junior Member |
|
|
|
What can we expect in the next version of DLTK, what kinds of changes will we have to deal with, what old things removed, new things added etc?
|
|
| | Forum: Jubula |
|---|
| Topic: Extending Jubula for RCP (version 2.0) |
|---|
Extending Jubula for RCP (version 2.0) [message #1060630] |
Mon, 27 May 2013 07:59 |
Michi Classen Messages: 30 Registered: March 2012 |
Member |
|
|
I developed an extension for jubula to verify and click on tabs in tabbed property pages. Everything works fine for jubula version 1.1. Now I migrated the implemented classes according to your extending guide.
The toolkit extension is working but the remote control extension can't find the mapping component. Why? The RCP Aut doesn't load the fragment.
I have no more idea - please help! Attached you will find my fragment.
UPDATE: For testing purposes I have integrated your example extension for 'groups'. For this fragment I have the same problem.
The config.ini file contains both fragments as follows:
slf4j.api,\
org.eclipse.jubula.rc.rcp@4:start,\
com.bmw.jubula.extension.rcp.rc,\
org.eclipse.jubula.examples.extension.rcp.rc
[Updated on: Mon, 27 May 2013 10:14] Report message to a moderator
|
|
| | Topic: Problem by using Jubula via update site mechanism |
|---|
| Problem by using Jubula via update site mechanism [message #1060167] |
Thu, 23 May 2013 07:40 |
Doreen Engling Messages: 2 Registered: July 2009 |
Junior Member |
|
|
So to get more knowledge with ubula
1.I have installed at first the stand alone Jubula version 2.0 and used the embedded database. Went through the SimpleMailTest RCP-sample and all was fine.
2.I have installed an eclipse 3.8.0 and added all the jubula 1.2.2 features via the update site mechanism, used the embedded database too / open the above created project SimpleMailTest and let run the "AUT Mail" so it is to see within the running AUT window ...testrun failed and it seems the AUT is not on focus, cant find by the test although I have set it on the properties/expert settings to Activation mode "Click on titlebar"
There is a screenshot (Image view) created, which shows me the whole desktop. And by selecting the Properties of the failed TC (Click on Toolbar Item)it is written: "Configuration Error" at Type.
I can't use the standalone version of Jubula in the future because the goal is to install GUI tests of our products after the build run on the bamboo server (ANT script is using there.
Any idea?
|
|
| | Topic: Could testexec Command offer an error message of screen shot besides .htm & .xml file? |
|---|
| | Topic: Multi-line Cut and Paste error on Jubula 2.0 |
|---|
| | Forum: Model-to-Model Transformation |
|---|
| Topic: [QVTo] how to use two target sources? |
|---|
| [QVTo] how to use two target sources? [message #1060627] |
Mon, 27 May 2013 07:33 |
Emre Taspolatoglu Messages: 12 Registered: April 2013 |
Junior Member |
|
|
Hello there!
I have a transformation where I use my own meta-model as a source. And as for the target models, I need to use two meta-models which are -indirectly- related together.
How could I achieve this? Any help will be appreciated.
Thanks.
|
|
| | Forum: Plugin Development Environment (PDE) |
|---|
| Topic: It works in PropertyPage, but nowhere else |
|---|
| It works in PropertyPage, but nowhere else [message #1060608] |
Mon, 27 May 2013 05:59 |
Marko Gašparič Messages: 2 Registered: May 2013 |
Junior Member |
|
|
With property page I save some values:
Inside: protected Control createContents(Composite parent)
projectNode = new ProjectScope((IProject)getElement().getAdapter(IProject.class)).getNode(Recommender.PLUGIN_ID);
Inside: performOk()
projectNode.put(PROJECT_ID, selectedProjectId);
try{
projectNode.flush();
} catch (BackingStoreException e) {
DialogCreator.showDialog("Error", "Saving failed!");
}
And I can also retrieve the data next time I open it without problems.
Inside: protected Control createContents(Composite parent)
projectNode.get(PROJECT_ID, null)
But when I want to obtain it in another class it always returns null!!
IEclipsePreferences projectNode = new ProjectScope(file.getProject()).getNode(Recommender.PLUGIN_ID);
return projectNode.get(PropertyPage.PROJECT_ID, null);
I really want to know the reason for that.
Thank you in advance.
|
|
| | Topic: Eclipse plugin view not refreshed |
|---|
| Eclipse plugin view not refreshed [message #1059846] |
Tue, 21 May 2013 17:41 |
Testr t Messages: 18 Registered: April 2013 |
Junior Member |
|
|
Hi,
I am having an eclipse plugin which when opened does a background job (using IWorkbenchSiteProgressService). I schedule a job and then update a widget(Nattable) post the job is done in the UI thread(using syncExec from Display) and it works perfectly except that the grid is not shown until i go to another view or change perspective and come back to the view. Its a refresh issue i guess, but I do not know how to get the plugin view to refresh so that the grid is visible.
|
|
| | Forum: Eclipse Platform |
|---|
| Topic: Resizable and movable panel in parent- SWT |
|---|
| | Topic: Editing Table Column Header text and Tab Item Title |
|---|
| Editing Table Column Header text and Tab Item Title [message #1060538] |
Sun, 26 May 2013 08:30 |
illi g Messages: 6 Registered: September 2012 |
Junior Member |
|
|
Hi,
I would like to know if
(1) Table's column header text can be edited on the fly. (for instance if I double-click table column header-Not Cells, it should be changed to Edit Field. )
(2) TabFolder's Tab Item title can be edited on the fly.(When we double-click tab item title, it should become editable field.)
Thanks,
illi.
|
|
| | Topic: p2 repository produces outdated jar/plugin |
|---|
| p2 repository produces outdated jar/plugin [message #1060151] |
Thu, 23 May 2013 06:44 |
Erik Vande Velde Messages: 61 Registered: September 2012 |
Member |
|
|
Our project consists of a common, server and client module.
Common contains classes that are shared between the server and client.
The client module (RCP4) should always use the most recent version of common.
Therefore we build a common-1.0.0-SNAPSHOT jar, and put it in nexus.
We also have a p2repository module that creates a p2 update site containing the latest common code, let's call it p2repository.zip.
THE PROBLEM: when we use p2repository.zip as 'software site' in the target platform of our client module it somehow downloads the common-1.0.0-SNAPSHOT.jar of one day ago, and the code doesn't compile. Still that same zip contains the correct version of common-1.0.0-SNAPSHOT.jar in its plugin sub-directory, so I wonder where eclipse finds the outdated jar.
THE QUESTION: why doesn't eclipse use the jars in the p2 repository zip, and where does it find the outdated jars it does use?
Sadly I cannot attach the p2repository.zip here, as it's 4 MB in size ...
|
|
| | Forum: EclipseLink |
|---|
| Topic: Nested Embeddable bug? |
|---|
| Nested Embeddable bug? [message #1060293] |
Thu, 23 May 2013 20:05 |
Roger Spall Messages: 4 Registered: January 2013 |
Junior Member |
|
|
I have an Embeddable called Address which in turn contains an Embeddable called ZipCode. Finally I have an Entity called Contact which contains an Address.
<embeddable access="FIELD" class="com.yamaha.ydsus.common.model.domain.ZipCode">
<attributes>
<basic name="zipCode"/>
</attributes>
</embeddable>
<embeddable access="FIELD" class="com.yamaha.ydsus.common.model.domain.Address">
<attributes>
<basic name="street1"/>
<basic name="city"/>
<basic name="stateCode"/>
<embedded name="zipCode" attribute-type="com.yamaha.ydsus.common.model.domain.ZipCode"/>
</attributes>
</embeddable>
<entity access="FIELD" class="com.yamaha.yds.model.domain.dealerprofile.DealerContactImpl">
<table name="DEALER_CONTACT"/>
<attributes>
<id name="oid">
<column name="OID"/>
<generated-value generator="DEALER_CONTACT_SEQ" strategy="SEQUENCE"/>
<sequence-generator allocation-size="1" name="DEALER_CONTACT_SEQ" sequence-name="DEALER_CONTACT_SEQ"/>
</id>
<basic name="email">
<column name="EMAIL"/>
</basic>
.... other fields and relationships
<embedded name="address">
<attribute-override name="zipCode.zipCode">
<column name="ZIP"/>
</attribute-override>
<attribute-override name="street1">
<column name="STREET_ADDRESS"/>
</attribute-override>
<attribute-override name="stateCode">
<column name="STATE"/>
</attribute-override>
<attribute-override name="city">
<column name="CITY"/>
</attribute-override>
</embedded>
</attributes>
</entity>
Anyway, with weaving turned on, whenever I create a new DealerContact with a new Address with a NULL ZipCode I get a null pointer exception when my SessionBean tries to commit / exit. Turning off weaving fixes the problem...
[Servlet Error]-[action]: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at org.eclipse.persistence.mappings.AggregateMapping.updateChangeRecord(AggregateMapping.java:908)
at org.eclipse.persistence.mappings.AggregateMapping.updateChangeRecord(AggregateMapping.java:955)
at org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener.internalPropertyChange(AttributeChangeListener.java:149)
at org.eclipse.persistence.internal.descriptors.changetracking.AttributeChangeListener.propertyChange(AttributeChangeListener.java:111)
at com.yamaha.ydsus.common.model.domain.dealerprofile.DealerContact._persistence_propertyChange(DealerContact.java)
at com.yamaha.yds.model.domain.dealerprofile.DealerContactImpl._persistence_set_address(DealerContactImpl.java)
at com.yamaha.yds.model.domain.dealerprofile.DealerContactImpl.setAddress(DealerContactImpl.java:167)
at com.yamaha.yds.apps.dealerprofile.DealerProfileManagerBean.saveDealerContact(DealerProfileManagerBean.java:466)
This code was converted from Native Eclipselink / Toplink, and worked just fine with null ZipCodes. Of course, I can create a Null ZipCode object to get around the problem, but would like to understand if this is a bug, or something wrong with my mapping?
Just to be clear, our object model / database design expects null ZipCodes, so we would like to support this design.
From looking at the source code for the AggregateMapping class, it doesn't seem to expect nested embeddables to be null when using weaving for change management?
Eclipselink version 2.4.1.v20121003-ad44345
Many thanks,
Roger
[Updated on: Thu, 23 May 2013 20:08] Report message to a moderator
|
|
| | Topic: Slow Query Extraction |
|---|
| Slow Query Extraction [message #1060194] |
Thu, 23 May 2013 09:05 |
pdvmipv Mising name Messages: 9 Registered: October 2010 |
Junior Member |
|
|
I have an Oracle database and i use EclipseLink, this is an extract of my persistence classes:
@Entity
@Table(name = "TACOS")
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_TACOS")
@SequenceGenerator(name = "SEQ_TACOS", sequenceName = "SEQ_TACOS", allocationSize = 1, initialValue = 1)
@Basic(optional = false)
@Column(name = "ID_TACOS")
private Long idTacos;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "tacos")
private List<PstdCommon> pstdCommonList;
[b]public List<PstdCommon> getPstdCommonList() {
return pstdCommonList;
}[/b]
@Entity
@Table(name = "PSTD_COMMON")
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PSTD_TACOS")
@SequenceGenerator(name = "SEQ_PSTD_TACOS", sequenceName = "SEQ_PSTD_TACOS", allocationSize = 1, initialValue = 1)
@Basic(optional = false)
@Column(name = "ID_PSTD_TACOS")
@JoinColumn(name = "ID_TACOS", referencedColumnName = "ID_TACOS")
@ManyToOne(optional = false)
private Tacos tacos;
@OneToOne(cascade = CascadeType.ALL, mappedBy = "pstdCommon")
private PstdPcmAnalog pstdPcmAnalog;
@Entity
@Table(name = "PSTD_PCM_ANALOG")
@JoinColumn(name = "ID_PSTD_TACOS", referencedColumnName = "ID_PSTD_TACOS", insertable = false, updatable = false)
@OneToOne(optional = false)
private PstdCommon pstdCommon;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "pstdPcmAnalog")
private List<PstdPcmGrid> pstdPcmGridList;
@Entity
@Table(name = "PSTD_PCM_GRID")
@EmbeddedId
protected PstdPcmGridPK pstdPcmGridPK;
@JoinColumn(name = "ID_PSTD_TACOS", referencedColumnName = "ID_PSTD_TACOS", insertable = false, updatable = false)
@ManyToOne(optional = false)
private PstdPcmAnalog pstdPcmAnalog;
@JoinColumn(name = "ID_GRID_TACOS", referencedColumnName = "ID_GRID_TACOS", insertable = false, updatable = false)
@ManyToOne(optional = false)
private GridTacosPcm gridTacosPcm;
NAMED QUERY
-----------
@NamedQuery(name = "Tacos.findTacosByName", query = "SELECT t FROM Tacos t WHERE t.idHeli = :idHeli AND t.idCodHeli = :idCodHeli AND "
+ "t.tacosName = :tacosName")
As a first step i run the '@NamedQuery Tacos.findTacosByName' to get the main object of db (Tacos), from this object i take the list parameters associated with the main object with the function 'getpstdcommonlist()' inside the class main class.
When i do the first access of the data of the list returned by the function 'getpstdcommonlist()'automatically eclipselink performs 30000 query for "fill" all the objects. The execution time on a list of 10000 records is about 48 seconds.
This a part of quey executed:
T-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CONNECTION_NAME, FIELD_LENGHT, HERTZ_REPETITION, MSB, PARAMTER_NAME, PHSYCAL_TYPE, POSITION, PROV_CONV_TYPE FROM PSTD_FULL_FIELD WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.088--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CAL_IMPULSE, CAL_SHORT, CAL_TYPE, CAL_ZERO, DATA_FORMAT, DEPURATION, ENDURANCE, EXTRA_BITS, PRE_F_IMPULSE, PRE_F_SHORT, PRE_F_ZERO FROM PSTD_PCM_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.089--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CHANNEL_FM, COD_FREQ_ACQ, NUM_CYCLE FROM PSTD_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.09--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, LINE_NAME, PROC_CONV, RATE, SIGN, START_BIT, STOP_BIT FROM PSTD_PCM_BUS WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.095--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CONNECTION_NAME, FIELD_LENGHT, HERTZ_REPETITION, MSB, PARAMTER_NAME, PHSYCAL_TYPE, POSITION, PROV_CONV_TYPE FROM PSTD_FULL_FIELD WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.098--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CAL_IMPULSE, CAL_SHORT, CAL_TYPE, CAL_ZERO, DATA_FORMAT, DEPURATION, ENDURANCE, EXTRA_BITS, PRE_F_IMPULSE, PRE_F_SHORT, PRE_F_ZERO FROM PSTD_PCM_ANALOG WHERE (ID_PSTD_TACOS = ?)
[EL Fine]: 2013-05-23 11:06:06.099--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT ID_PSTD_TACOS, CHANNEL_FM, COD_FREQ_ACQ, NUM_CYCLE FROM PSTD_ANALOG WHERE (ID_PSTD_TACOS = ?)
....
[EL Finest]: 2013-05-23 11:07:32.266--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[EL Fine]: 2013-05-23 11:07:32.267--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)
[EL Finest]: 2013-05-23 11:07:32.271--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[EL Fine]: 2013-05-23 11:07:32.273--ServerSession(1576330609)--Connection(380449691)--Thread(Thread[AWT-EventQueue-0,6,main])--SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)
[EL Finest]: 2013-05-23 11:07:32.28--ServerSession(1576330609)--Thread(Thread[AWT-EventQueue-0,6,main])--Execute query ReadAllQuery(name="file:/E:/NetBeansProjects/Codice/java/Prove/JTestOracleTacos/build/classes/_JTestOracleTacosPU_url=jdbc:oracle:thin:@172.23.110.159:3159/PJPANDA_user=JPANDA" referenceClass=PstdPcmGrid sql="SELECT DELAY, MINOR_FRAME, WORD_POS, WORD_STEP, ID_PSTD_TACOS, ID_GRID_TACOS FROM PSTD_PCM_GRID WHERE (ID_PSTD_TACOS = ?)")
[
....
On the other hand, if I create a query with INNER JOIN, between the three tables, which I will return the same number of data, the execution time is a little more than 1 second.
The query is:
"SELECT PSTD_COMMON.*, PSTD_PCM_ANALOG.*, PSTD_PCM_GRID.* FROM PSTD_COMMON INNER JOIN PSTD_PCM_ANALOG ON (PSTD_COMMON.ID_PSTD_TACOS = PSTD_PCM_ANALOG.ID_PSTD_TACOS) INNER JOIN PSTD_PCM_GRID ON (PSTD_COMMON.ID_PSTD_TACOS = PSTD_PCM_GRID.ID_PSTD_TACOS) WHERE PSTD_COMMON.ID_TACOS = ? AND PSTD_PCM_GRID.ID_GRID_TACOS = ?"
There is a way to work with eclispelink without executed multipe query, and use a simple inner join like the native query and fill the persistence classes?
It's normal that eclipselink use so many query to extract the data?
|
|
| | Topic: When a merge does not update? |
|---|
| When a merge does not update? [message #1060076] |
Wed, 22 May 2013 18:45 |
Everton Fujimoto Messages: 4 Registered: June 2012 |
Junior Member |
|
|
A example:
Using primefaces, when I list a data in a dataTable with LazyDataModel and get a entity with LazyDataModel.getRowData(), I change values but nothing value is updated in EntityManager.merge().
A more strange is when I process a new request (with session or view JSF bean), the data can be updated in merge... (same entity, stored in session).
detach a entity not fix...
But if I get the data from EntityManager without get a entity from getRowData(), can be updated...
Other strange point is when I get a data with getRowData(), if I get a entity from entityManager from ID, the entity not be updated...
Sorry for my bad english, i'm brazilian...
|
|
| | Topic: Modelevolution and -migration - My approach |
|---|
| Modelevolution and -migration - My approach [message #1059717] |
Tue, 21 May 2013 06:50 |
|
Hi,
i have experience in JPA, but never used EclipseLink-API directly.
It would be nice if you could tell me whether my ideas can be done using the eclipse link API (or even internal classes).
My goal is to provide a simple model-evolution and migration module for my open source project.
The idea:
There is an entity called ItemEntity which is properly managed by EclipseLink. It contains different ForeignKeyConstraints to other tables.
A developer creates a new version of ItemEntity and adds / removes / renames properties.
An OSGi bundle should be used to migrate the current entity properly to its new version.
Therefore i need 3 entities:
1) the active ItemEntity
2) a new ItemEntity_v100 (Its schema matches the version before model evolution)
3) a new ItemEntity_v101 (Its schema matches the version after model evolution)
What should happen?
1) Create table ItemEntity_v100 by API (after FKConstraints have been removed)
2) Create table ItemEntity_v101 by API (after FKConstraints have been removed)
3) Copy all records from ItemEntity to ItemEntity_v100
4) Read all records from ItemEntity_v100 and call some MigrationImpl that returns a migrated ItemEntity_v101
5) Write converted ItemEntity_v101-instance to its table
6) Remove all FKConstraints on ItemEntity
7) Drop ItemEntity
8) Create ItemEntity with same schema as ItemEntity_v101
9) Copy all records from ItemEntity_v101 to ItemEntity
10) Conclusion: ItemEntity was properly migrated.
How to do:
The developer provides an OSGi bundle with all entities and adds 2 additional entities for the current and the old version: ItemEntity_v100 and ItemEntity_v101. They are also managed by JPA.
Then the developer creates a bundle and adds a persistence.xml into it with eclipselink.ddl-generation=NONE. So the tables ItemEntity_v100 and ItemEntity_v101 will not become created.
The question:
Now i would like to use EclipseLink-API to create ItemEntity_v100 and ItemEntity_v101 on database and to manage by JPA. But before creation i would like to remove the FKConstraints.
Something like that:
TableDefinition tabledef = UnknownUtil.createTableDefinition(ItemEntity_v100.class);
tableDef.getForeignKeyMap().clear();
UnknownUtil.createTableOnDatabase(tabledef);
And before dropping ItemEntity i will also have to remove all FKConstraints by EclipseLink-API.
Is there a way doing that stuff with EclipseLink API?
Are there any examples?
Can anyone point me to code in eclipse link project how to do?
Thanks a lot for your help...
Best, Florian
|
|
| | Forum: Platform - User Assistance (UA) |
|---|
| Topic: Extension point (org.eclipse.help.contentExtension) link resources (images etc.) |
|---|
| Extension point (org.eclipse.help.contentExtension) link resources (images etc.) [message #1060578] |
Mon, 27 May 2013 03:12 |
Norman Schoene Messages: 3 Registered: April 2013 |
Junior Member |
|
|
Hi,
I am using the extension point "org.eclipse.help.contentExtension" to allow installed plug-ins to add help dynamically in the global help of our Eclipse 3.8.x/4.2.2 (compatbility mode) RCP application.
The thing is that I want them to also be able to embed images and other resources in the provided help. But the "org.eclipse.help" does not seem to do anything to these links and they cannot be resolved from the source plug-in.
I tried the following variations in the source plug-in XHTML with no success:
<img src="/my.contributing.plugin/resources/help/someImage.png" alt="Some image" />
<img src="my.contributing.plugin/resources/help/someImage.png" alt="Some image" />
<img src="/resources/help/someImage.png" alt="Some image" />
<img src="someImage.png" alt="Some image" />
Note that the XHTML document containing any of these lines is located on the same directory level as "someImage.png". The rest of the document is shown in the global help without problems.
Any hints?
Thanks,
Norman
|
|
| | Forum: M2T (model-to-text transformation) |
|---|
| Topic: [Acceleo] Problem when generating methods with the same name |
|---|
| [Acceleo] Problem when generating methods with the same name [message #1060130] |
Thu, 23 May 2013 05:06 |
Javier García Messages: 70 Registered: April 2013 |
Member |
|
|
Hi guys,
I recently run into some problems with my Acceleo transformation. It works mostly perfect, I transform an UML model into Java code and now I have in several classes two methods that have the same name, but different parameters (method overloading I believe it's called) and when Acceleo generates it, the weirdest thing happens, I get three methods generated. Now when I create the method I also copy any comments it has attached, so I can clearly see that one of the methods gets generated once, and the other method gets generated twice.
So why does this happen? does it get confused somehow due to both methods sharing the same name? is this a known bug?(I couldn't find any info). It's really the only case in which I get this error, every other method gets created just once.
I will just post here the code I use in case it's useful:
[template private operations(aClass : Class)]
[for (anOperation : Operation | aClass.getOperations()->union(aClass.getImplementedInterfaces().ownedOperation))]
/**
* The documentation of the method [anOperation.name.toLowerFirst()/].
*
[for (aParameter : Parameter | anOperation.ownedParameter) ? (aParameter.direction <> ParameterDirectionKind::return)]
* @param [aParameter.name/]
[/for]
[if (not anOperation.type.oclIsUndefined())]
* @return
[/if]
*
* @generated
*/
[anOperation.visibility/] [if (anOperation.type.oclIsUndefined())]void[else][anOperation.type.name/][/if] [anOperation.name.toLowerFirst()/]([anOperation.parameters()/]) {
//
/*
* This is the code from the former method:
* [for (aComment : Comment | anOperation.ownedComment)] [aComment._body/][/for]
*/
// TODO should be implemented
[if (anOperation.type.oclIsUndefined())]//return null;[else][/if] [comment it should be not anOperation... but for some reason it doesn't work properly if we do it that way. /]
//
}
[/for]
[/template]
Thanks in advance,
regards,
Javier
|
|
| | Forum: Equinox |
|---|
| Topic: How to create an Application/Product from OSGi Framework Run Configuration? |
|---|
| How to create an Application/Product from OSGi Framework Run Configuration? [message #1060550] |
Sun, 26 May 2013 11:59 |
Erwin Hogeweg Messages: 14 Registered: July 2009 |
Junior Member |
|
|
Hi,
How do I convert/export a 'pure' OSGi Framework Run Configuration into something that can easily be distributed?
I can copy the Configuration Area and add a script to start the entire thing, but it seems to me there is a better way to do that.
None of the tutorials I found on creating Applications and Products seem to take the OSGi Framework as a starting point.
As always, your help is highly appreciated.
Kind Regards,
Erwin
|
|
| | Forum: Standard Widget Toolkit (SWT) |
|---|
| Topic: How to keep Popup-menu open after selection event? |
|---|
| | Topic: Merging cells in a Word table through OleAutomation |
|---|
| Merging cells in a Word table through OleAutomation [message #1060372] |
Fri, 24 May 2013 06:35 |
Binko Binev Messages: 20 Registered: June 2012 |
Junior Member |
|
|
Hi all,
I have the following problem:
I use OleAutomation for generating reports. For this purpose some cells in tables are merged together. The report is produced as it should look.
But when I merge cells, the WinWord.exe process remains after the client site is closed. If I comment the merge line , the WinWord.exe process is closed as it should.
I have disposed all OleAutomations and Variants in my java code. But as it seems there is some internal stuff in the dll that does not remove the pointers created internally in the dll.
Here is the method I use to merge cells - it is a little bit bloated, as I have tried out different solution attempts:
/**
* Merges the range from cell1 in upper left corner to cell2 in lower right corner
* @param cell1Var - Variant of cell1
* @param cell2Var - Variant of cell2
* @return
* @throws Exception
*/
public static Variant mergeCells(Variant cell1Var, Variant cell2Var) throws Exception {
Variant mergeCellsVar = null;
Variant cell1RangeVar = OleWordTableCell.getRange(cell1Var);
if (cell1RangeVar == null){
return null;
}
int cell1RangeStart = OleWordRange.getStart(cell1RangeVar);
Variant cell2RangeVar = OleWordTableCell.getRange(cell2Var);
int cell2RangeEnd = OleWordRange.getEnd(cell2RangeVar);
OleAutomation cell1Auto = cell1Var.getAutomation();
Variant documentVar = cell1Auto.getProperty(1002/*Parent*/);
Variant cellsToMergeRangeVar = OleWordDocument.setRange(documentVar,cell1RangeStart,cell2RangeEnd);
OleAutomation cellsToMergeRangeAuto = cellsToMergeRangeVar.getAutomation();
Variant selectionVar = OleWordRange.select(cellsToMergeRangeVar);
Variant selectionCellsVar = OleWordSelection.getCells(selectionVar);
OleAutomation cellsToMergeAuto = selectionCellsVar.getAutomation();
int cellsToMergeCount = cellsToMergeAuto.getProperty(2/*Count*/).getInt();
if (cellsToMergeCount > 1){
try{
[color=blue][/color]mergeCellsVar = cellsToMergeAuto.invoke(204/*Merge*/);
}
catch(Exception e){
System.out.println();
throw e;
}
finally{
OleUtils.disposeVariant(selectionCellsVar);
OleUtils.disposeVariant(selectionVar);
OleUtils.disposeAutomation(cellsToMergeAuto);
OleUtils.disposeAutomation(cellsToMergeRangeAuto);
OleUtils.disposeVariant(cellsToMergeRangeVar);
OleUtils.disposeVariant(mergeCellsVar);
OleUtils.disposeVariant(cell1Var);
OleUtils.disposeVariant(cell2Var);
OleUtils.disposeAutomation(cell1Auto);
OleUtils.disposeVariant(documentVar);
OleUtils.disposeVariant(cell1RangeVar);
OleUtils.disposeVariant(cell2RangeVar);
}
}
// else if (cellsToMergeCount == 1){
// // get item
// Variant cellVar = cellsToMergeAuto.invoke(0, new Variant[]{new Variant(1)});
// OleAutomation cellAuto = cellVar.getAutomation();
// int rowIndex = cellAuto.getProperty(4).getInt();
// int colIndex = cellAuto.getProperty(5).getInt();
// cellAuto.setProperty(110/*FitText*/, new Variant[]{new Variant(true)});
//
// System.out.println("row: " + rowIndex + ",col: " + colIndex);
// return null;
// }
// else{
// return null;
// }
return mergeCellsVar;
}
The problem code line is in blue. If it is commented out, the process closes, but cells are not merged.
If it is left, the cells are merged, but the process is not closed.
I want that both the cells are merged and the process is closed.
[Updated on: Fri, 24 May 2013 08:48] Report message to a moderator
|
|
| | Forum: GEF |
|---|
| Topic: GEF with SWT as view |
|---|
| GEF with SWT as view [message #1060535] |
Sun, 26 May 2013 08:16 |
illi g Messages: 6 Registered: September 2012 |
Junior Member |
|
|
|
Is there any possibility to use my custom components coded on top of swt/jface components(table etc.)/composites(tabbed pane, Scroll-pane etc) in GraphicalEditorWithFlyoutPalette instead of figures.
|
|
| | Topic: Layout for multiple IFigure children of a PolylineConnection? |
|---|
| Layout for multiple IFigure children of a PolylineConnection? [message #1059821] |
Tue, 21 May 2013 14:06 |
|
Is there a way to specify a layout for children of a PolylineConnection?
I want to add several Labels to a PolylineConnection at ConnectionLocator.MIDDLE without the use of a container figure for the labels.
Both PolylineConnection and Label have EditParts, and the label's model objects are children of the polyline connection's model objects.
Ideally I want to add all label children of a polyline to ConnectionLocator.MIDDLE in a ToolbarLayout...
________
| NODE |
--------
|
|
|
Label 1
Label 2
Label 3
|
|
|
|
|
________
| NODE |
--------
|
|
| | Forum: Java Development Tools (JDT) |
|---|
| Topic: Please Help Asap!!! |
|---|
| Please Help Asap!!! [message #1060513] |
Sat, 25 May 2013 15:18 |
Anthony Anderson Messages: 1 Registered: May 2013 |
Junior Member |
|
|
When I try to open Eclipse I get a error that says
Failed To Load The Jni shared library "C:\Program Files
\Java\ jdk1.7.0_21\bin\server\jvm.dll".
Also I'm learning to make android apps if this helps.
|
|
| | Topic: Configuring mercurial SCM to eclipse Helios |
|---|
Configuring mercurial SCM to eclipse Helios [message #1060098] |
Thu, 23 May 2013 02:35 |
Umesh Annegirikar Messages: 1 Registered: May 2013 |
Junior Member |
|
|
Hello Team
I am using Eclipse Helios 3.2 for my webapps devlopment,currently i am trying to configure the Mercurial SCM in Eclipse Helios it is configured successfully but it shows the error HG root not known for the current project when i want to synchronize the current project with remote repository please let me know why this error comes?
is there any issue with configuration of Mercurial?
Please guide me
Thanks in Advance
Umesh Annegirikar
|
|
|
Pages (3): [ 2 ]
Current Time: Tue May 28 04:15:46 EDT 2013
Powered by FUDForum. Page generated in 0.05371 seconds
|