Package org.eclipse.wst.sse.ui.preferences

Examples of org.eclipse.wst.sse.ui.preferences.ICompletionProposalCategoriesConfigurationReader


   * its own content assist page, <code>false</code> otherwise
   */
  public boolean isDisplayedOnOwnPage(String contentTypeID) {
    boolean displayOnOwnPage = ICompletionProposalCategoriesConfigurationReader.DEFAULT_DISPLAY_ON_OWN_PAGE;
   
    ICompletionProposalCategoriesConfigurationReader properties =
      CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(contentTypeID);
    if(properties != null) {
      displayOnOwnPage = properties.shouldDisplayOnOwnPage(this.fId);
    }
   
    return displayOnOwnPage;
  }
View Full Code Here


   * the default content assist page, <code>false</code> otherwise
   */
  public boolean isIncludedOnDefaultPage(String contentTypeID) {
    boolean includeOnDefaultPage = ICompletionProposalCategoriesConfigurationReader.DEFAULT_INCLUDE_ON_DEFAULTS_PAGE;
   
    ICompletionProposalCategoriesConfigurationReader properties =
      CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(contentTypeID);
    if(properties != null) {
      includeOnDefaultPage = properties.shouldDisplayOnDefaultPage(this.fId);
    }
   
    return includeOnDefaultPage;
  }
View Full Code Here

   * @return the sort rank of this category
   */
  public int getPageSortRank(String contentTypeID) {
    int sortOrder = ICompletionProposalCategoriesConfigurationReader.DEFAULT_SORT_ORDER;
   
    ICompletionProposalCategoriesConfigurationReader properties =
      CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(contentTypeID);
    if(properties != null) {
      sortOrder = properties.getPageSortOrder(this.fId);
    }
   
    return sortOrder;
  }
View Full Code Here

   * @return the sort rank of this category
   */
  public int getDefaultPageSortRank(String contentTypeID) {
    int sortOrder = ICompletionProposalCategoriesConfigurationReader.DEFAULT_SORT_ORDER;
   
    ICompletionProposalCategoriesConfigurationReader properties =
      CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(contentTypeID);
    if(properties != null) {
      sortOrder = properties.getDefaultPageSortOrder(this.fId);
    }
   
    return sortOrder;
  }
View Full Code Here

  private boolean informUserAboutEmptyDefaultCategory() {
    /*If warn about empty default category and there are associated properties for this
     * processors content type and those properties have an associated properties page then
     * display warning message to user.
     */
    ICompletionProposalCategoriesConfigurationReader properties = CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(this.fContentTypeID);
    if (OptionalMessageDialog.isDialogEnabled(PREF_WARN_ABOUT_EMPTY_ASSIST_CATEGORY) &&
        properties instanceof ICompletionProposalCategoriesConfigurationWriter  &&
        ((ICompletionProposalCategoriesConfigurationWriter)properties).hasAssociatedPropertiesPage()) {
     
      ICompletionProposalCategoriesConfigurationWriter propertiesExtension = (ICompletionProposalCategoriesConfigurationWriter)properties;
View Full Code Here

   * with the given content type, or <code>null</code> if one does not exist.
   */
  public ICompletionProposalCategoriesConfigurationWriter getWritableConfiguration(String contentTypeID) {
    this.ensureLoaded();
   
    ICompletionProposalCategoriesConfigurationReader reader = getReadableConfiguration(contentTypeID);
    ICompletionProposalCategoriesConfigurationWriter writer = null;
    if(reader instanceof ICompletionProposalCategoriesConfigurationWriter) {
      writer = (ICompletionProposalCategoriesConfigurationWriter)reader;
    }
   
View Full Code Here

          ContentAssistUtils.checkExtensionAttributeNotNull(contentTypeID, ATTR_CONTENT_TYPE_ID, element);
         
          String pageClass = element.getAttribute(ATTR_CLASS);
          ContentAssistUtils.checkExtensionAttributeNotNull(pageClass, ATTR_CLASS, element);
         
          ICompletionProposalCategoriesConfigurationReader props =
            (ICompletionProposalCategoriesConfigurationReader)element.createExecutableExtension(ATTR_CLASS);
       
          if(!this.fPropertiesByContentTypeID.containsKey(contentTypeID)){
            this.fPropertiesByContentTypeID.put(contentTypeID, props);
          } else {
View Full Code Here

  private boolean informUserAboutEmptyDefaultCategory() {
    /*If warn about empty default category and there are associated properties for this
     * processors content type and those properties have an associated properties page then
     * display warning message to user.
     */
    ICompletionProposalCategoriesConfigurationReader properties = CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(this.fContentTypeID);
    if (OptionalMessageDialog.isDialogEnabled(PREF_WARN_ABOUT_EMPTY_ASSIST_CATEGORY) &&
        properties instanceof ICompletionProposalCategoriesConfigurationWriter  &&
        ((ICompletionProposalCategoriesConfigurationWriter)properties).hasAssociatedPropertiesPage()) {
     
      ICompletionProposalCategoriesConfigurationWriter propertiesExtension = (ICompletionProposalCategoriesConfigurationWriter)properties;
View Full Code Here

   * its own content assist page, <code>false</code> otherwise
   */
  public boolean isDisplayedOnOwnPage(String contentTypeID) {
    boolean displayOnOwnPage = ICompletionProposalCategoriesConfigurationReader.DEFAULT_DISPLAY_ON_OWN_PAGE;
   
    ICompletionProposalCategoriesConfigurationReader properties =
      CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(contentTypeID);
    if(properties != null) {
      displayOnOwnPage = properties.shouldDisplayOnOwnPage(this.fId);
    }
   
    return displayOnOwnPage;
  }
View Full Code Here

   * the default content assist page, <code>false</code> otherwise
   */
  public boolean isIncludedOnDefaultPage(String contentTypeID) {
    boolean includeOnDefaultPage = ICompletionProposalCategoriesConfigurationReader.DEFAULT_INCLUDE_ON_DEFAULTS_PAGE;
   
    ICompletionProposalCategoriesConfigurationReader properties =
      CompletionProposoalCatigoriesConfigurationRegistry.getDefault().getReadableConfiguration(contentTypeID);
    if(properties != null) {
      includeOnDefaultPage = properties.shouldDisplayOnDefaultPage(this.fId);
    }
   
    return includeOnDefaultPage;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.preferences.ICompletionProposalCategoriesConfigurationReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.