-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEIIDES-2299: Improve performance bottle necks of LDAP wizard
* LdapImportWizardManager * Sets a synchronise flag in Import Manager to reduce the number of notifyChanged calls that are passed to the page listeners. * setSynchronise(false) resets the flag and calls notifyChanged itself * notifyError method to pass error messages from tree content providers up to the pages. Errors are currently logged but only in the console. * *Page * Fixes theme issues with the backgrounds of components * Ldap[Columns|Table]Page * Reduces bottlenecks by settings a dirty flag in the modifyTextListeners and not calling notifyChanged (which calls setPageStatus) * Adds validate buttons for a single call to notifyChanged/setPageStatus * Refresh icon appears to be missing from eclipse TP so adds it to icons folder * LdapPageUtils * Make the wizard colours consistent across gtk themes since Group components appear to have a white background in some themes and not the colour of its parent composite
- Loading branch information
Showing
11 changed files
with
257 additions
and
59 deletions.
There are no files selected for viewing
Binary file added
BIN
+213 Bytes
plugins/org.teiid.designer.modelgenerator.ldap.ui/icons/full/ctool16/refresh.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...enerator.ldap.ui/src/org/teiid/designer/modelgenerator/ldap/ui/wizards/LdapPageUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source. | ||
* | ||
* See the LEGAL.txt file distributed with this work for information regarding copyright ownership and licensing. | ||
* | ||
* See the AUTHORS.txt file distributed with this work for a full listing of individual contributors. | ||
*/ | ||
package org.teiid.designer.modelgenerator.ldap.ui.wizards; | ||
|
||
import org.eclipse.swt.SWT; | ||
import org.eclipse.swt.widgets.Composite; | ||
import org.eclipse.swt.widgets.Control; | ||
|
||
/** | ||
* Random utility methods for use with LDAP Definition Wizard pages | ||
*/ | ||
public class LdapPageUtils { | ||
|
||
/** | ||
* Set the background colour of the control to the same as the base | ||
* | ||
* @param control | ||
* @param base | ||
*/ | ||
public static void setBackground(Control control, Composite base) { | ||
if (control == null || base == null) | ||
return; | ||
|
||
control.setBackground(base.getBackground()); | ||
} | ||
|
||
/** | ||
* Set the background colour of the control to grey | ||
* | ||
* @param control | ||
*/ | ||
public static void greyBackground(Control control) { | ||
if (control == null) | ||
return; | ||
|
||
control.setBackground(control.getDisplay().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW)); | ||
} | ||
|
||
/** | ||
* Set the foreground colour of the control to blue | ||
* | ||
* @param control | ||
*/ | ||
public static void blueForeground(Control control) { | ||
if (control == null) | ||
return; | ||
|
||
control.setForeground(control.getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.