对于org.eclipse.jface.dialogs.IDialogLabelKeys的实例源码感兴趣的读者,本文将提供您所需要的所有信息,我们将详细讲解org.eclipse.jgit.api.e
对于org.eclipse.jface.dialogs.IDialogLabelKeys的实例源码感兴趣的读者,本文将提供您所需要的所有信息,我们将详细讲解org.eclipse.jgit.api.errors,并且为您提供关于org.eclipse.jface.dialogs.ControlEnableState的实例源码、org.eclipse.jface.dialogs.DialogMessageArea的实例源码、org.eclipse.jface.dialogs.DialogPage的实例源码、org.eclipse.jface.dialogs.DialogSettings的实例源码的宝贵知识。
本文目录一览:- org.eclipse.jface.dialogs.IDialogLabelKeys的实例源码(org.eclipse.jgit.api.errors)
- org.eclipse.jface.dialogs.ControlEnableState的实例源码
- org.eclipse.jface.dialogs.DialogMessageArea的实例源码
- org.eclipse.jface.dialogs.DialogPage的实例源码
- org.eclipse.jface.dialogs.DialogSettings的实例源码
org.eclipse.jface.dialogs.IDialogLabelKeys的实例源码(org.eclipse.jgit.api.errors)
protected void createHelpWidget(final Composite parent,final Control control,String helpId) { final ImageHyperlink helpWidget = toolkit.createImageHyperlink(parent,SWT.CENTER); Image defaultimage = PlatformUI.getWorkbench().getSharedImages().getimage(ISharedImages.IMG_LCL_LINKTO_HELP); helpWidget.setimage(defaultimage); GridDataFactory.fillDefaults().align(SWT.FILL,SWT.TOP).applyTo(helpWidget); helpWidget.setToolTipText(JFaceResources.getString(IDialogLabelKeys.HELP_LABEL_KEY)); helpWidget.addMouseListener(new MouseAdapter() { public void mouseDown(MouseEvent e) { control.setFocus(); PlatformUI.getWorkbench().getHelpSystem().displayDynamicHelp(); } }); GridDataFactory.fillDefaults().applyTo(helpWidget); helpWidget.setEnabled(true); setHelpContext(control,helpId); }
/** * * {@inheritDoc} * * @see org.eclipse.jface.dialogs.Dialog#createButtonsForbuttonbar(org.eclipse.swt.widgets.Composite) */ @Override protected void createButtonsForbuttonbar(Composite parent) { createButton(parent,IDialogConstants.OK_ID,JFaceResources.getString(IDialogLabelKeys.OK_LABEL_KEY),true); createButton(parent,IDialogConstants.CANCEL_ID,JFaceResources.getString(IDialogLabelKeys.CANCEL_LABEL_KEY),false); }
/** * * {@inheritDoc} * * @see org.eclipse.jface.dialogs.Dialog#createButtonsForbuttonbar(org.eclipse.swt.widgets.Composite) */ @Override protected void createButtonsForbuttonbar(Composite parent) { createButton(parent,false); }
/** * Create contents of the button bar. * * @param parent * parent */ @Override protected void createButtonsForbuttonbar(Composite parent) { createButton(parent,false); }
org.eclipse.jface.dialogs.ControlEnableState的实例源码
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState = null; } } else { if (fBlockEnableState == null) { fBlockEnableState = ControlEnableState.disable(fConfigurationBlockControl); } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState = null; } } else { if (fBlockEnableState == null) { fBlockEnableState = ControlEnableState.disable(fConfigurationBlockControl); } } }
/** * {@inheritDoc} */ @Override protected void enabled(boolean isEnabled) { if (isEnabled) { if (fControlEnableState == null) return; fControlEnableState.restore(); fControlEnableState= null; } else { if (fControlEnableState != null) return; fControlEnableState= ControlEnableState.disable(fCleanUpOptionsComposite); } }
/** * {@inheritDoc} */ @Override protected void enabled(boolean isEnabled) { if (isEnabled) { if (fControlEnableState == null) return; fControlEnableState.restore(); fControlEnableState= null; } else { if (fControlEnableState != null) return; fControlEnableState= ControlEnableState.disable(fCleanUpOptionsComposite); } }
protected void updateCombo( Combo curr ) { ControlData data = (ControlData) curr.getData( ); String currValue = getValue( data.getKey( ) ); curr.select( data.getSelection( currValue ) ); if ( fProject != null ) { if ( ignoreKeys != null && Arrays.asList( ignoreKeys ).contains( data.getKey( ) ) ) { ControlEnableState.disable( curr ); Control label = (Control) fLabels.get( curr ); if ( label != null ) ControlEnableState.disable( label ); } } }
protected void updateCheckBox( Button curr ) { ControlData data = (ControlData) curr.getData( ); String currValue = getValue( data.getKey( ) ); curr.setSelection( data.getSelection( currValue ) == 0 ); if ( fProject != null ) { if ( ignoreKeys != null && Arrays.asList( ignoreKeys ).contains( data.getKey( ) ) ) { ControlEnableState.disable( curr ); } } }
protected void updateradioComposite( RadioComposite curr ) { ControlData data = (ControlData) curr.getData( ); String currValue = getValue( data.getKey( ) ); curr.setSelection( data.getSelection( currValue ) ); if ( fProject != null ) { if ( ignoreKeys != null && Arrays.asList( ignoreKeys ).contains( data.getKey( ) ) ) { ControlEnableState.disable( curr ); } } }
protected void updateText( Text curr ) { Key key = (Key) curr.getData( ); String currValue = getValue( key ); if ( currValue != null ) { curr.setText( currValue ); } if ( fProject != null ) { if ( ignoreKeys != null && Arrays.asList( ignoreKeys ).contains( key ) ) { ControlEnableState.disable( curr ); Control label = (Control) fLabels.get( curr ); if ( label != null ) ControlEnableState.disable( label ); } } }
protected void enablePreferenceContent( boolean enable ) { if ( enable ) { if ( fBlockEnableState != null ) { fBlockEnableState.restore( ); fBlockEnableState = null; } } else { if ( fBlockEnableState == null ) { fBlockEnableState = ControlEnableState.disable( fConfigurationBlockControl ); } } }
/** copied from PropertyAndPreferencePage */ protected void enablePreferenceContent(boolean enable) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(configurationBlockControl); } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState = null; } } else { if (fBlockEnableState == null) { fBlockEnableState = ControlEnableState.disable(fConfigurationBlockControl); } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
public void enablePreferenceContent(boolean enable) { if (controlsComposite != null && !controlsComposite.isdisposed()) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(controlsComposite); } } } }
@Override protected void reconcileControls() { if (saveActionsButton.getSelection()) { if (saveActionsContainerEnableState != null) { saveActionsContainerEnableState.restore(); saveActionsContainerEnableState = null; } } else { if (saveActionsContainerEnableState == null) { saveActionsContainerEnableState = ControlEnableState.disable(saveActionsContainer); } } }
protected void enableTslintContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState = null; } } else { if (fBlockEnableState == null) { fBlockEnableState = ControlEnableState.disable(controlsComposite); } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (blockEnableState != null) { blockEnableState.restore(); blockEnableState = null; } } else { if (blockEnableState == null) { blockEnableState = ControlEnableState.disable(configurationBlockControl); } } }
private void handleSyntaxSeveritySelection(boolean selection) { if (selection) { if (fSyntaxState != null) { fSyntaxState.restore(); fSyntaxState = null; } } else { if (fSyntaxState == null) fSyntaxState = ControlEnableState .disable(fSyntaxValidationGroup); } }
/** * Restores the enabled/disabled state of the wizard dialog's buttons and * the tree of controls for the currently showing page. * * @param state * a map containing the saved state as returned by * <code>saveUIState</code> * @see #saveUIState */ private void restoreUIState(Map state) { restoreEnableState(backButton,state,"back"); //$NON-NLS-1$ restoreEnableState(nextButton,"next"); //$NON-NLS-1$ restoreEnableState(finishButton,"finish"); //$NON-NLS-1$ restoreEnableState(cancelButton,"cancel"); //$NON-NLS-1$ restoreEnableState(helpButton,"help"); //$NON-NLS-1$ Object pageValue = state.get("page"); //$NON-NLS-1$ if (pageValue != null) { ((ControlEnableState) pageValue).restore(); } }
/** * Captures and returns the enabled/disabled state of the wizard dialog's * buttons and the tree of controls for the currently showing page. All * these controls are disabled in the process,with the possible exception * of the Cancel button. * * @param keepCancelEnabled * <code>true</code> if the Cancel button should remain * enabled,and <code>false</code> if it should be disabled * @return a map containing the saved state suitable for restoring later * with <code>restoreUIState</code> * @see #restoreUIState */ private Map saveUIState(boolean keepCancelEnabled) { Map savedState = new HashMap(10); saveEnableStateAndSet(backButton,savedState,"back",false); //$NON-NLS-1$ saveEnableStateAndSet(nextButton,"next",false); //$NON-NLS-1$ saveEnableStateAndSet(finishButton,"finish",false); //$NON-NLS-1$ saveEnableStateAndSet(cancelButton,"cancel",keepCancelEnabled); //$NON-NLS-1$ saveEnableStateAndSet(helpButton,"help",false); //$NON-NLS-1$ if (currentPage != null) { savedState .put( "page",ControlEnableState.disable(currentPage.getControl())); //$NON-NLS-1$ } return savedState; }
protected void enableConfigControls(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fJavadocComposite); } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fConfigurationBlockControl); } } }
public void enablePreferenceContent(boolean enable) { if (fControlsComposite != null && !fControlsComposite.isdisposed()) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fControlsComposite); } } } }
private void updateEnableState(boolean isCustom,final ListDialogField<IJavaProject> settingsField,Button configureCustom,BulletListBlock bulletListBlock) { settingsField.getListControl(null).setEnabled(!isCustom); if (isCustom) { fEnableState= ControlEnableState.disable(settingsField.getButtonBox(null)); } else if (fEnableState != null) { fEnableState.restore(); fEnableState= null; } bulletListBlock.setEnabled(isCustom); configureCustom.setEnabled(isCustom); }
/** * Restores the enabled/disabled state of the wizard dialog's buttons and * the tree of controls for the currently showing page. * * @param state * a map containing the saved state as returned by * <code>saveUIState</code> * @see #saveUIState */ private void restoreUIState(Map state) { restoreEnableState(backButton,"help"); //$NON-NLS-1$ Object pageValue = state.get("page"); //$NON-NLS-1$ if (pageValue != null) { ((ControlEnableState) pageValue).restore(); } }
/** * Captures and returns the enabled/disabled state of the wizard dialog's * buttons and the tree of controls for the currently showing page. All * these controls are disabled in the process,ControlEnableState.disable(currentPage.getControl())); //$NON-NLS-1$ } return savedState; }
/** * Restores the enabled/disabled state of the wizard dialog's buttons and * the tree of controls for the currently showing page. * * @param state * a map containing the saved state as returned by * <code>saveUIState</code> * @see #saveUIState */ private void restoreUIState(Map state) { restoreEnableState(backButton,"help"); //$NON-NLS-1$ Object pageValue = state.get("page"); //$NON-NLS-1$ if (pageValue != null) { ((ControlEnableState) pageValue).restore(); } }
/** * Captures and returns the enabled/disabled state of the wizard dialog's * buttons and the tree of controls for the currently showing page. All * these controls are disabled in the process,with the possible exception * of the Cancel button. * * @param keepCancelEnabled * <code>true</code> if the Cancel button should remain enabled,* and <code>false</code> if it should be disabled * @return a map containing the saved state suitable for restoring later * with <code>restoreUIState</code> * @see #restoreUIState */ private Map saveUIState(boolean keepCancelEnabled) { Map savedState = new HashMap(10); saveEnableStateAndSet(backButton,false); //$NON-NLS-1$ if (currentPage != null) { savedState .put("page",ControlEnableState.disable(currentPage.getControl())); //$NON-NLS-1$ } return savedState; }
/** * Controls the enablement of the common content region * of a property or preference page * * @param enable the enabled state of the common content * area */ protected void enablePreferenceContent(boolean enable) { if(enable) { if(fEnablements != null) { fEnablements.restore(); fEnablements = null; } } else { if(fEnablements == null) fEnablements = ControlEnableState.disable(fCommon); } }
protected void enableConfigControls(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fJavadocComposite); } } }
protected void enablePreferenceContent(boolean enable) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fConfigurationBlockControl); } } }
public void enablePreferenceContent(boolean enable) { if (fControlsComposite != null && !fControlsComposite.isdisposed()) { if (enable) { if (fBlockEnableState != null) { fBlockEnableState.restore(); fBlockEnableState= null; } } else { if (fBlockEnableState == null) { fBlockEnableState= ControlEnableState.disable(fControlsComposite); } } } }
private void updateEnableState(boolean isCustom,BulletListBlock bulletListBlock) { settingsField.getListControl(null).setEnabled(!isCustom); if (isCustom) { fEnableState= ControlEnableState.disable(settingsField.getButtonBox(null)); } else if (fEnableState != null) { fEnableState.restore(); fEnableState= null; } bulletListBlock.setEnabled(isCustom); configureCustom.setEnabled(isCustom); }
/** * Restores the enabled/disabled state of the wizard dialog's buttons and * the tree of controls for the currently showing page. * * @param state * a map containing the saved state as returned by * <code>saveUIState</code> * @see #saveUIState */ private void restoreUIState(Map state) { restoreEnableState(backButton,"help"); //$NON-NLS-1$ Object pageValue = state.get("page"); //$NON-NLS-1$ if (pageValue != null) { ((ControlEnableState) pageValue).restore(); } }
/** * Captures and returns the enabled/disabled state of the wizard dialog's * buttons and the tree of controls for the currently showing page. All * these controls are disabled in the process,ControlEnableState.disable(currentPage.getControl())); //$NON-NLS-1$ } return savedState; }
org.eclipse.jface.dialogs.DialogMessageArea的实例源码
/** * Create TitleArea * * @param parent * @return */ public Composite createTitleArea( Composite parent ) { Composite messageComposite = new Composite( parent,SWT.NONE ); GridData data = new GridData( GridData.FILL_BOTH ); messageComposite.setLayoutData( data ); Formlayout messageLayout = new Formlayout( ); messageComposite.setLayout( messageLayout ); messageArea = new DialogMessageArea( ); messageArea.createContents( messageComposite ); titleImage = new Label( messageComposite,SWT.LEFT ); FormData imageData = new FormData( ); imageData.right = new FormAttachment( 100 ); imageData.top = new FormAttachment( 0 ); imageData.bottom = new FormAttachment( 100 ); titleImage.setLayoutData( imageData ); FormData messageData = new FormData( ); messageData.left = new FormAttachment( 0,0 ); messageData.right = new FormAttachment( titleImage,100 ); messageData.bottom = new FormAttachment( titleImage,SWT.BottOM ); messageData.top = new FormAttachment( 0,0 ); messageArea.setTitleLayoutData( messageData ); messageArea.setMessageLayoutData( messageData ); return messageComposite; }
org.eclipse.jface.dialogs.DialogPage的实例源码
/** copied from PropertyAndPreferencePage */ private static void applyToStatusLine(DialogPage page,IStatus status) { String message = status.getMessage(); if (message != null && message.length() == 0) { message = null; } switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.NONE); page.setErrorMessage(null); break; case IStatus.WARNING: page.setMessage(message,IMessageProvider.WARNING); page.setErrorMessage(null); break; case IStatus.INFO: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
private void update () { final String filterType = this.filterTypeEntry.getText (); final String filterData = this.filterEntry.getText (); boolean warning = false; if ( "".equals ( filterType ) ) { setPageComplete ( false ); setMessage ( "Select a filter type",DialogPage.ERROR ); return; } if ( "".equals ( filterData ) ) { setMessage ( "Empty filter string might be a problem",DialogPage.WARNING ); warning = true; } if ( !warning ) { setMessage ( null ); } setPageComplete ( true ); }
/** * Applies the status to the status line of a dialog page. */ private static void applyToStatusLine(DialogPage page,IStatus status) { String message = Status.OK_STATUS.equals(status) ? null : status.getMessage(); switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: if (message != null && message.length() == 0) { message = null; } page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Convenience method to set a validation message on {@link DialogPage} from the result of calling * {@link #validateMavenSettings()}. * * @return {@code true} if no validation message was set; {@code false} otherwise * * @see #validateMavenSettings() */ public boolean setValidationMessage(DialogPage page) { IStatus status = validateMavenSettings(); if (status.isOK()) { return true; } if (IStatus.ERROR == status.getSeverity()) { page.setErrorMessage(status.getMessage()); } else if (IStatus.WARNING == status.getSeverity()) { page.setMessage(status.getMessage(),IMessageProvider.WARNING); } else if (IStatus.INFO == status.getSeverity()) { page.setMessage(status.getMessage(),IMessageProvider.informatION); } return false; }
/** * Add a status bar message. * * @param page * @param status */ protected static void applyToStatusLine(DialogPage page,IStatus status) { String errorMessage = null; String warningMessage = null; String statusMessage = status.getMessage(); if (statusMessage.length() > 0) { if (status.matches(IStatus.ERROR)) { errorMessage = statusMessage; } else if (!status.isOK()) { warningMessage = statusMessage; } } page.setErrorMessage(errorMessage); page.setMessage(warningMessage,status.getSeverity()); }
/** * Applies the status to the status line of a dialog page. * * @param page the dialog page * @param status the status */ public static void applyToStatusLine(DialogPage page,IStatus status) { String message = status.getMessage(); switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.NONE); page.setErrorMessage(null); break; case IStatus.WARNING: page.setMessage(message,IMessageProvider.WARNING); page.setErrorMessage(null); break; case IStatus.INFO: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message = null; } page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. */ public static void applyToStatusLine(DialogPage page,IStatus status) { String message= Status.OK_STATUS.equals(status) ? null : status.getMessage(); switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message= null; } page.setMessage(null); page.setErrorMessage(message); break; } }
/** * This should be the ONLY way to notify the wizard page whether the page is * complete or not,as well as display any error or warning messages. * * <p/> * * The wizard page will only be complete if it receives an OK status. * * <p/> * * It is up to the caller to correctly set the OK state of the page in case * it sets a non-OK status,and the non-OK status gets resolved. * * @param updateButtons true if force the wizard button states to be * refreshed. NOTE that if true,it is up to the caller to ensure that the * wizard page has been added to the wizard,and the wizard page is * visible. * @param status if status is OK,the wizard can complete. False otherwise. */ protected void update(boolean updateButtons,IStatus status) { if (status == null) { status = Status.OK_STATUS; } if (status.isOK()) { setErrorMessage(null); } else if (status.getSeverity() == IStatus.ERROR) { setErrorMessage(status.getMessage() != null ? status.getMessage() : Messages.PartsWizardPage_ERROR_UNKNowN); } else if (status.getSeverity() == IStatus.INFO) { setMessage(status.getMessage(),DialogPage.informatION); } else if (status.getSeverity() == IStatus.WARNING) { setMessage(status.getMessage(),DialogPage.WARNING); } // Container or page may not be available when update request is received if (updateButtons && getWizard() != null && getWizard().getContainer() != null && getWizard().getContainer().getCurrentPage() != null) { getWizard().getContainer().updateButtons(); } }
private static void applyToStatusLine(DialogPage page,IStatus status) { String message = status.getMessage(); if (message != null && message.length() == 0) { message = null; } switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
/** * This should be the ONLY way to notify the wizard page whether the page is * complete or not,DialogPage.WARNING); } // Container or page may not be available when update request is received if (updateButtons && getWizard() != null && getWizard().getContainer() != null && getWizard().getContainer().getCurrentPage() != null) { getWizard().getContainer().updateButtons(); } }
/** * Add an extra check to validate if the directory inside the project exists or not. We don't want to create a new * directory for the user... * */ @Override public boolean validatePage() { boolean valid = super.validatePage(); if (valid) { // We need to check that the selected directory does exist,otherwise we need to set an error... IResource r = ResourcesPlugin.getWorkspace().getRoot().findMember(getContainerFullPath()); if (r == null || !r.exists() || (r.getType() & IResource.FILE) != 0) { setMessage("The directory specified does not exist or is not a valid folder",DialogPage.ERROR); valid = false; } } return valid; }
/** * copy from StatusUtil * Applies the status to the status line of a dialog page. */ public static void applyToStatusLine(DialogPage page,IStatus status) { String message = status.getMessage(); switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message = null; } page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. * @param page the dialog page * @param status the status to apply */ public static void applyToStatusLine(DialogPage page,IStatus status) { String message= status.getMessage(); if (message != null && message.length() == 0) { message= null; } switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. * @param page the dialog page * @param status the status to apply */ public static void applyToStatusLine(DialogPage page,IMessageProvider.informatION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. */ public static void applyToStatusLine(DialogPage page,IStatus status) { String message= status.getMessage(); switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.WARNING); page.setErrorMessage(null); break; case IStatus.INFO: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message= null; } page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. * @param page the dialog page * @param status the status to apply */ public static void applyToStatusLine(DialogPage page,IMessageProvider.informatION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. * * @param page the dialog page * @param status the status */ public void applyToStatusLine(DialogPage page,IMessageProvider.informatION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message = null; } page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. * @param page the dialog page * @param status the status to apply */ public static void applyToStatusLine(DialogPage page,IMessageProvider.informatION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Applies the status to the status line of a dialog page. * @param page the dialog page * @param status the status to apply */ public static void applyToStatusLine(DialogPage page,IMessageProvider.informatION); page.setErrorMessage(null); break; default: page.setMessage(null); page.setErrorMessage(message); break; } }
/** * Sets the error message for the active wizard page. * * Note that this method has no effect if the current page doesn't support error messages. */ private void setErrorMessage(String message) { IWizardContainer container = getContainer(); if (container != null) { IWizardPage currentPage = container.getCurrentPage(); if (currentPage instanceof DialogPage) { ((DialogPage) currentPage).setErrorMessage(message); } } }
private void validateFile() { File file = new File(compilerPathFieldEditor.getStringValue()); if (file.exists() && file.isFile() && file.canExecute() && (file.getName().contains("solc") || file.getName().contains("solcjs"))) { if (file.getName().contains("solcjs")) { setMessage("Use of 'solcjs' is discuraged!",DialogPage.WARNING); } } else { setValid(false); setErrorMessage("Path must point to 'solc' or 'solcjs' executable"); } }
private void showProblem(String errorMessage) { for (IWizardPage page : getPages()) { if (page instanceof DialogPage) { DialogPage dpage = (DialogPage) page; dpage.setErrorMessage(errorMessage); } } }
@Before public void setup() { page = new DialogPage() { @Override public void createControl(Composite parent) { throw new UnsupportedOperationException(); } }; target = new DialogPageMessageTarget(page); }
@Test public void clear() { target.setError("error_msg"); target.clear(); assertNull(page.getMessage()); assertEquals(DialogPage.NONE,page.getMessageType()); }
/** * Applies the status to the status line of a dialog page. */ public static void applyToStatusLine(DialogPage page,IStatus status) { String message = status.getMessage(); switch (status.getSeverity()) { case IStatus.OK: page.setMessage(message,IMessageProvider.informatION); page.setErrorMessage(null); break; default: if (message.length() == 0) { message = null; } page.setMessage(null); page.setErrorMessage(message); break; } }
public BaSEOrganizationComposite(Composite parent,int style,DialogPage dialogPage,SalesforceEndpoints salesforceEndpoints) { super(parent,style); this.dialogPage = dialogPage; this.salesforceEndpoints = salesforceEndpoints; initialize(); pack(); }
/** * Applies the status to the status line of a dialog page. * * @param page * the dialog page * @param status * the status to apply */ public static void applyToStatusLine( DialogPage page,IStatus status ) { if ( status == null ) { page.setMessage( null,IMessageProvider.NONE ); page.setErrorMessage( null ); return; } String message = status.getMessage( ); if ( message != null && message.length( ) == 0 ) { message = null; } switch ( status.getSeverity( ) ) { case IStatus.OK : page.setMessage( message,IMessageProvider.NONE ); page.setErrorMessage( null ); break; case IStatus.WARNING : page.setMessage( message,IMessageProvider.WARNING ); page.setErrorMessage( null ); break; case IStatus.INFO : page.setMessage( message,IMessageProvider.informatION ); page.setErrorMessage( null ); break; default : page.setMessage( null ); page.setErrorMessage( message ); break; } }
public static void applyStatusToPage(DialogPage page,IStatus status) { String message = StringUtil.emptyAsNull(status.getMessage()); if(status.getSeverity() == IStatus.ERROR) { page.setErrorMessage(message); page.setMessage(null); } else { page.setErrorMessage(null); page.setMessage(message,severityToMessageType(status)); } }
@Test public void setInfo() { target.setInfo("info_msg"); assertEquals("info_msg",page.getMessage()); assertEquals(DialogPage.informatION,page.getMessageType()); }
@Test public void setError() { target.setError("error_msg"); assertEquals("error_msg",page.getMessage()); assertEquals(DialogPage.ERROR,page.getMessageType()); }
public static SetMessageRunnable create(DialogPage page,String message,int level) { return new SetMessageRunnable(page,message,level); }
private SetMessageRunnable(DialogPage page,int level) { this.page = page; this.message = message; this.level = level; }
public DialogPageMessageTarget(DialogPage target) { this.target = target; }
@Override public void setInfo(String message) { target.setMessage(message,DialogPage.informatION); }
@Override public void setError(String message) { target.setMessage(message,DialogPage.ERROR); }
@Override public void init(IWorkbench workbench,IStructuredSelection selection) { this.workbench = workbench; final WizardNewFileCreationPage page = new WizardNewFileCreationPage("filenameSelection",selection) { @Override protected boolean validatePage() { if (!super.validatePage()) { return false; } final IPath path = this.getContainerFullPath(); final IResource member = ResourcesPlugin.getWorkspace().getRoot().findMember(path); if (member instanceof IProject) { setMessage("The architecture can't be created directly " + "in a project. Please select a folder.",DialogPage.ERROR); return false; } return true; } // We don't want "Advanced" section to be displayed. @Override protected void createAdvancedControls(Composite parent) { // Does nothing,DO NOT REMOVE. Overwrites link related stuff } @Override protected IStatus validateLinkedResource() { // Does nothing,DO NOT REMOVE. Overwrites link related stuff return Status.OK_STATUS; } @Override protected void createLinkTarget() { // Does nothing,DO NOT REMOVE. Overwrites link related stuff } }; page.setFileExtension(TurnusExtensions.ARCHITECTURE); page.setDescription("Select a parent folder and a name for the new architecture."); page.setAllowExistingResources(false); // Fill the page with a filename,if user selected one if (!selection.isEmpty()) { final Object firstSel = selection.getFirstElement(); if (firstSel instanceof IFile) { final IFile selectedFile = (IFile) firstSel; final String fileName = selectedFile.getName(); final String ext = selectedFile.getFileExtension(); if (ext == null || ext.isEmpty()) { page.setFileName(fileName); } else { int idx = fileName.indexOf(ext); if (idx > 0) { page.setFileName(fileName.substring(0,idx - 1)); } } } } addPage(page); }
/** * Reports an error to the user * * @param message */ private void reportError(String message) { this.setPageComplete(false); this.setMessage(message,DialogPage.ERROR); }
/** * Reports a warning to the user * * @param message */ private void reportWarning(String message) { this.setPageComplete(true); this.setMessage(message,DialogPage.WARNING); }
/** * Creates the encoding field editor. * * @param composite the parent composite * @param string list with all controls */ private void encodingControl(Composite composite,String text) { Label label = new Label(composite,SWT.NONE); label.setText(text); label.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); fEncodingEditorParent = new Composite(composite,SWT.NONE); GridLayout layout = new GridLayout(2,false); layout.marginWidth = 0; layout.marginHeight = 0; fEncodingEditorParent.setLayout(layout); GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL); gd.horizontalSpan = 3; gd.horizontalIndent += SwtUtil.getIndent(); fEncodingEditorParent.setLayoutData(gd); encEditor = new EncodingFieldEditor(SPELLING_USER_DICTIONARY_ENCODING,"",null,fEncodingEditorParent); //$NON-NLS-1$ PreferenceStore store = new PreferenceStore(); String defaultEncoding = ResourcesPlugin.getEncoding(); store.setDefault(SPELLING_USER_DICTIONARY_ENCODING,defaultEncoding); String encoding = store.getString(SPELLING_USER_DICTIONARY_ENCODING); if (encoding != null && encoding.length() > 0) store.setValue(SPELLING_USER_DICTIONARY_ENCODING,encoding); encEditor.setPreferenceStore(store); // Redirect status messages from the field editor to the status change listener DialogPage fakePage = new DialogPage() { public void createControl(Composite c) {} @Override public void setErrorMessage(String newMessage) { StatusInfo status = new StatusInfo(); if (newMessage != null) status.setError(newMessage); fEncodingFieldEditorStatus = status; fContext.statusChanged(StatusUtil .getMostSevere(new IStatus[] { fThresholdStatus,fFileStatus,fEncodingFieldEditorStatus })); } }; encEditor.setPage(fakePage); encEditor.load(); if (encoding == null || encoding.equals(defaultEncoding) || encoding.length() == 0) { encEditor.loadDefault(); } }
protected void setWizardinformation(String message) { wizardPage.setMessage(message,DialogPage.informatION); }
org.eclipse.jface.dialogs.DialogSettings的实例源码
public ImportWizard() { setwindowTitle(App.messages.getString("app.window.title")); setNeedsProgressMonitor(true); setDefaultPageImageDescriptor(ImageDescriptor.createFromFile(App.class,"images/i2b2Import2.png")); DialogSettings dialogSettings = new DialogSettings("userInfo"); try { // loads existing settings if any. dialogSettings.load(DIALOG_SETTING_FILE); } catch (IOException e) { System.out.println("INFO: Unable to locate user settings file. Default values will be used."); //e.printstacktrace(); } setDialogSettings(dialogSettings); }
public MasterSelectionDialog ( final Shell parentShell,final World world ) { super ( parentShell ); this.world = world; setHelpAvailable ( false ); this.dialogSettings = DialogSettings.getorCreateSection ( Activator.getDefault ().getDialogSettings (),"MasterSelectionDialog" ); this.lastSelection = loadLastSelection (); }
@Before public void setUp() { launchManager = mock( ILaunchManager.class ); when( launchManager.getLaunchModes() ).thenReturn( new ILaunchMode[ 0 ] ); DialogSettings dialogSettings = new DialogSettings( "section-name" ); launchModeSetting = new LaunchModeSetting( launchManager,dialogSettings ); }
public static void save(ColumnGroupSet columnGroups) { try { final IDialogSettings settings = new DialogSettings("column_group_list"); settings.put("database",columnGroups.getDatabase()); int index = 0; for (final ColumnGroup columnGroup : columnGroups) { final IDialogSettings columnGroupSection = new DialogSettings("column_group_" + index); index++; columnGroupSection.put("group_name",columnGroup.getGroupName()); int columnIndex = 0; for (final normalColumn normalColumn : columnGroup.getColumns()) { final IDialogSettings columnSection = new DialogSettings("column_" + columnIndex); columnIndex++; columnSection.put("physical_name",null2Blank(normalColumn.getPhysicalName())); columnSection.put("logical_name",null2Blank(normalColumn.getLogicalName())); columnSection.put("type",null2Blank(normalColumn.getType())); columnSection.put("length",null2Blank(normalColumn.getTypeData().getLength())); columnSection.put("decimal",null2Blank(normalColumn.getTypeData().getDecimal())); columnSection.put("array",normalColumn.getTypeData().isArray()); columnSection.put("array_dimension",null2Blank(normalColumn.getTypeData().getArrayDimension())); columnSection.put("unsigned",normalColumn.getTypeData().isUnsigned()); columnSection.put("not_null",normalColumn.isNotNull()); columnSection.put("unique",normalColumn.isUniqueKey()); columnSection.put("default_value",null2Blank(normalColumn.getDefaultValue())); columnSection.put("constraint",null2Blank(normalColumn.getConstraint())); columnSection.put("description",null2Blank(normalColumn.getDescription())); columnGroupSection.addSection(columnSection); } settings.addSection(columnGroupSection); } settings.save(getPath()); } catch (final IOException e) { Activator.showExceptionDialog(e); } }
protected void doLoad(String s) { StringReader r = new StringReader(s); IDialogSettings settings = new DialogSettings(getPreferenceName()); try { settings.load(r); } catch (IOException e) { trace.error(e.getMessage(),e); } combo.removeAll(); int index = -1; String selection = settings.get(P_SELECTED_SET); String list[] = settings.getArray(P_SET_KEYS); for (int i=0; list != null && i<list.length; i++) { String key = list[i]; IDialogSettings section = settings.getSection(key); if (section != null) { PickListSet set = new PickListSet(section); setsByName.put(key,set); combo.add(key); if (CommonUtils.equals(selection,key)) { index = i; } } } combo.add(ITEM_NEW); if (index != -1) { combo.select(index); lastSelection = index; } }
@Override protected void doStore() { try { int index = combo.getSelectionIndex(); IDialogSettings settings = new DialogSettings(getPreferenceName()); settings.put(P_SET_KEYS,combo.getItems()); settings.put(P_SELECTED_SET,combo.getItem(index)); for(int i=0; i<combo.getItemCount(); i++) { String key = combo.getItem(i); if (key.equals(ITEM_NEW)) { continue; } PickListSet set = setsByName.get(key); if (i == index) { set = new PickListSet(key,Arrays.asList(pickListEditor.getSelectedListControl().getItems())); setsByName.put(key,set); } settings.addSection(set.getSettings()); } StringWriter w = new StringWriter(); settings.save(w); getPreferenceStore().putValue(getPreferenceName(),w.toString()); } catch(Exception e) { trace.error(e.getMessage(),e); } }
public static IDialogSettings buildSettings(String settingsName,List<PickListSet> list) { IDialogSettings settings = new DialogSettings(settingsName); List<String> keys = new ArrayList<String>(); for (PickListSet set : list) { settings.addSection(set.getSettings()); keys.add(set.getName()); } settings.put(P_SET_KEYS,keys.toArray(new String[0])); return settings; }
private void writeCriteria() { final IDialogSettings s = DialogSettings.getorCreateSection(Activator.getPlugin().getDialogSettings(),PAGE_NAME); final int historySize = Math.min(history.size(),HISTORY_SIZE); final IDialogSettings allCriteria = DialogSettings.getorCreateSection(s,STORE_SEARCH_CRITERIA); for (int i = 0; i < historySize; i++) { final IDialogSettings searchCriteria = allCriteria.addNewSection(STORE_SEARCH_CRITERIA + "[" + i + "]"); final Criteria criteria = history.get(i); searchCriteria.put(STORE_SEARCH_TERM,criteria.searchTerm); searchCriteria.put(STORE_MATCH_TYPES,criteria.matchType); } }
private void writeCriteria() { final IDialogSettings s = DialogSettings.getorCreateSection(Activator.getPlugin().getDialogSettings(),criteria.matchType); } }
@Override protected IDialogSettings getDialogBoundsSettings () { return DialogSettings.getorCreateSection ( Activator.getDefault ().getDialogSettings (),"EventDetailsDialog" ); }
@Override protected IDialogSettings getDialogBoundsSettings () { return DialogSettings.getorCreateSection ( this.dialogSettings,"bounds" ); }
public SetExternalNameWizard ( final IStructuredSelection selection ) { this.selection = selection; setDialogSettings ( DialogSettings.getorCreateSection ( Activator.getDefault ().getDialogSettings (),"setExternalNameWizard" ) ); }
@Override protected IDialogSettings getDialogBoundsSettings () { return DialogSettings.getorCreateSection ( Activator.getDefault ().getDialogSettings (),"componentOutputDialog" ); //$NON-NLS-1$ }
public static GroupSet load() { final GroupSet columnGroups = new GroupSet(); try { final IDialogSettings settings = new DialogSettings("column_group_list"); String database = settings.get("database"); if (database == null) { database = DBManagerFactory.getAllDBList().get(0); } columnGroups.setDatabase(database); final String path = getPath(); final File columnGroupListFile = new File(path); if (columnGroupListFile.exists()) { settings.load(path); final UniqueWordDictionary dictionary = new UniqueWordDictionary(); for (final IDialogSettings columnGroupSection : settings.getSections()) { final ColumnGroup columnGroup = new ColumnGroup(); columnGroup.setGroupName(columnGroupSection.get("group_name")); for (final IDialogSettings columnSection : columnGroupSection.getSections()) { final String physicalName = columnSection.get("physical_name"); final String logicalName = columnSection.get("logical_name"); final sqlType sqlType = sqlType.valueOfId(columnSection.get("type")); final String defaultValue = columnSection.get("default_value"); final String description = columnSection.get("description"); final String constraint = columnSection.get("constraint"); final boolean notNull = Boolean.valueOf(columnSection.get("not_null")).booleanValue(); final boolean unique = Boolean.valueOf(columnSection.get("unique")).booleanValue(); final Integer length = toInteger(columnSection.get("length")); final Integer decimal = toInteger(columnSection.get("decimal")); final boolean array = Boolean.valueOf(columnSection.get("array")).booleanValue(); final Integer arrayDimension = toInteger(columnSection.get("array_dimension")); final boolean unsigned = Boolean.valueOf(columnSection.get("unsigned")).booleanValue(); final boolean zerofill = Boolean.valueOf(columnSection.get("zerofill")).booleanValue(); final boolean binary = Boolean.valueOf(columnSection.get("binary")).booleanValue(); final String args = columnSection.get("args"); final boolean charSemantics = Boolean.valueOf(columnSection.get("char_semantics")).booleanValue(); final TypeData typeData = new TypeData(length,decimal,array,arrayDimension,unsigned,zerofill,binary,args,charSemantics); Word word = new Word(physicalName,logicalName,sqlType,typeData,description,database); word = dictionary.getUniqueWord(word,true); final normalColumn column = new normalColumn(word,notNull,false,unique,defaultValue,constraint,null,null); columnGroup.addColumn(column); } columnGroups.add(columnGroup); } } } catch (final IOException e) { ERDiagramActivator.showExceptionDialog(e); } return columnGroups; }
public static void save(final GroupSet columnGroups) { try { final IDialogSettings settings = new DialogSettings("column_group_list"); settings.put("database",columnGroups.getDatabase()); int index = 0; for (final ColumnGroup columnGroup : columnGroups) { final IDialogSettings columnGroupSection = new DialogSettings("column_group_" + index); index++; columnGroupSection.put("group_name",columnGroup.getGroupName()); int columnIndex = 0; for (final normalColumn normalColumn : columnGroup.getColumns()) { final IDialogSettings columnSection = new DialogSettings("column_" + columnIndex); columnIndex++; columnSection.put("physical_name",normalColumn.getTypeData().isUnsigned()); columnSection.put("zerofill",normalColumn.getTypeData().isZerofill()); columnSection.put("binary",normalColumn.getTypeData().isBinary()); columnSection.put("not_null",null2Blank(normalColumn.getDescription())); columnSection.put("char_semantics",normalColumn.getTypeData().isCharSemantics()); columnGroupSection.addSection(columnSection); } settings.addSection(columnGroupSection); } settings.save(getPath()); } catch (final IOException e) { ERDiagramActivator.showExceptionDialog(e); } }
public static void save(GroupSet columnGroups) { try { IDialogSettings settings = new DialogSettings("column_group_list"); settings.put("database",columnGroups.getDatabase()); int index = 0; for (ColumnGroup columnGroup : columnGroups) { IDialogSettings columnGroupSection = new DialogSettings( "column_group_" + index); index++; columnGroupSection .put("group_name",columnGroup.getGroupName()); int columnIndex = 0; for (normalColumn normalColumn : columnGroup.getColumns()) { IDialogSettings columnSection = new DialogSettings( "column_" + columnIndex); columnIndex++; columnSection.put("physical_name",null2Blank(normalColumn .getTypeData().getLength())); columnSection.put("decimal",null2Blank(normalColumn .getTypeData().getDecimal())); columnSection.put("array",normalColumn.getTypeData() .isArray()); columnSection.put("array_dimension",null2Blank(normalColumn.getTypeData() .getArrayDimension())); columnSection.put("unsigned",normalColumn.getTypeData() .isUnsigned()); columnSection.put("zerofill",normalColumn.getTypeData() .isZerofill()); columnSection.put("binary",normalColumn.getTypeData() .isBinary()); columnSection.put("not_null",normalColumn .getTypeData().isCharSemantics()); columnGroupSection.addSection(columnSection); } settings.addSection(columnGroupSection); } settings.save(getPath()); } catch (IOException e) { ERDiagramActivator.showExceptionDialog(e); } }
@Override protected IDialogSettings getDialogSettings() { IDialogSettings dialogSettings = LaunchExtrasPlugin.getInstance().getDialogSettings(); return DialogSettings.getorCreateSection( dialogSettings,"LaunchSelectionDialog" ); }
@Before public void setUp() { launchManager = mock( ILaunchManager.class ); dialogSettings = new DialogSettings( "section-name" ); launchModeSetting = new LaunchModeSetting( launchManager,dialogSettings ); }
public TestableLaunchSelectionDialog( Shell shell ) { super( shell ); dialogSettings = new DialogSettings( "TestableLaunchSelectionDialog" ); }
@Override protected IDialogSettings getDialogSettings() { final IDialogSettings result = new DialogSettings("NodeselectionDialog"); //$NON-NLS-1$ return result; }
public static ColumnGroupSet load() { final ColumnGroupSet columnGroups = new ColumnGroupSet(); try { final IDialogSettings settings = new DialogSettings("column_group_list"); String database = settings.get("database"); if (database == null) { database = DBManagerFactory.getAllDBList().get(0); } columnGroups.setDatabase(database); final String path = getPath(); final File columnGroupListFile = new File(path); if (columnGroupListFile.exists()) { settings.load(path); for (final IDialogSettings columnGroupSection : settings.getSections()) { final ColumnGroup columnGroup = new ColumnGroup(); columnGroup.setGroupName(columnGroupSection.get("group_name")); for (final IDialogSettings columnSection : columnGroupSection.getSections()) { final String physicalName = columnSection.get("physical_name"); final String logicalName = columnSection.get("logical_name"); final sqlType sqlType = sqlType.valueOfId(columnSection.get("type")); final String defaultValue = columnSection.get("default_value"); final String description = columnSection.get("description"); final String constraint = columnSection.get("constraint"); final boolean notNull = Boolean.valueOf(columnSection.get("not_null")).booleanValue(); final boolean unique = Boolean.valueOf(columnSection.get("unique")).booleanValue(); final Integer length = toInteger(columnSection.get("length")); final Integer decimal = toInteger(columnSection.get("decimal")); final boolean array = Boolean.valueOf(columnSection.get("array")).booleanValue(); final Integer arrayDimension = toInteger(columnSection.get("array_dimension")); final boolean unsigned = Boolean.valueOf(columnSection.get("unsigned")).booleanValue(); final String args = columnSection.get("args"); final boolean charSemantics = Boolean.valueOf(columnSection.get("char_semantics")).booleanValue(); final TypeData typeData = new TypeData(length,charSemantics); final Word word = new Word(physicalName,database); final normalColumn column = new normalColumn(word,null); columnGroup.addColumn(column); } columnGroups.add(columnGroup); } } } catch (final IOException e) { Activator.showExceptionDialog(e); } return columnGroups; }
public PlanExportWizardImpl() { setDialogSettings(new DialogSettings(ID)); loadSettings(); }
public static void save(GroupSet columnGroups) { try { IDialogSettings settings = new DialogSettings("column_group_list"); settings.put("database",normalColumn .getTypeData().isCharSemantics()); columnGroupSection.addSection(columnSection); } settings.addSection(columnGroupSection); } settings.save(getPath()); } catch (IOException e) { ERDiagramActivator.showExceptionDialog(e); } }
@Override protected IDialogSettings getDialogSettings() { final IDialogSettings master = super.getDialogSettings(); return DialogSettings.getorCreateSection(master,this.contextTypeId); }
@Override protected IDialogSettings getDialogSettings(){ return new DialogSettings("diagnoseselektor"); //$NON-NLS-1$ }
@Override protected IDialogSettings getDialogSettings(){ return new DialogSettings("loincselector"); //$NON-NLS-1$ }
@Override protected IDialogSettings getDialogSettings(){ return new DialogSettings("loincselector"); //$NON-NLS-1$ }
关于org.eclipse.jface.dialogs.IDialogLabelKeys的实例源码和org.eclipse.jgit.api.errors的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于org.eclipse.jface.dialogs.ControlEnableState的实例源码、org.eclipse.jface.dialogs.DialogMessageArea的实例源码、org.eclipse.jface.dialogs.DialogPage的实例源码、org.eclipse.jface.dialogs.DialogSettings的实例源码等相关内容,可以在本站寻找。
本文标签: