Révision 1084
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/functions/LexicalTable.java (revision 1084) | ||
---|---|---|
565 | 565 |
@Override |
566 | 566 |
public String getSimpleName() { |
567 | 567 |
if (!hasBeenComputedOnce) { |
568 |
return this.getLazyName(); |
|
568 |
if (this.getLazyName() != null) { |
|
569 |
return this.getLazyName(); |
|
570 |
} |
|
571 |
else { |
|
572 |
return this.getEmptyName(); |
|
573 |
} |
|
569 | 574 |
} |
570 | 575 |
else { |
571 | 576 |
StringBuilder strb = new StringBuilder(); |
572 | 577 |
if (property != null) { |
573 |
strb.append(property.getName()+" ");
|
|
578 |
strb.append(property.getName() + " ");
|
|
574 | 579 |
} |
575 | 580 |
if (statsData != null) { |
576 | 581 |
try { |
... | ... | |
589 | 594 |
} |
590 | 595 |
} |
591 | 596 |
|
597 |
/** |
|
598 |
* Gets the maximum number of lines filter. |
|
599 |
* @return the maximum number of lines filter |
|
600 |
*/ |
|
592 | 601 |
public int getVMaxFilter() { |
593 | 602 |
return vMaxFilter; |
594 | 603 |
} |
595 | 604 |
|
596 | 605 |
|
597 | 606 |
/** |
598 |
* Sets the maximum number of lines.
|
|
599 |
* @param vMax |
|
607 |
* Sets the maximum number of lines filter
|
|
608 |
* @param vMax the maximum number of lines filter
|
|
600 | 609 |
*/ |
601 | 610 |
public void setVMaxFilter(int vMax) { |
602 | 611 |
this.vMaxFilter = vMax; |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 1084) | ||
---|---|---|
738 | 738 |
// FIXME: result should never be null? |
739 | 739 |
if (this.getResult() != null) { |
740 | 740 |
|
741 |
// FIXME: debug test to not draw while updating the widgets |
|
742 |
this.getContainer().setRedraw(false); |
|
743 |
|
|
744 |
|
|
741 | 745 |
this.setPartName(this.getResult().getName()); |
742 | 746 |
this.firePropertyChange(TXMEditor.PROP_DIRTY); |
743 | 747 |
|
... | ... | |
783 | 787 |
// } |
784 | 788 |
// } |
785 | 789 |
|
790 |
|
|
791 |
// FIXME: debug test to not draw while updating the widgets |
|
792 |
this.getContainer().setRedraw(true); |
|
786 | 793 |
|
794 |
|
|
787 | 795 |
} |
788 | 796 |
notifyExtensions("notifyEndOfRefresh"); //$NON-NLS-1$ |
789 | 797 |
} |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMResultEditorInput.java (revision 1084) | ||
---|---|---|
64 | 64 |
} |
65 | 65 |
catch(Exception e) { |
66 | 66 |
} |
67 |
return ""; |
|
67 |
return ""; //$NON-NLS-1$
|
|
68 | 68 |
} |
69 | 69 |
|
70 | 70 |
@Override |
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/adapters/SpecificitiesAdapterFactory.java (revision 1084) | ||
---|---|---|
5 | 5 |
import org.eclipse.ui.model.IWorkbenchAdapter; |
6 | 6 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
7 | 7 |
import org.osgi.framework.FrameworkUtil; |
8 |
import org.txm.lexicaltable.core.functions.LexicalTable; |
|
8 | 9 |
import org.txm.rcp.adapters.TXMResultAdapter; |
9 | 10 |
import org.txm.rcp.adapters.TXMResultAdapterFactory; |
10 | 11 |
import org.txm.specificities.core.functions.Specificities; |
... | ... | |
30 | 31 |
|
31 | 32 |
@Override |
32 | 33 |
public Object getAdapter(Object adaptableObject, Class adapterType) { |
33 |
if(adapterType == IWorkbenchAdapter.class) {
|
|
34 |
if (this.canAdapt(adapterType)) {
|
|
34 | 35 |
// Specificities |
35 | 36 |
if(adaptableObject instanceof Specificities) { |
36 | 37 |
return new TXMResultAdapter() { |
Formats disponibles : Unified diff