Examples of addFileSpec()


Examples of org.eclipse.core.runtime.content.IContentType.addFileSpec()

          if (dialog.open() == Window.OK) {
            String name = dialog.getName();
            String extension = dialog.getExtension();
            try {
              if (name.equals("*")) { //$NON-NLS-1$
                selectedContentType.addFileSpec(extension,
                    IContentType.FILE_EXTENSION_SPEC);
              } else {
                selectedContentType
                    .addFileSpec(
                        name
View Full Code Here

Examples of org.eclipse.core.runtime.content.IContentType.addFileSpec()

            try {
              if (name.equals("*")) { //$NON-NLS-1$
                selectedContentType.addFileSpec(extension,
                    IContentType.FILE_EXTENSION_SPEC);
              } else {
                selectedContentType
                    .addFileSpec(
                        name
                            + (extension.length() > 0 ? ('.' + extension)
                                : ""), //$NON-NLS-1$
                        IContentType.FILE_NAME_SPEC);
View Full Code Here

Examples of org.eclipse.core.runtime.content.IContentType.addFileSpec()

      isNew = false;
    }
   
    else{
      try {
        type.addFileSpec(editorSuffix, IContentType.FILE_EXTENSION_SPEC);
      } catch (CoreException e1) {
        // TODO Auto-generated catch block
        e1.printStackTrace();
      }
    }
View Full Code Here

Examples of org.eclipse.core.runtime.content.IContentType.addFileSpec()

    new Git(repo).commit().setAuthor("JUnit", "junit@jgit.org")
        .setMessage("Initial commit").call();

    IContentType textType = Platform.getContentTypeManager()
        .getContentType("org.eclipse.core.runtime.text");
    textType.addFileSpec(SAMPLE_FILE_EXTENSION,
        IContentType.FILE_EXTENSION_SPEC);
  }

  @After
  public void clearGitResources() throws Exception {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.