Difference between revisions of "Tips"

From Lingoport Wiki
Jump to: navigation, search
(1- Prevent in-place OLE editors:)
(Check out a project)
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
  +
== Create a new Project ==
  +
Note: A set of short tutorial videos is located on the [[About Globalyzer | About Globalyzer ]] page. One of the short videos focuses on creating a new project.
  +
  +
You can create a project by pointing to a source code directory in disk, or importing files in the Workbench workspace, which is more used by software engineers ready to refactor code. Importing files in the workspace can be done from files on disk or files in a source code control system, like Git or SVN
  +
===Create a project by pointing to source code on disk===
  +
File => New => Project => General => Project
  +
  +
Uncheck '''Use Default Location''' and '''Browse''' to the location of your source code on disk.
  +
Name the project and click '''Finish'''. If this is the first project, there are no Globalyzer configurations created yet to associate to this project. click '''New'''
  +
To associate scanning logic to the new project click
  +
Scan => Manage Scan
  +
and follow the wizard.
  +
  +
===Check out a project ===
  +
File => New => Project
  +
and select the source code control system, such as Git or SVN if you have installed as an extension to the out of the box Workbench.
  +
  +
'''Note:''' To add an extension such as SVN, select:
  +
Help => Install New Software
  +
and, for SVN, add "SVN Subversive Updates - http://download.eclipse.org/technology/subversive/0.7/update-site" or another plugin or your choice.
  +
  +
== Restrict the Scanning Results to a Directory or to a File ==
  +
Select directory or file in Project Explorer, right click and choose:
  +
Globalyzer => View Scan Results For
  +
Follow the above when you have a lot of results from scanning and you want to see only those issues relative to a sub-directory or even to one file.
  +
  +
== Showing the Rule Sets in a Browser or in the Workbench ==
  +
Window => Preferences => General => Editor => Web Browser
  +
Choose '''Use internal web browser''' if you want to see the rule sets in the Workbench when you click '''View your Scan Rule Sets'''.
  +
Choose '''Use external web browser''' if you want to see the rule sets in a separate Web browser.
  +
  +
== Spell Checking ==
  +
Window > Preferences => General => Editors => Text Editor => Spelling
  +
  +
will allow you to configure how to apply spell checking in a text editor.
  +
 
== Generating Reports ==
 
== Generating Reports ==
===OLE Error when generating reports===
+
===Prevent possible OLE Error when generating reports===
  +
By default, on Windows, OLE applications like Microsoft Word or Excel open as in-place editors.
The settings on your Workbench depends on your environment. When generating a report, Globalyzer shows the report using the default Workbench settings. It is possible to get an OLE error.
 
  +
When generating a report, It is possible to get an OLE error when using the default settings because of the specifics of your system.
 
Here are a couple of tips to avoid that error:
 
Here are a couple of tips to avoid that error:
====1- Prevent in-place OLE editors ====
+
====Prevent in-place OLE editors ====
  +
Window => Preferences => General => Editors
By default, on Windows, OLE applications like
 
  +
You can force OLE applications to open as stand-alone applications by unchecking the
Microsoft Word or Excel open as in-place editors. You can
 
  +
'''Allow in-place system editors''' option on the preference page.
force OLE applications to open as stand-alone applications by unchecking the
 
  +
"Allow in-place system editors" option on the General > Editors preference
 
  +
====Prevent opening by default the reports====
page.
 
  +
Window => Preferences => Globalyzer
  +
and uncheck the '''Display Report after Export'''
   
  +
====Change the file association====
====2- Prevent opening by default the reports:====
 
Window > Preferences > Globalyzer, uncheck the "Display Report after Export"
+
Window => Preferences => General => Editors => File Associations
  +
and associate the editor with the offending extension
====3- Change the file association:====
 
Window > Preferences > General > Editors > File associations and associate the editor with the offending extension
 

Latest revision as of 15:43, 14 March 2018

Create a new Project

Note: A set of short tutorial videos is located on the About Globalyzer page. One of the short videos focuses on creating a new project.

You can create a project by pointing to a source code directory in disk, or importing files in the Workbench workspace, which is more used by software engineers ready to refactor code. Importing files in the workspace can be done from files on disk or files in a source code control system, like Git or SVN

Create a project by pointing to source code on disk

 File => New => Project => General => Project

Uncheck Use Default Location and Browse to the location of your source code on disk. Name the project and click Finish. If this is the first project, there are no Globalyzer configurations created yet to associate to this project. click New To associate scanning logic to the new project click

Scan => Manage Scan

and follow the wizard.

Check out a project

File => New => Project

and select the source code control system, such as Git or SVN if you have installed as an extension to the out of the box Workbench.

Note: To add an extension such as SVN, select:

Help => Install New Software

and, for SVN, add "SVN Subversive Updates - http://download.eclipse.org/technology/subversive/0.7/update-site" or another plugin or your choice.

Restrict the Scanning Results to a Directory or to a File

Select directory or file in Project Explorer, right click and choose:

Globalyzer => View Scan Results For

Follow the above when you have a lot of results from scanning and you want to see only those issues relative to a sub-directory or even to one file.

Showing the Rule Sets in a Browser or in the Workbench

Window => Preferences => General => Editor => Web Browser

Choose Use internal web browser if you want to see the rule sets in the Workbench when you click View your Scan Rule Sets. Choose Use external web browser if you want to see the rule sets in a separate Web browser.

Spell Checking

Window > Preferences => General => Editors => Text Editor => Spelling

will allow you to configure how to apply spell checking in a text editor.

Generating Reports

Prevent possible OLE Error when generating reports

By default, on Windows, OLE applications like Microsoft Word or Excel open as in-place editors. When generating a report, It is possible to get an OLE error when using the default settings because of the specifics of your system. Here are a couple of tips to avoid that error:

Prevent in-place OLE editors

Window => Preferences => General => Editors 

You can force OLE applications to open as stand-alone applications by unchecking the Allow in-place system editors option on the preference page.

Prevent opening by default the reports

Window => Preferences => Globalyzer

and uncheck the Display Report after Export

Change the file association

Window => Preferences => General => Editors => File Associations 

and associate the editor with the offending extension