-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
File/project templates are now adding to File/New menu immediately.
Opening from the newly added File template menu also adds the new file to an opened project. However, there are still some settlement needs to do. Deleting from Settings/Templating also removes the menu items from File/New. (reference #62)
- Loading branch information
1 parent
020e690
commit ef6e8ae
Showing
6 changed files
with
157 additions
and
44 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
ide/MoonshineSharedCore/src/actionScripts/events/TemplatingEvent.as
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,46 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License | ||
// | ||
// No warranty of merchantability or fitness of any kind. | ||
// Use this software at your own risk. | ||
// | ||
//////////////////////////////////////////////////////////////////////////////// | ||
package actionScripts.events | ||
{ | ||
import flash.events.Event; | ||
|
||
public class TemplatingEvent extends Event | ||
{ | ||
public static const ADDED_NEW_TEMPLATE:String = "ADDED_NEW_TEMPLATE"; | ||
public static const REMOVE_TEMPLATE:String = "REMOVE_TEMPLATE"; | ||
|
||
public var label:String; | ||
public var listener:String; | ||
public var isProject:Boolean; | ||
|
||
public function TemplatingEvent(type:String, isProject:Boolean, label:String, listener:String=null) | ||
{ | ||
this.isProject = isProject; | ||
this.label = label; | ||
this.listener = listener; | ||
|
||
super(type, false, false); | ||
} | ||
|
||
public override function clone():Event | ||
{ | ||
return new TemplatingEvent(type, isProject, label, listener); | ||
} | ||
} | ||
} |
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
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